Тёмный

[1/3] Coding a multi-order type orderbook in C++ from scratch 

Coding Jesus
Подписаться 98 тыс.
Просмотров 28 тыс.
50% 1

Опубликовано:

 

20 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 88   
@CodingJesus
@CodingJesus 7 месяцев назад
1. Completed code available here: github.com/Tzadiko/Orderbook/blob/master/ 2. Remove the ampersand in auto& bid = bids.front(); in MatchTrades and the corresponding line below it. We will go over testing in the livestream. 3. As an exercise, try and add a FillOrKill and GoodForDay ordertypes yourself. If the order can't be fully filled, you do nothing with it for FillOrKill. For GoodForDay pick an end-day time and prune all orders after that time that are marked GoodForDay. Will go over it in the livestream.
@s1nGh-
@s1nGh- 7 месяцев назад
now this is what we need. thank you Mewing Jesus
@rightq3111
@rightq3111 7 месяцев назад
😂🤣 bro is slowly morphing into a Based CS Chad
@Alpharabius99
@Alpharabius99 6 месяцев назад
dude is a savage coding without dark mode
@tedchirvasiu
@tedchirvasiu 6 месяцев назад
He is Jesus, he brings the Light.
@svenvanwier7196
@svenvanwier7196 6 месяцев назад
@@tedchirvasiu I doubt he would call Jesus the 'messiah'
@orion42
@orion42 6 месяцев назад
I am impressed, and I've never met anything like this organized fast typing coder.
@recursion.
@recursion. 7 месяцев назад
Great setup Tomer. The keystroke and keyboard cam is greatly appreciated. Looking forward to your next upload.
@tedchirvasiu
@tedchirvasiu 6 месяцев назад
2:44 - that feeling when you pop your ears and all of a sudden you have super hearing
@discontinuity7526
@discontinuity7526 6 месяцев назад
Invaluable series man can't wait for the rest
@CodingJesus
@CodingJesus 6 месяцев назад
2/3 came out today. It was live-streamed. You can watch the replay of the stream on my channel or in the C++ Orderbook playlist.
@nothingtoseehere449
@nothingtoseehere449 Месяц назад
Now that I finally understand c++ /object oriented programming watching this was a breeze
@tronaitor0
@tronaitor0 7 месяцев назад
So happy to see you back! Outstanding content!!
@tristanjones2923
@tristanjones2923 6 месяцев назад
Bro didn't touch his mouse once. King
@vishalkanojia9634
@vishalkanojia9634 2 месяца назад
Just completed my EPAT lecture on order book management & order execution techniques and you video popped up ❤❤❤❤❤❤
@alinagy
@alinagy 7 месяцев назад
I have never seen this combination in one person before, using vim in vs with white theme coding C++, this is optimum male performance
@complextheory9529
@complextheory9529 7 месяцев назад
Welcome back man! Stoked for the content!
@luizgarciaaa
@luizgarciaaa 7 месяцев назад
Very nice you are back! Loved this video.
@Mohammad-tw7cq
@Mohammad-tw7cq 7 месяцев назад
Glad to see you are making videos again!
@DelShott
@DelShott 7 месяцев назад
Hi CJ, First of all thanks, I'm following along with the coding video, but I think it would've been useful to start with a quick explanation of the main classes involved and how they work together. I don't mean a whole diagram or anything, just a couple sentences about what we're building and how the different pieces fit together. I am new to orderboooks and whenever a new class was created I could follow but at half of the video I had to stop and think about what I was doing, since I noticed I didn't have it clear in my mind. Thanks.
@CodingJesus
@CodingJesus 7 месяцев назад
Good idea. Will do in the next video.
@OllieFeraher9
@OllieFeraher9 6 месяцев назад
Can you see any too traders PNL? Do you know any top traders? Do you still think TA is garbage? Do you know any developers working on trading strategies? An updated video on the trading space would be very interesting bro. Glad to have you back!
@jakeg5288
@jakeg5288 7 месяцев назад
Me: “Oh my god. I have to have that keyboard” *checks price* Me: 😖
@HammadAli-uw9so
@HammadAli-uw9so 7 месяцев назад
hey. it's nice to see you again.
@Golipillas
@Golipillas 7 месяцев назад
Absolute magic man, thank you so much
@joannamah4791
@joannamah4791 3 месяца назад
Thanks for this series! May I ask where is part 2?
@oric4281
@oric4281 7 месяцев назад
yes finally continuing this series!!
@RevolutionaryCult
@RevolutionaryCult 7 месяцев назад
What you are offering is literally helping in real life. I would be delighted if we could collab and i could make you the face of a dating series i am designing. (Ps - it will be paid offc)
@АнатолийБугаков-е9г
@АнатолийБугаков-е9г 6 месяцев назад
Thank you! Is orderbook something which only exchanges implement? Or would trading desks/traders ever implement their own order books?
@pserra94
@pserra94 6 месяцев назад
Great content! Why dont you make a course or book about HFT's implementation using C++ ? I would buy it!
@henryomarm
@henryomarm 6 месяцев назад
i love the content super informative you earn your self a sub sir
@santosreckz7203
@santosreckz7203 7 месяцев назад
What keyboard are you using?
@CodingJesus
@CodingJesus 7 месяцев назад
See description.
@yelgabs
@yelgabs 3 месяца назад
@33:57 Why do we only cancel one FillAndKill order? What about the rest?
@piphunter
@piphunter 7 месяцев назад
Coding Jesus ~ I'm a discretionary trader wanting to learn how to code my own stuff. Would you be able to highlight books you would recommend for learning C++ and maybe some online resources as well? I'm looking forward to watching an orderbook being built.
@daveczerepak
@daveczerepak 7 месяцев назад
I would start with a book or course on just basic c++. There are tons, and plenty of Udemy courses. Then you can dive into time series, financial analysis and mathematics in c++, algo trading in c++. You’ll also learn that there is a lot of ML in the quantdev world, c++ does work with TensorFlow but it’s not the best technology for it. Start with an intro to C++ course or book with great reviews and then move onto data structures. After that you can start applying the financial stuff slowly.
@AMX0013
@AMX0013 6 месяцев назад
I highly recommend Effective C++ book, latest edition. and reading up on topics suc as templates, concepts, traits. This was something i yoinked from a job requirement • variadic templates & parameter packs • move semantics / forwarding; concepts; • CRTP; • traits, policies, and tag-types; • tuples/variants visit/apply etc.; • the pImpl idiom; • lambdas; • custom streaming operators; • constexpr; • auto; lambdas, and macro hackery.
@Coding_Mohammed
@Coding_Mohammed 6 месяцев назад
Thank you for the content my brother
@heoheobu0012
@heoheobu0012 6 месяцев назад
God! You are back to save me from this savage land. Amen!
@catlover1732
@catlover1732 6 месяцев назад
Hey coding jesus, just wondering if there's a reason why you add the order to the book first, then run a matching algorithm - since your order add will be log(n), and you will have to pay the cost of removing the order pretty much immediately. If we match before insertion, it should be an O(1) check and it will be much cheaper. Or is it just for ease of coding, because the logic does look easier. thanks :)
@CodingJesus
@CodingJesus 6 месяцев назад
Easier for people to understand and potentially easier for other order types. You can do it your way too, valid point.
@_________________404
@_________________404 7 месяцев назад
Yes. I know what C++ is. I have no idea what an orderbook is though.
@daveczerepak
@daveczerepak 7 месяцев назад
He will probably make orders into structures and the order book a class with functions and variables, like a switch statement with different order types like stop, limit, market, etc. a function to return the final order that would have a ticker, price, quantity, etc. an order book is an electronic list (best ones in real time) that show you all the buy and sell orders. Usually you connect to an exchange API or third party market data supplier to get data. Hope that helps connect c++ to an order book
@_________________404
@_________________404 7 месяцев назад
@@daveczerepak Yeah I'm a programmer but I have no idea about the finance terms he uses.
@tinska12
@tinska12 7 месяцев назад
Do you have any pointers for MM invetory management? Or pointers how to think about invetory management and risk management? I want to believe that there exists MM inveotry management methods that minimizes / neutralizes delta even with geometric brownian motion...
@naveedh27
@naveedh27 7 месяцев назад
Is it necessary to use c++ for quant development? Can java also be used?
@lucas4019
@lucas4019 6 месяцев назад
never trust devs without dark mode
@JaspreetSingh-l2e
@JaspreetSingh-l2e 4 месяца назад
can u provide me link for c++ book for quant developer
@AB608052
@AB608052 7 месяцев назад
There's all kinds of trading strategies to try.... but the day traders say that the HFT killed day trading.. is that actually true
@SameerAnand-YearBTechElectrica
@SameerAnand-YearBTechElectrica 22 дня назад
This is so cool!
@DelShott
@DelShott 7 месяцев назад
1) At 15:30, Why do we need a OrderModify? Couldn't we just add a Modify() function as the Fill() function in the Order class?
@CodingJesus
@CodingJesus 7 месяцев назад
1. When you modify, you're supposed to lose queue position. Modifying an order in place maintains queue position. 2. Your suggestion would break if someone modifies price or side.
@altricad5358
@altricad5358 6 месяцев назад
Thank you so much for this!!!
@rajat346
@rajat346 5 месяцев назад
what documentation he talking about at @1:50 timestamp
@Ishvires
@Ishvires 7 месяцев назад
Respect man, respect!
@chidalunwaimo876
@chidalunwaimo876 6 месяцев назад
Final he shows us the way - Lisan Al Ghaib
@rithikprasad7760
@rithikprasad7760 7 месяцев назад
Coding Jesus, as someone who does not know how to code at all , is it a good idea to replicate this task to learn ? Thanks.
@recursion.
@recursion. 7 месяцев назад
ofc man, all you need is 3 months of dedication and you're set to that 200k paycheck.
@FarzanHashmi
@FarzanHashmi 7 месяцев назад
Likely not
@chiomaobunadike3313
@chiomaobunadike3313 7 месяцев назад
@@recursion.ha ha ha. Where’s your paycheck ?
@_________________404
@_________________404 7 месяцев назад
@@recursion.💀💀💀 I hope you’re joking.
@daveczerepak
@daveczerepak 7 месяцев назад
Replicate sure, but make sure you can read and know what’s going on
@jinxscript
@jinxscript 7 месяцев назад
Can't you make one in metatrader 5 ??
@wedeyforyou
@wedeyforyou 6 месяцев назад
someone please explain to me what all those include files do?
@CodingJesus
@CodingJesus 6 месяцев назад
See part 2, or just click the GitHub link. I put it all in main just for part 1 so people don’t get confused as I jump around. I refactored into proper header files on GitHub.
@daveczerepak
@daveczerepak 7 месяцев назад
Are you going to use Devin , Claude 3, or chatGPT ? Or no AI ? I’d like to see no AI. Won’t complain if you use em. But if you don’t, more props to you.
@CodingJesus
@CodingJesus 7 месяцев назад
AI uses me.
@_________________404
@_________________404 7 месяцев назад
Chatgpt is awful with C++ anyway. Probably had way less training data with C++ than other more “mainstream” languages.
@shaikhmubin02
@shaikhmubin02 7 месяцев назад
🗿🗿...​@@CodingJesus
@DelShott
@DelShott 7 месяцев назад
Why no AI? Would you say the same if he was doing calculations via a calculator instead of by hand? If it can simplify boring tasks then it should be used, imo.
@_________________404
@_________________404 7 месяцев назад
@@DelShott AI doesn’t even help that much in most cases. It’s not comparable to a calculator.
@orderflowdojo
@orderflowdojo Месяц назад
🔥🔥
@yjc149
@yjc149 6 месяцев назад
great video
@Alpharabius99
@Alpharabius99 6 месяцев назад
c++ is pure pain after years of c# its so fucking hard
@gameacc6079
@gameacc6079 7 месяцев назад
the fact u are not use vim/emacs says everything.. not a tier 1 prop firm u are at sir
@Bayo106
@Bayo106 6 месяцев назад
you're deaf or stupid
@SalmaKhannam-e1m
@SalmaKhannam-e1m 7 месяцев назад
Please share your view on Devin AI
@Oliver-nt8pw
@Oliver-nt8pw 5 месяцев назад
I tried typing in everything with you to folow, but there are so many compile problems omg. If anyone else is trying to do the same, just dont :D
@yogendrasingh6865
@yogendrasingh6865 7 месяцев назад
Do you know someone who can code me a MEMPOOL SNIPER (Blockchain)?
@Comonad
@Comonad 6 месяцев назад
All those rings they should be calling you sonic, not Jesus
@eaccer
@eaccer 6 месяцев назад
I know this is a weird comment, and I do want to mention that I also code on a white background myself BUT you might literally be losing followers/viewership just because of that fact.
@thebirdhasbeencharged
@thebirdhasbeencharged 6 месяцев назад
Shush
@WackNoir
@WackNoir 7 месяцев назад
yuffmoney says thank you
@AB608052
@AB608052 7 месяцев назад
alright. You say technical analysis is useless.. It's not.. I don't know if your company uses it. You want to make some money? I'd say it's a secret, but plenty of books have this drawing that goes rally: investors -> suckers. Wave theory, the one your probably talking about.. there is the pattern of a rally, three humps up and the fourth below the third. They call it 1-2-3-4-5-a-b-c, as in like 8 vectors joined together. OK, so, go to a rallying asset, knowing this pattern, can you tell if the rally is over?
Далее
Naming Things in Code
7:25
Просмотров 2,2 млн
How to solve quant puzzles
13:09
Просмотров 97 тыс.
ranking every finance career (tierlist)
28:35
Просмотров 168 тыс.
Harder Than It Seems? 5 Minute Timer in C++
20:10
Просмотров 186 тыс.
Being Competent With Coding Is More Fun
11:13
Просмотров 97 тыс.
A Jr Dev For Life?? | Prime Reacts
21:33
Просмотров 312 тыс.