HomeVideos

This Company Accounts For Over 15% Of All Equities Trading in the US — and They Use C++

Now Playing

This Company Accounts For Over 15% Of All Equities Trading in the US — and They Use C++

Transcript

41 segments

0:01

Hudson River Trading is a quantitative trading  firm. In order to sort of explain why was HRT  

0:08

founded, what were the founders ultimately trying  to do, it's important to set the scene for what  

0:13

trading looked like at the time. Trading was  automated to some extent in 2002, but there were  

0:19

humans involved. So although a lot of the trades  that happened were on exchange, you imagine like  

0:25

sort of pit traders yelling at each other, having  a human in the loop clicking a button to ensure a  

0:31

trade gets executed. At the same time, there were  more fully automated marketplaces, Island, ARCA,  

0:37

and other smaller electronic exchanges known as  ECN's that were growing in volume. So HRT was  

0:43

founded with the idea of like, okay, there's  really some automation that can happen here.  

0:47

As you might expect, predicting the price of  anything tomorrow is really, really hard, right?  

0:52

And so these models are certainly much smarter  than I am or any single human is at predicting  

0:56

markets. But you shouldn't imagine them as being  like clairvoyant. They can't like predict say, you  

0:59

know, the price of Tesla will be this tomorrow.  What they can do is systematically, you know, make  

1:04

better than random predictions at massive scale on  any instrument you can think of. That is sort of  

1:09

the the sort of the core engine of our trading is  being able to give a a better better estimate or  

1:13

at least our best guess of the price of any stock  future bond in like a minute, an hour, a day. And  

1:19

that is driven by an AI model of our own creation.  The impact that HRT has had on these markets over  

1:26

the years has has been pretty noticeable. Not  just HRT, but but all of these quantitative  

1:31

trading firms. Retail investors are basically  paying zero to trade into anything. And that's  

1:36

very different than how it was back in 2002.  And a lot of that can be attributed to automated  

1:42

trading and the service that quantitative  trading firms such as HRT play in the world.

1:49

HRT uses C++ fairly extensively at least in  various performance sensitive contexts. So  

1:55

that would be our live trading environment and  also various parts of our research environment.  

2:00

So why does performance matter? There are two  really important facets of performance. One is  

2:06

this throughput or scale and the other is latency.  Talking about latency first, latency is how long  

2:12

it takes to get a particular message through the  system. Latency is really important in trading  

2:17

because ultimately when when you have trading  strategies, packets can only move at the speed  

2:21

of light. They're always looking into the past  in terms of they're reacting to some market event  

2:26

that already happened. Microseconds matter in this  space and C++ is a language that lets you achieve  

2:32

that latency without without really needing  to micro optimize every line of code. These  

2:37

days market data scale is about 20 terabytes of  streaming market data every day that HRT consumes  

2:43

that's very high throughput. It's also latency  sensitive. And so these market data parsers sit  

2:48

between the exchange and HRT and are translating  market data from this external format to something  

2:53

a little bit more standardized that HRT can then  consume. Some people are concerned by the lack of  

3:00

memory safety that C++ provides. HRT isn't very  concerned by that. I think that comes with the  

3:06

territory is how I would frame it. When you want  to use a language that is as highly performant  

3:11

as C++ is, there's some amount of safety that you  are signing yourselves up for in order to achieve  

3:16

that level of performance. How do we get over  that hump? Well, we hire strong developers who  

3:23

ultimately know how computers work and can map  the language, C++, to what is happening under  

3:28

the hood and write safe and performant code at the  same time. HRT has really grown and grown up with  

3:36

C++ over the years. If you look at our impact on  the market right now, US equities in particular,  

3:41

HRT is roughly 15% of the market. And I truly  don't think HRT could have done it without C++.

Interactive Summary

Hudson River Trading (HRT) is a quantitative trading firm founded to harness automation in financial markets. The firm utilizes advanced AI models to make systematic, high-scale predictions about market prices across various instruments. By leveraging C++ for its high-performance and low-latency capabilities, HRT manages massive data streams and processes trades efficiently. This automated approach has significantly impacted the financial landscape, contributing to the reduction of trading costs for retail investors and allowing HRT to maintain a substantial presence in the market.

Suggested questions

4 ready-made prompts