Understand the orderbook like a quant

Sdílet
Vložit
  • čas přidán 27. 07. 2024
  • What is an orderbook? Here I explain all THREE levels of the orderbook intuitively from a quant-dev perspective, placing more emphasis on the third level with an concrete example.
    Instagram: / thecodingjesus
    Calendly: calendly.com/coding-jesus
    Patreon: / codingjesus
    Email: thecodingjesus@codingjesus.com
    Orderbook Series: • C++ Orderbook Series
    MBP vs MBO: www.cmegroup.com/education/ma...
    Prorata: www.cmegroup.com/confluence/d...
    00:00 intro
    00:42 what is an orderbook?
    00:57 example
    01:32 L1 (bbo)
    02:05 best-bid best-ask
    03:09 L2 (mbp)
    05:10 L3 (mbo)
    07:48 prorata allocation
    Orderbook cpp c++ code what is an orderbook financial assets securities financial management finance fintech quant quantitative priority financial instruments whiteboard market by price market by order understand like a quant all three levels 3 levels
  • Věda a technologie

Komentáře • 67

  • @dangkhoatrannguyen6734
    @dangkhoatrannguyen6734 Před 3 měsíci +89

    I'm a quant researcher for one of the asset managers. And Coding Jesus's content is really the most interesting and insightful available for free.

    • @fadedsedated
      @fadedsedated Před 3 měsíci +2

      dude howwwww do i break in quant trading? i go to a non-target studying compsci specialising in AI. im graduating this summer, do u know if it's possible to get recruited say 6-12 months after graduation? i want to spend 6-12 months self studying heavy heavy math & quant strats, would that be a bad idea?

    • @dangkhoatrannguyen6734
      @dangkhoatrannguyen6734 Před 3 měsíci

      @@fadedsedated it really depends on what you want to break in. For quant research, I suggest you look into grad school. Most firms will only consider master + phd. For quant dev, it’s down to networking and passing interviews. For me, I got my master from a target school, so I’ve been having internships even before graduation. I worked on building hedging alpha using L2 order book data. Then graduate into portfolio optimization position. It’s not a straight line for me either

    • @dangkhoatrannguyen6734
      @dangkhoatrannguyen6734 Před 3 měsíci +6

      @@fadedsedated heavy math yes, programming yes, quant strat just the basic like markowitz optimization. No one expects you to come into an interview with a working strategy. Most things you can find online doesnt work in practice, that’s why you can find them lol

    • @fadedsedated
      @fadedsedated Před 3 měsíci

      @@dangkhoatrannguyen6734 awesome - so it's not like trading firms would look at someone 6-12 months out of a non-elite university and reject them? as i've heard that they look specifically at current students for their next recruits

    • @fadwaelqasseh2571
      @fadwaelqasseh2571 Před 2 měsíci

      Hi, that is so interesting, tell me how to be a quant trader for hedge funds plz

  • @rithikprasad7760
    @rithikprasad7760 Před 3 měsíci +22

    This Man is heaven sent.

  • @s1nGh-
    @s1nGh- Před 3 měsíci +11

    great quality content for quant devs, keep em coming. not many people are making content related to the quant space

  • @JeremiaSamp
    @JeremiaSamp Před 9 dny +1

    You did a bit of a mixup - L2 is a representation of the aggregate quantity offered at each price. All offers/bids at a certain price are lumped to one number, easy to read. L3 is just a breakup of this number that represents each participants size. It's the same number as level2 but just broken into a long chain of the small individual orders that came to the market. You were not wrong but you presented it in a confusing way. Thanks for your videos

  • @lopadova_
    @lopadova_ Před 2 měsíci +1

    As someone who’s seen all of your videos in the early days, let me congratulate you on how good your teaching didatics has become. Amazing work man!

  • @marcinswitalski5950
    @marcinswitalski5950 Před 3 měsíci +1

    Great content! Waiting for more videos on the order book, amazing stuff 🔥

  • @ErnieLA-
    @ErnieLA- Před 3 měsíci +1

    Great Content CJ, keep dropping these Gems, can't wait to Join and receive every Bit of information you release, Stay Gold 💯

  • @achromcapital8689
    @achromcapital8689 Před 3 měsíci +2

    Thank you really much Jesus, that was a really helpful video. It would be awesome to be have more of this theoretical video types. Really appreciate your teachings ^^

  • @CS-pi4gn
    @CS-pi4gn Před 3 měsíci +5

    Your back! You were gone for like two years man. Good to have you back, is this the second coming then? 😀

  • @centerstar9212
    @centerstar9212 Před 3 měsíci +8

    Where in the hell have you been Jesus? Glad to see your return just like you promised you would.

  • @RaghavBajoriaQuant
    @RaghavBajoriaQuant Před 2 měsíci

    Simple and informative! Thank you

  • @nilkanthwable2491
    @nilkanthwable2491 Před 26 dny

    Top tier content. Thanks buddy!

  • @rj82281
    @rj82281 Před měsícem +1

    Gold❤
    Thanks alot really appreciate your content

  • @jisanhasnat6770
    @jisanhasnat6770 Před 2 měsíci

    Great explanation.

  • @karimrezk474
    @karimrezk474 Před 3 měsíci +5

    Can you please make a video on the future about book-map? Thanks for the awesome content tho! Keep it up😊

  • @nowayjose558
    @nowayjose558 Před 3 měsíci +2

    The most important thing to learn about the order book is the reason its there... For quants to front run and scalp.

  • @xxxs8309
    @xxxs8309 Před 3 měsíci +1

    Thank you

  • @hoshinotanecedryctensaibat9711

    @Coding Jesus. New to the channel, very informative, thank you

  • @orderflowdojo
    @orderflowdojo Před měsícem

    🔥 never knew about prorata

  • @nicfit2644
    @nicfit2644 Před 3 měsíci

    Great stuff as always, on point! Would be amazing if you could do a video on how to measure latency, especially inside a trading server, from nic up to user space and software :)

  • @kazemi259
    @kazemi259 Před 3 měsíci +2

    As a qd, do you think platforms like bookmap that visualize orderbook like a heatmap and have addons like iceberg detectors can give retail a robust edge or it's just glorified technical analysis?

  • @junglemandude
    @junglemandude Před 19 dny

    Great and Intuitive video, when are you dropping the next one on this topic

  • @tagssdf34234
    @tagssdf34234 Před 2 měsíci

    Gotta love that smug look in the thumbnail! All hail our savior!

  • @taltalonix
    @taltalonix Před 2 měsíci

    Thank you for the video. Could you please recommend any books related to order types and different exchanges queuing algorithms? I’ve read some books about HFT but there isn’t much information about L3 analysis and exploitation

  • @tradfi
    @tradfi Před 2 měsíci +1

    How about addressing spoof orders on the order book? How do you deal with that?

  • @armanyaseen213
    @armanyaseen213 Před 3 měsíci +6

    Which book is best to learn about these market microstructures and technology and exchanges. More technical books?

    • @jamestogher1098
      @jamestogher1098 Před 3 měsíci +1

      good question, speaking as an outsider I would also like to know.

  • @SgmTutors
    @SgmTutors Před 3 měsíci +2

    Hey, thanks for the video! A question about prorata: if i come 8 hours before opening and willing to buy 5 units of the asset, and you come one second before opening and you’re willing to buy 10: if the seller has 7 units to sell, would you get the 7, or would you get 5 and 2 for me, or 6 and 1.
    Because at the point of selling the 6th unit, we would both still be willing to buy 5, since i came first, maybe i am granted the right to buy over you. Is that how prorata works?
    Thanks for your content

    • @CodingJesus
      @CodingJesus  Před 3 měsíci +2

      Gamestop would sell 7 / 10 = 70% of their allocation to me. so I buy 7 * 0.7 = 5, you get the remaining 2. I explained Prorata as Price-Size priority when it's really Price-Share priority. I'll clarify in a future video.

  • @balintmaroti4737
    @balintmaroti4737 Před 2 měsíci

    Love the video, the only word i understood was Gamestop.

  • @lg2058
    @lg2058 Před 3 měsíci +2

    I came here for technical analysis - and i got it - head and shoulders all the way through the end.

  • @bdindial
    @bdindial Před 2 měsíci

    could you do ore vids on market making algos for market makers

  • @vuufke4327
    @vuufke4327 Před 2 měsíci

    welcome back man, did you forget your account password or something.

  • @UserXY1
    @UserXY1 Před 3 měsíci

    👍👍🔥🔥

  • @thomasanderson4533
    @thomasanderson4533 Před 3 měsíci +5

    I DID NOT UNDERSTAND ANYTHING

  • @JamieVegas
    @JamieVegas Před 3 měsíci +2

    What's the utility of "code an orderbook," though? A real one would be implemented as a giant complex of interacting components, not just a clean set of classes. It's like saying, let's implement core accounting system for a bank and it's just some customer, account and entry classes.

    • @johndoe1646
      @johndoe1646 Před 2 měsíci +1

      Not really, you can code an order book on Solana all in a single SLP

    • @JamieVegas
      @JamieVegas Před 2 měsíci +2

      @@johndoe1646 I'd rather see that tutorial, instead...

  • @danzielcempron2589
    @danzielcempron2589 Před 2 měsíci

    Brother, I believe you have an LCD burn on the top-middle of your screen. I thought it was my screen, lol.

  • @DD-ts9uu
    @DD-ts9uu Před 17 dny

    Ok we understood the Bid and Ask scenario, now How do we know if the bid and ask hold? For how long? If you have a broker account its way better to explain there. I am a level 2 reader and I trade equities and options, my downside is I can’t Identify how long the order that can hold the BID or Ask . If I saw a buyer on big size lots. Its hard to tell how long this buyer will hold this position. If you can explain even more. Thanks

    • @DD-ts9uu
      @DD-ts9uu Před 17 dny

      Like on GME right now , Roaring kitty still holding the support at 20$ a share, Now if Roaring kitty starts selling his share whats the signal on this. Without waiting for the news? Do you have resources for that? As a quant analysts.

  • @harchitb
    @harchitb Před 3 měsíci

    how do traders read the lvl 2 and make trade decisions based on it?

    • @GraniteQuarrier
      @GraniteQuarrier Před 3 měsíci +1

      I used to do it well 25 years ago. In low to medium volume stocks you can see where larger orders are, and by also glancing at time and sales you can see how stock is being bought or sold or how that large order block is supporting the stock (until it gets worked through). In high volume stocks the book is so big that it is usually just two stacks of giant numbers at various prices a penny apart and I'm not sure how people use lvl 2 for an edge there unless you can parse out which orders are real and which ones are fake (posted for a split second). So, basically, if some of the large posted orders are real (and not just posted and deleted to lure people in) then you can trade in front of those prices. In my experience, however, that game changed and there was a more sophisticated manipulation of the order book to "look" a certain way so I stopped looking at lvl 2. I am sure some people can still make sense of it as it is a skillset, but my edge with it evaporated. Hope that helps. As for programming with it...

    • @harchitb
      @harchitb Před 3 měsíci +1

      @@GraniteQuarrier so you're trying to front run the big market moving orders on small/med volume stocks?

    • @GraniteQuarrier
      @GraniteQuarrier Před 3 měsíci +2

      ​@@harchitb Yes especially when there were larger visible orders. Obviously, sometimes they get filled and everyone recalibrates or panics quickly. I imagine nowadays there are many more ways of faking the look of the level 2 so don't trust it too much. Do you program?

    • @harchitb
      @harchitb Před 3 měsíci +1

      @@GraniteQuarrier yeah computer science background but never explored algo trading

  • @arimasters1980
    @arimasters1980 Před 2 měsíci

    mazel tov baba

  • @MarkLapasa
    @MarkLapasa Před 3 měsíci

    "gtfo noob". Love the video:)

  • @gex-god17
    @gex-god17 Před 3 měsíci

    really is a bear market. if we getting this ghey

  • @GF86123
    @GF86123 Před měsícem

    Gayiest man alive 😂

  • @enod9746
    @enod9746 Před 3 měsíci

    Why hide your handome features behind the beard? You look stunning.

  • @paradiselosing
    @paradiselosing Před 3 měsíci

    Still unprofitable lol. 😂😊

  • @IceDogXena
    @IceDogXena Před 19 dny

    Useless content unless you’re a High frequency trader

  • @s1nGh-
    @s1nGh- Před 3 měsíci +2

    W content Coding Gigachad 24x7 Mewing Jesus

  • @amorfati4096
    @amorfati4096 Před 2 dny

    of what use is orderbook? if you dont have L4