CinderellaMan

CinderellaMan

Hello,

I’m not sure where this should / could be posted, but I’ve put a lot of effort and just released my first video about streaming cryptocurrency prices in Elixir.

I would like to create more videos that will lead to a fully-fledged cryptocurrency trading bot in Elixir(almost like a course but in this pair programming format). On the way, people will see practical usage of OTP stuff like Supervision trees, etc.

I think that is what is missing as people get to know Elixir, but they didn’t write any “complex” systems (they didn’t get a job in Elixir yet, but they would like to be prepared)

I would love to get some comments(both here and on Youtube :wink: ), I know it’s not the greatest quality but even knowing where hurts the most could help me to iron it out the soonest :slightly_smiling_face:

Video link: https://www.youtube.com/watch?v=wVYIx7M6o28

PS. Feel free to move it to any other category on the forum.

Thanks in advance,

Kamil

Showing Posts 1 to 10

CinderellaMan

CinderellaMan OP

Hello,

I just added another episode about the topic mentioned above - this time it’s about building a naive trading strategy:

Let me know what you think,

Thanks in advance,

Kamil

10
Post #1
dimitarvp

dimitarvp

Pretty interesting! I am starting work at a financial company and this could be extremely useful. :slight_smile:

CinderellaMan

CinderellaMan OP

Thanks for the comment! I will try to push out those episodes quite frequently but I’m sure that very soon you will know much more about that stuff than me(if that isn’t the case already!) :slight_smile:
In the next episode I would like to put much more “Elixir specific” content like introducing supervision tree etc - stay tunned, like and subscribe :wink:

ityonemo

ityonemo

Looks good! And til about that elixir socket library which looks fantastic. It’s not over engineered, I think it’s just right. I mean come on you wrote a crypto streaming app in 15 minutes… Try doing that in go! Lol

CinderellaMan

CinderellaMan OP

Hehe, I served my time in Go. From personal experience, it would be closer to a week than 15 minutes :wink:
Ignoring Go (as nobody cares) - thank you very much for your reply, I’m still testing a lot of things and comments like yours help a lot.
I was wondering did you watch both videos? I feel like the tone of them is really different and I wonder which like you like better?

Thanks in advance

ityonemo

ityonemo

I didn’t see the second one! So a few notes, I didn’t like the music LOL, and there was about 10% of the code style that I didn’t personally like. But overall I think it’s quite good, the only truly fatal flaw is that you shouldn’t Process.exit(self(), :finished). Anything besides :normal is considered to be an error code, when you start supervising, you might not get what you expect, and if you still want the exit message you should use Logger.info or something. Also, even better than Process.exit is to emit the result {:stop, reason, state_for_terminate_2} in place of {:noreply, state}

CinderellaMan

CinderellaMan OP

Just some clarification on this one - you didn’t like the music because it wasn’t type of music you like or it was annoying / distracting you?

I think your comment regards the Process.exit is on point. I didn’t put too much effort in this part as it will be refactored in 3rd video, but indeed I’ve could return {:stop, reason, state} - that’s much less confusing for people new to Elixir processes etc.

ityonemo

ityonemo

I think maybe it was not bad for a filler, but I dunno, i didn’t like it, though I don’t categorically hate that type of music. Pretty quickly it more or less faded away in terms of distraction, so this could have been a matter of personal taste.

egze

egze

Damn, this is some good content. Watched the first video, it’s great! I wrote a trading bot in ruby couple of years ago, will be fun to compare how you implement the trading strategies.

CinderellaMan

CinderellaMan OP

Thank you very much for your comment. It will take a few good videos before I will get to stop losses, retargeting and similar - also please keep in mind that this is an “naive” strategy. My aim is not to focus on strategy itself but on laying a matrix of states that servers can be in, how they work together etc. I picked up the trading bot as it’s complex enough to get to nice web of supervision tree, updated between videos - on the other hand it’s not too geeky / abstract to keep people engaged - I think it’s cool to understand few thousands (hopefully) lines of Elixir application (not related to web - just processes and their interactions) :slight_smile:

Where Next? Top

Trending in Screencasts Top

lubien
Several weeks ago I was nerd snipped by browsers support for View Transitions API and took to myself to see how that goes in LiveView. Af...
New
Potions
Sooner or later you’ll need to run a one-off or recurring task on a deployed app, and if you deploy with releases the usual answer, a Mix...
New

Other Trending Topics Top

mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
garrison
Hobbes is a low-level distributed database for the Elixir programming language. Hobbes provides a simple, safe, and scalable storage lay...
New
marciok
Hi there! We created Gust: A task orchestrator inspired by Airflow. For those who have never heard about Aiflow, it’s a Python-based wor...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
mcass19
ExRatatui lets you cook up rich terminal UIs in Elixir, powered by Rust’s ratatui via Rustler NIFs. Build interactive terminal applicatio...
New
Damirados
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve. They are GUI (Emerge) and State management (S...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews