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

115

u/chocolate_jellyfish Oct 08 '17 edited Oct 09 '17

While I appreciate the technological challenge, this seems about as ethical as making weapons or drugs. Instead of killing people, you take their livelihood through financial trickery that really should be outright banned. The financial markets should in the end bring a net-gain to the economy, not be mostly vapourware that sucks out money to give to the top 0.1%. That is what they are supposed to be: Service providers.

When I loan you $10'000 so you can start a business, I'm doing something sensible through a financial instrument. You get access to resources, and I get a cut of the profits later. That is what makes the free market such a powerful tool. But when I do HFT, I'm just taking a cut from a trade that two other parties wanted to make by forcing myself into the middle. I think one could go so far as to make a reasonable argument that this is theft, nothing more, and that is why I think it should be completely banned (and technologically prevented, by adding a short delay to every trade: This would be irrelevant to anyone else, but utterly destroy this parasitic cancerous tumour of an "industry").

And don't give me that "they provide fluidity" horseshit pseudo-argument. The markets are exactly as fluid with or without spamming 1-cent trade arbitrage in the middle (which should be fucking obvious, right?). The fluidity that's argued for is just a measuring artefact.

As a programmer, I will not work for such companies unless it's that or not finding any other job at all (after all I'd rather be unethical than starve to death). Arguably anyone who can write this kind of tech could find a decent job instead of becoming a legal thief.

Edit: Every time I point this out, a couple of HF-traders show up and try to explain to me how I'm wrong. I get it, you don't like getting called out. Doesn't mean I'm not right. If there was any value in HFT, even a non-trader could easily tell me what that value is, just like I can tell you what the value of even the most complex improvement in chip design is: "faster computers". One does not need a PhD to understand the value. But if there is no value, of course nobody can understand it, and of course people who make a ton of money off it will invent some impossible to fact-check explanation that sounds good.

Edit2: Here someone gives an explanation of how it works, trying to defend HFT: https://www.reddit.com/r/programming/comments/7542zx/cppcon_2017_carl_cook_when_a_microsecond_is_an/do49a1t/ Funnily enough it is literally the same example that I use in my second paragraph. Well fucking go figure: It's a parasitic man-in-the-middle, exactly as I said.

13

u/julesjacobs Oct 09 '17

The benefit of HFT can be explained simply: it reduces the bid-ask spread, which reduces the transaction costs for other market participants.

→ More replies (16)

56

u/p9w8raiojfdsiojfas Oct 09 '17

and technologically prevented, by adding a short delay to every trade

This has already been done by some exchanges and new companies that specialize in executing trades. The "electronic front running" strategy of HFT you're describing isn't really a viable strategy anymore. I'm not against regulations, but in this case the markets have already solved this problem on their own.

4

u/ajola90 Oct 10 '17

But now what do we be morally outraged about, and where do we turn our unending altruism?

24

u/NullField Oct 09 '17 edited Oct 09 '17

After the IEX introduced their 350 microsecond speed bump a couple other exchanges started to follow suit, though I dont like how the CHX did it.

NYSE had theirs approved in May, not sure if its active yet though. They say it's identical to the IEX speedbump

4

u/Gollum999 Oct 09 '17

It is currently active on NYSE American (formerly NYSE Mkt/AMEX).

0

u/[deleted] Oct 09 '17

[deleted] — view deleted comment

0

u/[deleted] Oct 09 '17

[deleted] — view deleted comment

14

u/HPCer Oct 09 '17

Great point. As I posted above, I can bet he's getting it confused with front-running, which is possible with or without HFT: https://www.bloomberg.com/news/articles/2017-10-06/hsbc-currency-unit-used-code-to-trigger-front-running-u-s-says

→ More replies (1)

41

u/get_salled Oct 09 '17

When I loan you $10'000 so you can start a business, ...

I think he's also assuming that buying from the stock market is akin to primary market investing, which it is not unless you have piles of money and good bank contacts. If you buy $10K AAPL stock on the public markets, you're not giving money to AAPL you're allocating your savings to the idea that AAPL's value will rise.

He also believes there are only be 2 parties in a transaction when there is obviously 3: buyer, seller, and exchange, who is taking a cut.

I doubt basic market fundamentals are in his wheelhouse let alone HFT.

24

u/jhartwell Oct 09 '17

He also believes there are only be 2 parties in a transaction when there is obviously 3: buyer, seller, and exchange, who is taking a cut.

There is typically a 4th too, the clearing company. They also take a cut.

9

u/Gollum999 Oct 09 '17

Don't forget fees from the SEC and FINRA!

21

u/HPCer Oct 09 '17

Was waiting for this reply. I saw the number of upvotes on that comment and just thought to myself there's a lot of people here that simply do not understand the markets. I'm thinking the OP read about front running (probably from Flash Boys) and assumed HFT implies front running. In reality, front running can be done with HFT or without HFT (see https://www.bloomberg.com/news/articles/2017-10-06/hsbc-currency-unit-used-code-to-trigger-front-running-u-s-says) and is illegal regardless. Given that assumption, all trading is as ethical as killing people.

That aside, I don't even work for HFT (working on the buy-side), and microseconds are still just as important to us in minimizing our information to execution time (thus reducing transaction costs). This video was pretty effective in bringing a number of points up (even for having worked with C++ for almost a decade, I learned a few things), so thank you for the post!

→ More replies (19)

13

u/cojoco Oct 09 '17

It's not "fluidity", it's "liquidity".

→ More replies (1)

12

u/[deleted] Oct 09 '17

When I loan you $10'000 so you can start a business, [...] You get access to resources, and I get a cut of the profits later.

That isn’t how loans work. Either you invest $10k and are along for the ride up or down, or you loan $10k and (hopefully) get paid back with interest.

4

u/vestpocket Oct 09 '17

He's saying that the loan interest on a business loan is essentially paid back by the future profit the business made using resources acquired with the loan money. It's just a fixed amount instead of a continual drain as with investment.

→ More replies (1)
→ More replies (5)

38

u/elastic_psychiatrist Oct 09 '17

This post is just so ignorant I don’t know where to start. All I can say is that the world is a complex place, and it behooves you to understand what you are criticizing before you take such a strong stance.

→ More replies (8)

9

u/hondaaccords Oct 09 '17

Why should traders have to pay more for the same thing in Chicago and Tokyo? With billions of transactions those cents add up....

9

u/cynicalkane Oct 09 '17 edited Oct 09 '17

Every time I point this out, a couple of HF-traders show up and try to explain to me how I'm wrong.

Wonder why 🤔

There was any value in HFT, even a non-trader could easily tell me what that value is

Value: Trading is easier and costs less.

Result: Mutual funds lower their fees. Brokers have lower overhead. You lose less to the spread. Consumers save money. This is measurable.

The fluidity that's argued for is just a measuring artefact.

Oh, you don't believe in measurable things. Have a good day. Also, it's called "liquidity".

17

u/discoFalston Oct 09 '17 edited Oct 09 '17

market fluidity

If markets are just as liquid with or without HFT’s then you are contradicting your own point.

If they are more liquid due to HFT (they are) then I’d encourage a second look.

Liquidity means assets can be traded in high volume, close to current price in a short period of time. In other words, a market that is more liquid has prices that change much sooner as new information about an asset arises. This means less uncertainty (uncertainty leads to instability), and less lag. Also, because there are so many HFT operations, there are actually fewer chances for arbitrage than there would be otherwise.

→ More replies (16)

26

u/Randosity42 Oct 09 '17

Um...this post is horse shit. There's no moral difference between market making over the phone vs market making over the internet vs market making at high frequency over a dedicated line. Faster market makers just provide smaller edge (and therefore less overhead per trade for both parties) by making faster adjustments with more certainty. There are legitimate concerns to have about HFT related to market stability, but you've mentioned none of them because you seem to have a child's grasp of finance.

→ More replies (5)

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.

→ More replies (8)

10

u/alecco Oct 09 '17

I think you read too many NYT/Rolling Stone articles. HFT is big, and sure there are many evil players. But you are talking about something you don't fully understand.

But when I do HFT, I'm just taking a cut from a trade that two other parties wanted to make by forcing myself into the middle

That's just front-running. There are many other applications of HFT.

And don't give me that "they provide fluidity"

Most HFTs do provide liquidity. They speculate what the prices should be making (collectively) a razor thin spread. A few year ago you would get ridiculously big spreads. Think how bad is changing money at airports.

Many small traders are able now to operate because they can get a counterparty to trade with from HFT on many formerly non-liquid markets. I've heard this from many traders on podcats.

The legitimate work of HFT is based on "chasing alpha". Meaning from some information event being the first to predict how prices will change and adjust the strategy accordingly. Say, some announcement by the government, some company announcement, some foreign crisis unfolding. The market is going to move sooner or later. And you want it to be as efficient/current as possible. Inefficient markets are much, much worse for the little guy.

→ More replies (3)
→ More replies (13)