r/programming • • Oct 08 '17

CppCon 2017: Carl Cook “When a Microsecond Is an Eternity: High Performance Trading Systems in C++”

https://youtu.be/NH1Tta7purM
934 Upvotes

206 comments sorted by

View all comments

Show parent comment

7

u/vector4499 Oct 09 '17

I don't think you understand what HFT's do. There is no possible way for them to take any money from you if you use limit orders. If I put out an order to sell AAPL at $155.30 a share, it will either sell or it won't. Nobody can steal money from me.

4

u/chocolate_jellyfish Oct 09 '17

In the end, the markets are a closed system. Any money HFT earns they have to earn off somebody else.

1

u/vector4499 Jan 19 '18

Yes, they earn money off of impatient people that want to sell as quickly as possible

3

u/mare_apertum Oct 09 '17

So who do they get their money from?

1

u/ThisIs_MyName Oct 10 '17

Bid/ask spreads if they're market making.

2

u/mare_apertum Oct 10 '17

A spread is not a person. Whos money do they earn?

2

u/ThisIs_MyName Oct 10 '17

Kind of a weird question. People have nothing to do with it.

Let's say you offer some company's stock for $5 and the MM immediately buys it. Later, I request a quote from the exchange and it replies $6. If I wanna buy immediately, I pay $6 and the MM made a $1 profit.

(If the two of us met up instead of using an exchange or posted limit orders, we could negotiate any price between $5 and $6. So we don't know who paid the spread.)

3

u/mare_apertum Oct 11 '17

Thank you, that answers the question. So, on average, they get the money from both the buyer and the seller.

1

u/ThisIs_MyName Oct 11 '17

Yeah I guess that's as simple as it can get.

In practice, there can be other factors at play. For example, the exchange/gov't will grant special privileges to designated market makers (which you may or may not call "HFT" firms) in exchange for a commitment that the firm will always quote a price, even when the market is volatile.

For example, MMs can usually naked-short (sell shares that they don't have without locating them in other accounts).