52 points · by joosters · 12y ago · 102 comments
Many of the systems, fiber networks, data centers, and software that I touched are mentioned here. I've never heard the term "bit fucking" before, but the explanation of having to understand what happens under the metal is very true. You have to have a good understanding of software, compilers, assembler, CPU micro architecture, network protocols, and operating systems to be able to operate in this space.
I don't really know what else to add, except that I and many others I worked with in this business think that batch auctions are the solution. Although the work is technically challenging and interesting, I certainly don't like the arms race aspect of it, and I wish the resources (natural and human) used by this sector could be better allocated. One of my big concerns was the added CO2 emissions of constantly spinning programs doing no useful work - all in the name of minimizing latency. I did some research into reducing the carbon footprint of our code by reducing idle spin cycles. Alas, I never really had the time to get it working well before I decided to pack up and move on.
Happy to answer any questions anyone may have.
1) When opening a "new tick", release data about trades in last tick, and start accepting new orders. Information about orders submitted to this tick is kept secret. Allow setting order price to practically arbitrary accuracy. 2) After tick closes, match orders in _random order_. That is, it should not matter at all on at which point in time inside this tick order arrived 3) repeat
Allowing arbitrary accuracy would help turn the competition from speed or stuffing the order book with huge number of orders to "spoof" the random matching, towards competition of just providing lower spread. I understand that it would still advantageous to hold submitting trades until very end of the tick, to take into account as much outside information (other markets, etc.) as possible. To counter this, maybe the exact length of the tick could be randomized also. What do you think?
For the advantage of removing the speed advantage, you get the downside of providing advantage to people that have the loosest risk profiles and you further complicate the audit burden such that it is impossible to follow.
Think of it from the perspective of a value investor that set a market order 6 months ago. Under the current system once their price becomes top of the book they have a virtual certainty of getting filled. Under a (fair) random match they have the exact same chance of getting filled as someone who literaly just put in their order.
If you want to get rid of the speed element (I'm not sure it's a problem) you should explicitly allow people to pay for priority. The easiest way to do this would be to allow for extremely small fractions of price. So instead of having to pay for faster lasers I could just change my pricing structure to tack on .00001 on to the price.
But I've never seen such a match before, so who knows.
Caveat: I'm not a trader but was more on the engineering side.
Naively, couldn't all the craziness about HFT be resolved by enforcing a 1-second tick on the markets?
Like, right now it appears that trades occur instantly. Instead, queue requests and have the trades occur only once a second. Or 5 seconds.
Would this work? I'm assuming that either there's no motivation to solve the problem, or there are difficulties that I'm unaware of.
---
I've been wondering this about HFT for a while and this seemed like a good place to ask. Then I went back and finished reading the article, and this solution is proposed at the end. Curious about whether it would work on not.
There are several arguments against it:
1)liquidity is good(1), more liquidity is better; why artificially limit liquidity, just let people provide as much as needed at as low price as market dictates;
2)Options are good(2), limiting liquidity increases prize of certain options (as issuer needs liquidity to offer options and the less liquidity there is the more expensive issuing those becomes, the effect might be small between 1s and 0s but it's still there)
3)Certain types of arbitrage would be less efficient. Arbitrage is good(3).
(1)-the concept of liquidity is that when you have some goods you want to sell, you don't need to invest time/effort/money to sell it; that in turns frees your time to do productive stuff; the effect is obvious in situations like retail stores buying from manufacturer (so manufacturer don't need to do advertising, building stores etc. themselves so they have more resources to actually produce goods); the effect doesn't disappear magically at 1 second scale, more liquidity (faster, cheaper) is always better for overall productivity.
(2)-options allow certain ventures which normally would be too high variance (forgive the gambling term) to pursue; they are form of insurance; reducing risk is almost always good but it costs to provide; the lower the prize, the better;
(3)-arbitrage is good because the prices of goods/stocks become close to true value; we want that, we also want to pay for that as little as possible; the more effective the arbitrage the better, why stop at 1 second, when you can have cheaper/better ?
This is not the whole story but those points are clear benefits of HFT. Liquidity is cheaper today than it ever was. Spreads are the lowest as well. Some people who used to make bank charging ridiculous spreads are now not making bank - this again is great.
The arms race argument is that resources go into something counter-productive (like stockpiling nukes) instead into something productive. In case of HFT resources (at least some of the time) go into something desirable. It is a race but it is a race to improve desirable things (liquidity, arbitrage). You rarely hear argument about "arm race" in situations like that. It's usually called progress. Usually we applaud progress in situations where service provides needs to compete to offer the best/cheapest product. In case of HFT this point is often somehow overlooked.
1) Liquidity is good, but remember who it is for. Uninformed traders, who want possession of the asset itself, will not care about a one-second delay because one second is too small an amount of time in human terms. Being able to trade a fraction of a second earlier is of no benefit. Being able to trade quickly on human timescales is the great benefit of algorithmic trading.
Informed traders, such as market makers, even market-making algorithms, also shouldn't care about a one-second delay. Their contribution to the market is the price. If you are a very good market maker, and you can quote prices better than anyone else in the market, your prices will be the better ones anyway, regardless of how the market is structured. And the profits are the market's rewards for quoting good prices, not trading quickly.
I would say the general idea is that liquidity providers and liquidity consumers compete, above all, on the price, and a one-second delay does nothing to hurt their incentives.
2) Again, I think it's quite obvious that on human timescales, on which actual economic decisions are made, there is no benefit to information arriving just a fraction earlier than it would otherwise. If you think of a market's purpose as revealing the price of an asset, it really shouldn't matter if the price is revealed 1ms earlier. What matters is that it is revealed at all, and revealed correctly with as many market participants as possible.
3) Because arbitrage becomes better when it contributes information to the market, not when it contributes information to the market 1ms earlier than another arbitrageur.
I think your points are completely valid arguments for algorithmic trading. Algorithms providing market participants with better prices than humans are indeed better for everyone. But for high-frequency trading, with the emphasis on high-frequency, I don't think this is very convincing.
I think the other poster countered it well:
>>The impact is that by being fast market makers can reduce some of their risk, which means that they can price more aggressively. If they can't reduce that risk via speed, they will reduce it in other ways, namely pricing less aggressively. This will increase price spreads and decrease liquidity.
Human investors may not care about getting stuff 1ms faster but they should care about getting the stuff cheaper (or selling it for better price).
>>Again, I think it's quite obvious that on human timescales, on which actual economic decisions are made, there is no benefit to information arriving just a fraction earlier than it would otherwise.
Well, yeah, but again more stuff happens in one second than in one milisecond. It means there is more risk of more bad things happening. If there is possibility of more bad things happening the liquidity providers need to price liquidity higher to mitigate that new risk.
HFT aren't really adding liquidity since they only buy when they can sell straight away. So there was already a liquid purchase there.
Arbitrage, if something is cheaper elsewhere, the 1 second tick will still bring the price into parity.
No it doesn't. Let's suppose in your 1 second time tick you have more people attempting to buy at a price than sell at the same price? Who gets to buy and who doesn't? If it is FIFO then the speed advantage is still there. If it isn't FIFO it can be applied to non 1 second ticks as well.
"HFT aren't really adding liquidity since they only buy when they can sell straight away."
This is a completely untrue statement. Lots and lots of HFT hold inventory. Their inventory periods can range from seconds to minutes to weeks.
The impact is that by being fast market makers can reduce some of their risk, which means that they can price more aggressively. If they can't reduce that risk via speed, they will reduce it in other ways, namely pricing less aggressively. This will increase price spreads and decrease liquidity.
The short answer is that HFT is like Wal-Mart: it's trendy and cool to complain about it, but in terms of providing better and faster inventory to ordinary customers, it works better than everything that came before.
Except Wal-Mart is hated for being (allegedly) bad for poor workers, electronic trading's victims have primarily been the Wall Street old boys' club. Why the public is convinced this is a bad thing is beyond me.
But he fucked up and bought the story the buy side scammers were selling him hook, line, and sinker.
It's such a bummer.
Primarily because regulatory capture has, until now, overruled all attempts to reign it in. The banks and hedge funds engaged in this activity wield vast amounts of political power.
>Naively, couldn't all the craziness about HFT be resolved by enforcing a 1-second tick on the markets?
Not really. That just changes the game from "who can trade a picosecond before you?" to "who can trade a picosecond before the tick?".
An almost microscopic tax on transactions would prevent it, though while having a minimal impact on all other trading activity.
For comparison, Morgan Stanley alone made $8B in profit in the last quarter [1]. HFT is tiny, a drop in the bucket compared to the rest of the financial industry. Further, many big players in the industry are against HFT since HFT reduces their information advantage over smaller players [2].
The danger in a 1-second tick is that a) a massive change like this is hard to do [3] and b) it would likely increase volatility. A stylized fact of dynamical systems is that continuous feedback reduces volatility, whereas discrete step sizes increase it - witness how many numerical ODE solvers can blow up even while the underlying ODE is stable.
[1] https://www.google.com/finance?q=NYSE%3AMS&fstype=ii&ei=bVYI...
[2] http://www.chrisstucchio.com/blog/2014/fervent_defense_of_fr...
[3] Bloomberg, Excel and other calculators contain mathematical errors (e.g., "weekends are sometimes treated as a business day for the purpose of interest accrual") which cannot be fixed because the change would be too disruptive.
I'm not sure what your point is here? There's more to finance than HFT? There are other, bigger rip offs out there?
Which is to say, even a tinier drop in the bucket.
Your invocation of the "regulatory capture" trope doesn't even make sense in this context. The big banks and hedge funds aren't the major HFT players, and many of them are opposed to HFT.
Remind me which of those banks are calling for it to be strictly regulated or prohibited?
I've heard that some banks are now selling "protection" against HFT sharks in the form of dark pools (which is often not really protection at all - see Barclays). Bearing that in mind I can't imagine that it would hurt for them to put out a marketing message that is disdainful of the practice while still quietly engaging in it.
The lack of live market book data means that you won't need the ultra fast connections, so at least one part of the networking arms race becomes de-weaponised.
You still have the problem of it being advantageous to bid at the end of the auction, but this could be solved by pricing. Just like the exchanges give incentives to offer prices rather than to take them, they could make bidding at the start of an auction cheaper than at the end of it.
https://www.nyse.com/publicdocs/nyse/markets/nyse-arca/NYSE_...
http://nasdaqtrader.com/Trader.aspx?id=PriceListTrading2
Ask yourself: why would the exchanges pay market makers to provide liquidity?
The section near the end on FPGAs and programming styles was an eye-opener to me. I wonder how many other firms have taken risk checks out of their code to save some nanoseconds...
You say that like that's a good thing.
I know that a lot of rubbish has been written about HFT and algorithmic trading, but it's sad that no one seems to be able to write about its merits without starting a flame war.
A lot of the rules that markets operate by come from standards and regulations, not software design. The software design reflects the kind of markets exchanges want to set up, so it's not a software problem. The people who wrote the standards had specific markets and specific outcomes in mind when they wrote them.
1) there isn't that much money in HFT. It has an ever decreasing number of players working for an ever decreasing amount of profit. Other areas of finance such as hedge funds, traditional investment banks, and derivatives creation are much bigger and have just as many "smart" people working in them. Don't get me started on advertising...
2) HFT doesn't turn time into money. It buys & sells risk in the form of liquidity. One way that it does this more efficiently is by being able to get in and out of positions fast.
HN, predictably, has a huge bias towards the capital raising/allocation side of the financial markets, but this is not why most participants are involved. Hedging risk is another huge (probably bigger) reason the markets exist. HFT allow that risk to be hedged more cheaply and more predictably so they provide value to the rest of the market.
In trading, a quant's job is to outsmart or outspeed the other bank's team. They invest considerable brain power, effort and money into producing incremental improvements that are quickly rendered meaningless by the work of the team in the building across the street.
Another prime example is advertising, a zero-sum game where competing brands fight to undo other brands' brainwashing efforts and replace it with their own brainwashing. A waste of the time and energy of million of humans.
Some more ideas on the subject: http://www.sphere-engineering.com/blog/15-hour-work-week.htm...
Just be glad that some people's brains are bent on stuff of benefit to you, and concentrate, if you like, on what of general benefit you can do with your own brain.
"Don’t touch the kernel. Don’t touch main memory … Don’t branch.’ (That third commandment means don’t fill your program with ‘if’ statements – ones with the generic form ‘if A then do B else do C’ – because they get in the way of a modern microprocessor’s capacity to do several things in parallel.)"