What's funny is that everything you would need to figure out this strategy would be taught to you in first 2 years of your CS degree, yet it is so revolutionary. Creazy.
Yes, finance people are just mostly stupid. Most of the work is done by people of other fields and are just hired by them. Smart people will not want to make money when they are 12 tears old. Most of them want to make usefull products like video games or other stuff. Finance is something you do because your forced by your family. Or because you have no idea what to do with live and then selects a easy education wich gets to mutch repect.
what's funny to me is: something that's a federal crime (DDoSing by holding connections hostage with corrupt packets), is a slap on the wrist, and a fine, for the finance bros.
This is crazy that you dive into TCP protocols.... I was not expecting this and wish I knew this when my , non-finance, company was using optimized TCP stacks for other purposes.
In order to effectively pull this off you need to have massive $ in infra, all colo'd at the exchange. We're dealing in microseconds here, and this is not something that anyone at home could have done, even if they had the knowledge. Requires the infra too.
Once I cheeses some API by crafting my entire request in a single packet while other applications where sending 2 or 3 packets. But this is on another level, I did that to save resources in a GPRS network and get priority over the other credit card transactions of the other customers, thus my system would complete transactions faster and give a better sensation for the end user when the CC network was congested.
My first job in what would become my career field was the "physical layer monkey" for a large aviation company and OSI was beat into me. That was 20+ years ago. Trading is a new hobby for me so I found this fascinating. Thanks for the quality video :)
Really enjoyed this. Brought back happy memories of working in Data Comms/Networking in the mid'80's - early '90's. Even though most of my career was in Software Sales, I so enjoyed 'hooking stuff up' from PCs with Modems, LANs using base/broadband/LU6.2 TR, Mainframe connectivity - ICL C03 and IBM SNA 3270 and implementing first versions of Novell Netware (how many disks & manuals?!?), Banyan-Vines, Ungermann-Bass and OS/2.
Cheese strategy = a strategy which focuses on the holes in the system (the cheese) Eg if a broker has a glitch you exploit that glitch for a winning strategy This cheese strategy for trading is based on exploiting TCP in the technical stack (OSi model)
I traded at a major brokerage with it's own widely used platform. I remember either reading or hearing they used the transport layer to read customer orders before they hit the trading platform
It's kind of funny how they are literally exploiting every single layer of the communication stack. Since they have gotten their fiber link and reduced their latency now they have to cheese the communication stack and possibly any other layer of the communication layer to maximize their execution. It's actually quite interesting.
the patent is just countermeasures. The CME didn't do this for our sake, or to stop them from making money, they did this because it's essentially DDoSing their systems: flooding a system with corrupt tcp packets, in order to hold open connections, is considered abuse of a computer system...except in finance, apparently.
The fact I just got done making my own networking tool where I learned how to craft the IPv4 header, TCP header, etc and validate and manipulate packets and checksums is ironic.
that's a cool thing to do, I also implemented a TCP stack once, it was an upgrade for a embedded POS (point of sale) that was able to only use external COM modems, and I implemented the entire network card driver and the TCP stack, and I used the sodium for cryptography. The entire thing had to fit in 512KB of RAM.
@@monad_tcp Wow that’s impressive I have made drivers before but doing it on emended systems with very limited amount of ram while also having to remake the TCP stack is on another level nice work.
@@onlyms4693 Depends what you mean by documentation. I am working on making a website for it containing documentation on how to use it but if you are talking about documentation on how it’s made I do not.
Not milliseconds, but tens or hundrends of nanoseconds, which is 10^4~10^5 times less. If by 'normal' you mean discretionary than usually yes, however high-end execution could benefit any kind of trading
@@chankayau 'cept, with hpc cloud services, anyone can virtually access advanced hardware ...located within close proximity of exchanges, that's an altogether different matter.
Why make a patent? Do they want to stop companies from doing this by claiming patent infringement? How would anyone outside of a company know this was happening? Are regulators watching packets go back and forth and checking if they are complete or corrupt?
I am being very picky here, because you gave a great explanation. But the 7 layer OSI model is different to the 5 layer Internet Protocol Suite, aka TCP/IP.
Now if I traded like this I am pretty sure JP was hawkish, but less hawkish than expected or answered the questions after the meeting somewhat dovish. Or maybe he was outright hawkish but considering the job numbers it was considered dovish... It would be like being the first to place money in the casino....
Love the theme. Can you make a video on Ken Griffin and how someone potentially could do what he does? Im in College for Finance and he is an idol. Thanks CJ!
One can, with varied accuracy, determine where stops are with MBO data. This is another reason why order splitting makes sense even for smaller orders.
Incredibly interesting. This is the intersection of 3 disciplines that I am very active in. Too bad i cant use this knowledge to make myself some money. It does make me wonder how in the world they were crafting this trade with the manipulated packets in the first place? Custom software thats talking to an API?
Hi, great video. I had a suggestion: Can you just use the mic or the way you recorded earlier videos? this was a bit difficult to hear compared to other videos you have put. Thanks!
I just dont get why an item is allowed to hang out in the stack and is not asked to go to the back of the line. Its like you're grocery shopping you get to the front and just jang out there until the store has a sale and a runner goes fills up a cart and brings it to you in the front of the line. Great video by the way.
I think perhaps its not the TCP "messages" that are incomplete, since it is just a packet stream and knows nothing about the contents. Its the FIX messages that are being split over multiple TCP packets, such that any given FIX Buy/Sell message is incomplete. So not the transport layer, but the session layer that is being held up on incomplete messages?
Also seems like little advatnage to be had here. A FIX Buy/Sell message could be only a few hundred bytes and fit into a single TCP packet. The last byte will also take a single TCP packet. Unless these Buy/Sell messages are unusually large for some reason (like trading more complex instruments that need many more parameters or something)?
@@rupertsmith6097 that's really a marginal advantage. Before that becomes useful you have to make sure that 1. Your model is very light-weight, 2. If you're getting info from other location, you transfer it via microwave instead of cable (which 1.5 faster because of cable refraction index) 3. You run your strategy on ASIC, regular computer or even FPGA won't be fast enough. After all of that you may gain maybe extra 100 nanoseconds. It might seem insignificant but if there's someone else who've done 1,2 and 3, but not your trick, then you're going to be faster and you will consume all this HF alpha. It doesn't matter whether you win by an inch or by a mile, winning is winning
I think what is also being exploited is the latency caused by the back and forth messages required to make a single trade. That could represent lots of time (in the microsecond scale).
good explanation except I still dont understand how being a few microseconds ahead translates to billions of dollars, which seems like a big oversight.
Jesus, 16 Minutes for what is essentially a 1 Minute explanation. On top of that it makes no sense for a FED speech. This would make sense for a earnings release to cut the roundtrip to a minimum
Interesting topic! By the way, the content loudness is very silent (On desktop, right-click, Stats for Nerds, Content loudness -17.1dB). It should be above -3 dB to have better audio.
They copied it from link accelerators when you doing long distance over oceans , reduce acks, and merged the layers further into the app stack, but when half your app code in fpga nic cards, you trading app is the fpga nic card, and you dont want the acknowledge ack back , ie latency times if traditional tcp ip, ping test is a different app stack but a good test
the father of this type of trading is JAMES SIMONS. he started the medallion fund back in like 1989 i think and has on average made like 55% return EVERY YEAR SINCE THEN....he was really the first successful quant trader with his partner
Does the S.E.C and Federal Register release this type of info right, what would the best place to keep up to date with new regulations/ rules / patents for finance related topics
Coding Jesus, thanks for the video. Very informative 🎉. I have a question. I have several openings in the quant / hedge fund space recruiting RADIUS specialists. Why do we need such a specialism in quant networks?
The rules say something along the lines that you can't send an order without having an intention to trade and i think it applies to partial and corrupted orders
I'm sceptical about this. In trading it's a maxim that every piece of news has both a bullish and bearish interpretation. Essentially you just want to be on the right side of the market. And the right side will typically flip flop on a news event in the seconds, minutes, hours and even days after the event, an example being yesterday versus today's price action. So yes you may be quickest but your interpretation may be wrong or right but wrong milliseconds or even days later. There are other issues as well, but.... time.
Neo: What are you trying to tell me - that I can "manifest abundance"? 🙃✨ Morpheus: No Neo, I'm trying to tell you that when you're ready - You won't have to.🧀✨
In your analogy, you still mention that the last (non-corrupt) byte gets sent to the corresponding trade order (for instance, to a "bullish trade" for good news). Does that not mean that they would have to wait for the news to decide which trade should go through? So the order would be: wait for news - interpret as bullish or bearish - send last byte to corresponding trade. How would that be faster than *not* having your trade already 99% of the way to the exchange, since you still have to wait for the news? Surely it can't be due to the time difference that it takes to send the prior 9 bytes of info (in your example)? Is that all the edge they need?
This is essentially insidering trading but with common knowledge. How would the common investor take advantage of this??? We couldn't right? Unless we could create our own trading platform? This is literally free money
whats the point of sharing an strategy that can't be used. isn't it worthless. Its like those coding classes where teacher would share a security bug which has been patched decades ago.
What's funny is that everything you would need to figure out this strategy would be taught to you in first 2 years of your CS degree, yet it is so revolutionary. Creazy.
Yes, finance people are just mostly stupid. Most of the work is done by people of other fields and are just hired by them. Smart people will not want to make money when they are 12 tears old. Most of them want to make usefull products like video games or other stuff. Finance is something you do because your forced by your family. Or because you have no idea what to do with live and then selects a easy education wich gets to mutch repect.
Sometimes not even that
I had lessons about networking including the whole TCP/IP and ISO/OSI stack on my high school.
what's funny to me is: something that's a federal crime (DDoSing by holding connections hostage with corrupt packets), is a slap on the wrist, and a fine, for the finance bros.
@@RogerKeulen"usefull things like videogames" 😂😂
@@RogerKeulen calling finance people stupid, yet you state making video games useful 😂. Fucking 🤡. Also, your English is trash.
This is crazy that you dive into TCP protocols.... I was not expecting this and wish I knew this when my , non-finance, company was using optimized TCP stacks for other purposes.
In order to effectively pull this off you need to have massive $ in infra, all colo'd at the exchange. We're dealing in microseconds here, and this is not something that anyone at home could have done, even if they had the knowledge. Requires the infra too.
amazing video, please do more breakdowns of publicly available defunct strats
i'm not proficient enough to have implemented this, but it's still valuable in a sense to understand the breadth of Alpha. great vid!
Once I cheeses some API by crafting my entire request in a single packet while other applications where sending 2 or 3 packets.
But this is on another level, I did that to save resources in a GPRS network and get priority over the other credit card transactions of the other customers, thus my system would complete transactions faster and give a better sensation for the end user when the CC network was congested.
i like ur brain
very smart
My first job in what would become my career field was the "physical layer monkey" for a large aviation company and OSI was beat into me. That was 20+ years ago. Trading is a new hobby for me so I found this fascinating. Thanks for the quality video :)
Would love more of this type of content! Great Video!
Amazing! Thanks for posting. Just subscribed on first ever watch. Very rare for me. 👍🏻
Thanks and welcome
E e 2😅😅@@CodingJesus
Really enjoyed this. Brought back happy memories of working in Data Comms/Networking in the mid'80's - early '90's. Even though most of my career was in Software Sales, I so enjoyed 'hooking stuff up' from PCs with Modems, LANs using base/broadband/LU6.2 TR, Mainframe connectivity - ICL C03 and IBM SNA 3270 and implementing first versions of Novell Netware (how many disks & manuals?!?), Banyan-Vines, Ungermann-Bass and OS/2.
Cheese strategy = a strategy which focuses on the holes in the system (the cheese)
Eg if a broker has a glitch you exploit that glitch for a winning strategy
This cheese strategy for trading is based on exploiting TCP in the technical stack (OSi model)
I traded at a major brokerage with it's own widely used platform. I remember either reading or hearing they used the transport layer to read customer orders before they hit the trading platform
love this content. make a series about explained version of known quant models.
Thanks for covering these topics which are typically not covered on TH-cam
It's kind of funny how they are literally exploiting every single layer of the communication stack. Since they have gotten their fiber link and reduced their latency now they have to cheese the communication stack and possibly any other layer of the communication layer to maximize their execution. It's actually quite interesting.
this is going to be fucking insane if this video actually does a deep dive on the patent and its implementation.
the patent is just countermeasures.
The CME didn't do this for our sake, or to stop them from making money, they did this because it's essentially DDoSing their systems: flooding a system with corrupt tcp packets, in order to hold open connections, is considered abuse of a computer system...except in finance, apparently.
Patent attorney here. I reviewed the patent and can confirm that coding jesus is the messiah.
The fact I just got done making my own networking tool where I learned how to craft the IPv4 header, TCP header, etc and validate and manipulate packets and checksums is ironic.
that's a cool thing to do, I also implemented a TCP stack once, it was an upgrade for a embedded POS (point of sale) that was able to only use external COM modems, and I implemented the entire network card driver and the TCP stack, and I used the sodium for cryptography. The entire thing had to fit in 512KB of RAM.
@@monad_tcp Wow that’s impressive I have made drivers before but doing it on emended systems with very limited amount of ram while also having to remake the TCP stack is on another level nice work.
Do you have full documentaion of you doing it?
@@onlyms4693 Depends what you mean by documentation. I am working on making a website for it containing documentation on how to use it but if you are talking about documentation on how it’s made I do not.
This was such a good watch. Feels like its in a very similar vein/spirit of front running but definitely different.
Really insightful vid...... Please do a vid reviewing the Certificate in Quantitative Finance (CQF) next
Wow - really demonstrates the tangible value trading shops bring to society!
Very important topic, well explained!
I have no idea whats going on but I am enjoying this.
Well explained. Even just listening with headphones fully understood this fascinating innovation.
Thanks for your videos! What you are doing is fantasticly interesting and very educative. Each video is filled with really useful info. Best wishes!
Incredible, thank you for breaking it down so cleanly
Thats a really great explanation!
Really good explanation. Thanks!
Awesome explanation. Thank you
You should change your name from coding Jesus to trading Jesus
Quant jesus
Nice video, I am curious how you heard about it in the first place. Any website you recommend?
Super interesting! Thank you!
You only able to gain few millisecond so if you do HFT this is a great technic, but 'normal' trading not really count I think.
Not milliseconds, but tens or hundrends of nanoseconds, which is 10^4~10^5 times less. If by 'normal' you mean discretionary than usually yes, however high-end execution could benefit any kind of trading
In the first 5 minutes I’m able to understand very clearly what is being said, but I have no idea what we are talking about.
Wow, I didn’t realize that HFT is mostly about computer science than math.
not even. it's an arm race of hardware indeed
@@chankayau 'cept, with hpc cloud services, anyone can virtually access advanced hardware ...located within close proximity of exchanges, that's an altogether different matter.
Its 0 math, 100% hacking.
It should be clear to anyone who read the paper that the gentleman has not. The applicant of the patent is the CME themselves.
Why make a patent? Do they want to stop companies from doing this by claiming patent infringement? How would anyone outside of a company know this was happening? Are regulators watching packets go back and forth and checking if they are complete or corrupt?
"I'm not cheating, I'm cheesing!"
Great video! Thanks for sharing
Just say that your THE economics genius and get over with it. Love you.
Damn actually really hyped for this one
How is your comment 14 hours old when the video was uploaded 40 mins ago? Edits? Just curious.
@@40sUphillBothWays the video premiered. So comments were open like 16 hrs before the video actually went live
@@grantmartin2002 Thanks for your reply--means a lot.
I am being very picky here, because you gave a great explanation. But the 7 layer OSI model is different to the 5 layer Internet Protocol Suite, aka TCP/IP.
imagine if you go through all the trouble of doing this an then the stock goes in the other direction than you expected on the news
Now if I traded like this I am pretty sure JP was hawkish, but less hawkish than expected or answered the questions after the meeting somewhat dovish. Or maybe he was outright hawkish but considering the job numbers it was considered dovish...
It would be like being the first to place money in the casino....
opened my eyes, good stuff
Love the theme. Can you make a video on Ken Griffin and how someone potentially could do what he does? Im in College for Finance and he is an idol. Thanks CJ!
would love to see more models like this used in Quants
Transparency counts, therefore, DeFi
One can, with varied accuracy, determine where stops are with MBO data. This is another reason why order splitting makes sense even for smaller orders.
Incredibly interesting. This is the intersection of 3 disciplines that I am very active in. Too bad i cant use this knowledge to make myself some money. It does make me wonder how in the world they were crafting this trade with the manipulated packets in the first place? Custom software thats talking to an API?
Nice simple explanation bro
🤝
Insanely interesting !
Hi, great video. I had a suggestion: Can you just use the mic or the way you recorded earlier videos? this was a bit difficult to hear compared to other videos you have put. Thanks!
I just dont get why an item is allowed to hang out in the stack and is not asked to go to the back of the line.
Its like you're grocery shopping you get to the front and just jang out there until the store has a sale and a runner goes fills up a cart and brings it to you in the front of the line.
Great video by the way.
This is fucking brilliant
Thanks for the information :)
I think perhaps its not the TCP "messages" that are incomplete, since it is just a packet stream and knows nothing about the contents. Its the FIX messages that are being split over multiple TCP packets, such that any given FIX Buy/Sell message is incomplete. So not the transport layer, but the session layer that is being held up on incomplete messages?
Also seems like little advatnage to be had here. A FIX Buy/Sell message could be only a few hundred bytes and fit into a single TCP packet. The last byte will also take a single TCP packet. Unless these Buy/Sell messages are unusually large for some reason (like trading more complex instruments that need many more parameters or something)?
@@rupertsmith6097 that's really a marginal advantage. Before that becomes useful you have to make sure that 1. Your model is very light-weight, 2. If you're getting info from other location, you transfer it via microwave instead of cable (which 1.5 faster because of cable refraction index) 3. You run your strategy on ASIC, regular computer or even FPGA won't be fast enough. After all of that you may gain maybe extra 100 nanoseconds. It might seem insignificant but if there's someone else who've done 1,2 and 3, but not your trick, then you're going to be faster and you will consume all this HF alpha. It doesn't matter whether you win by an inch or by a mile, winning is winning
Excellent explanation, despite the bad drawings.
I think what is also being exploited is the latency caused by the back and forth messages required to make a single trade. That could represent lots of time (in the microsecond scale).
Appreciate your work very cool
good explanation except I still dont understand how being a few microseconds ahead translates to billions of dollars, which seems like a big oversight.
well you would buy or sell ahead of everyone else before the market moves, wait for it to move and hedge
In the mean time, Warren Buffet was just buying
under valued companies...
Jesus, 16 Minutes for what is essentially a 1 Minute explanation. On top of that it makes no sense for a FED speech. This would make sense for a earnings release to cut the roundtrip to a minimum
🔥🔥 this is insane
But how does a software track a positive news for a ticker? Is it automatic or with human assistance? Great video by the way. ❤👍👍👍
why would you patent a trade secret like this? that kind of defeats the purpose of doing it.
if the CME patents it and someone tries to use it against them , they could sue for patent infringement (?)
A better solution might be to add a delay equal to the amount of time total spent sending the message.
Excellent clarity
Interesting topic! By the way, the content loudness is very silent (On desktop, right-click, Stats for Nerds, Content loudness -17.1dB). It should be above -3 dB to have better audio.
Coding jesus is cooking! This year we getting that 100k plaque with this one🗣️🗣️🗣️🙏🙏🙏
But you are waiting for the feed which will take time to trigger your buy or sell TCP packet. This case is applicable for only scalping trading.
im surprised OSI is mentioned in a Quant video =)) it brings back a few decades memory of network theories =)))
I think all trades should be randomly be delayed by 3 seconds or more to prevent flash trading.
Really enjoyed this video - thank you so much. Now I can see how some quants make seven figures.
that was actually awesome
That was cool. Thanks.
Mind blowing, now i know why they are always ahead
They copied it from link accelerators when you doing long distance over oceans , reduce acks, and merged the layers further into the app stack, but when half your app code in fpga nic cards, you trading app is the fpga nic card, and you dont want the acknowledge ack back , ie latency times if traditional tcp ip, ping test is a different app stack but a good test
the father of this type of trading is JAMES SIMONS. he started the medallion fund back in like 1989 i think and has on average made like 55% return EVERY YEAR SINCE THEN....he was really the first successful quant trader with his partner
Does the S.E.C and Federal Register release this type of info right, what would the best place to keep up to date with new regulations/ rules / patents for finance related topics
Wild that 3 microseconds can have such a difference😵
Interesting content. Hey any videos on Oil trading analysis strategies
This is so useful
Nice work
8:20 wtf. That is next level.
My only complaint is that this minute could have been two minites long
Coding Jesus, thanks for the video. Very informative 🎉. I have a question. I have several openings in the quant / hedge fund space recruiting RADIUS specialists. Why do we need such a specialism in quant networks?
Did they do this strategy in 2018? The patent has publicacion date June 2018
The rules say something along the lines that you can't send an order without having an intention to trade and i think it applies to partial and corrupted orders
16mins for what could have been explained in 3
Wow. FYI never heard of cheese strategy but that’s what trading actually is….exploitation.
I'm sceptical about this. In trading it's a maxim that every piece of news has both a bullish and bearish interpretation. Essentially you just want to be on the right side of the market. And the right side will typically flip flop on a news event in the seconds, minutes, hours and even days after the event, an example being yesterday versus today's price action. So yes you may be quickest but your interpretation may be wrong or right but wrong milliseconds or even days later. There are other issues as well, but.... time.
I wonder how CME learnt about this strategy to penalize such trades.
great explainer. I think you meant "opportunistic" not "optimistic"
this type of content is interesting
@codingjesus: Can this concept be scaled down and be profitable for an individual trader?
Neo: What are you trying to tell me - that I can "manifest abundance"? 🙃✨
Morpheus: No Neo, I'm trying to tell you that when you're ready - You won't have to.🧀✨
Extremely well explained.
In your analogy, you still mention that the last (non-corrupt) byte gets sent to the corresponding trade order (for instance, to a "bullish trade" for good news). Does that not mean that they would have to wait for the news to decide which trade should go through? So the order would be: wait for news - interpret as bullish or bearish - send last byte to corresponding trade. How would that be faster than *not* having your trade already 99% of the way to the exchange, since you still have to wait for the news? Surely it can't be due to the time difference that it takes to send the prior 9 bytes of info (in your example)? Is that all the edge they need?
Run a 100 meter race where you begin at the starting line and your opponent is 1 meter away from the finish line.
I think also, this tcp packet has priority over newly sent packets because it was sent before.
This is essentially insidering trading but with common knowledge. How would the common investor take advantage of this??? We couldn't right? Unless we could create our own trading platform? This is literally free money
This has nothing to do with insider trading and is essentially nothing like it.
@@CodingJesus yes i know that, do you know the answer to rest my question?
whats the point of sharing an strategy that can't be used. isn't it worthless. Its like those coding classes where teacher would share a security bug which has been patched decades ago.