News for hackers. Stuff that matters.
Re:A veteran programmer explains how the stock market became... by ubernostrum on Monday April 07, 2014 @05:52AM (#7545546)
The issue seems to be that, when you want to buy a somewhat-large amount of stock, regulations exist which:

1. Force you to split up the purchase among multiple exchanges, and

2. To compensate for this disadvantage to the buyer, are supposed to prevent news of the order causing a price change at the other exchanges by spreading faster than filling of the order, so that you don't have to deal with an artificially-inflated price on top of artificially-imposed split of your order.

But while (1) is enforced, (2) is not. Which means buyers and most sellers have to play by one set of rules while people who want to inject themselves as middlemen get to play by a different set of rules.

At least, that's what seems to be being described here, and I certainly can see problems with it.

(not to mention that that "liquidity" and "efficiency" arguments fall flat -- the types of HFT schemes being described here work only by creating artificial illiquidity, and I don't know of any rigorous argument that creating more middlemen improves efficiency)

Re:A veteran programmer explains how the stock market became... by yummyfajitas on Monday April 07, 2014 @06:14AM (#7545620)
There is no regulation which forces you to split up your order. People split their order because one venue does not have enough liquidity.

To compensate for this disadvantage to the buyer, are supposed to prevent news of the order causing a price change at the other exchanges by spreading faster than filling of the order,

This is simply incorrect. There is a regulation which requires exchanges to transmit news of price changes to the other exchanges as rapidly as possible. The purpose is to ensure that all fills happen at the NBBO.

In concrete terms, if BATS has a BUY@$20.00 and ARCA has a BUY@$20.01, BATS is forbidden from filling your order.

http://en.wikipedia.org/wiki/National_best_bid_and_offer

Re:A veteran programmer explains how the stock market became... by fsk on Monday April 07, 2014 @12:38PM (#7547546)
Actually, the exchanges are REQUIRED to split up your order, if the bid/offer is better on another exchange.

Example: NYSE order book

100,000 shares offered $10.02

100,000 shares offered $10.00 (quote)

NASDAQ order book

100,000 shares offered $10.01 (quote)

You send a "buy 200,000 shares $10.02 limit" order to the NYSE.

The NYSE is REQUIRED to route 100,000 shares away to NASDAQ@$10.01, rather than filling the extra 100,000 at $10.02.

An HFT intercepts the trade, buys the 100,000 at NASDAQ @$10.01 ahead of you, and also can buy the 100,000@$10.02 at NYSE ahead of you. Now you have to pay $10.03 to buy the remaining 100,000 shares.

Re:A veteran programmer explains how the stock market became... by fr0sty on Monday April 07, 2014 @01:16PM (#7547835)
Please explain how My. HFT "intercepts" the trade in this case? How does he know your limit price? How does he know your parent quantity?

Imagine an alternate scenario: You send an order "buy 100,000 shares $10.00 limit" to NYSE. Does the HFT spend $4MM buying up 200k on the off chance that you want more than the 100k you already bought? If not, why?

Re:A veteran programmer explains how the stock market became... by fsk on Monday April 07, 2014 @01:24PM (#7547886)
The feed the HFT gets is faster than the NYSE to NASDAQ feed. That lets them trade ahead of you.

You placed an ordinary 200,000 share limit order. You didn't use one of the special order types.

It is riskless for the HFT to buy 100,000 from NASDAQ, knowing they can sell back to you when you buy the other half of your order. Other algos, seeing a big buy, move up the price, so the HFT (may) be able to safely buy and then sell to them.

Re:A veteran programmer explains how the stock market became... by fr0sty on Monday April 07, 2014 @01:41PM (#7548015)
> The feed the HFT gets is faster than the NYSE to NASDAQ feed.

Assuming for the moment that someone can see an execution from NYSE and route an order to NASDAQ in response in less time than NYSE can send their own order to that Exchange you haven't answered the rest of the question.

How does the HFT even know there is an order in-flight to NASDAQ? How does the HFT know that the buyer is willing to pay $10.02?

> You placed an ordinary 200,000 share limit order. You didn't use one of the special order types.

Is this supposed to be an answer? 100k executed at NYSE @ $10.00, this is public information. NYSE routed the other 100k to NASDAQ. Are you saying there is some way for Mr. HFT to know the particulars of that order to NASDAQ?

> knowing they can sell back to you when you buy the other half of your order.

You seem to be under the impression that at some point along the line someone besides the NUSE is seeing the parent order details (buy 200k @ $10.02). Please explain how you believe this information is transmitted to third parties.

Re:A veteran programmer explains how the stock market became... by fsk on Monday April 07, 2014 @01:53PM (#7548097)
The HFTs get to see the list of orders as they come in. That's the advantage of colocating with the exchange.

If a 200,000 share limit order is placed at the NYSE, the HFTs know that regulation NMS requires the NYSE to route shares to the BBO on other exchanges, before filling the order from their own book.

Re:A veteran programmer explains how the stock market became... by fr0sty on Monday April 07, 2014 @02:57PM (#7548529)
>The HFTs get to see the list of orders as they come in.

No, they don't. Third parties cannot see orders "as they come in". Only orders displayed in the exchange's book and executions already completed are sent out to data consumers.

In the example you created the 200k buy order is never displayed and as such is not visible to any other user. All an HFT can see is the 100k execution.

Again, an HFT rushing to buy in front of this order cannot know how big it actually is, nor what the limit price is and as such whatever buying is purely speculative and not a "guaranteed win".

Re:A veteran programmer explains how the stock market became... by ubernostrum on Monday April 07, 2014 @07:46AM (#7545895)
If you believe the description is wrong, your issue is with the article.

Direct quote from article:

With Reg NMS, it essentially took x amount of available stock at one place, and made it one tenth of that x at ten different places.

If that isn't a regulation forcing large purchases to split up, then it's on you to explain why.

Re:A veteran programmer explains how the stock market became... by yummyfajitas on Monday April 07, 2014 @08:34AM (#7546077)
The most charitable interpretation of that quote is that after RegNMS, multiple trading venues became legalized. Liquidity providers then chose to spread liquidity out because it was now legal.

Here is RegNMS. Find me a place where it says liquidity must be divided between all possible exchanges: https://www.sec.gov/rules/final/34-51808.pdf

Re:A veteran programmer explains how the stock market became... by ubernostrum on Monday April 07, 2014 @09:09AM (#7546237)
If you believe the description in the article is wrong, then as I said your problem is with the article.
Re:A veteran programmer explains how the stock market became... by theorique on Monday April 07, 2014 @08:51AM (#7546164)
Seller(s) of stock are not required to place shares on different exchanges. This is a side effect of the process of trading, as the NBBO price bounces around to different venues.

If I offer 100,000 AAPL at NBO at exchange X, and you are willing to purchase 100,000 AAPL at NBO, your buy order matches mine exactly and the transaction takes place. This is highly unlikely, of course, that an enormous stock transaction like this ($50M) will take place this way.

Re:A veteran programmer explains how the stock market became... by maxerickson on Monday April 07, 2014 @10:02AM (#7546500)
It's a lazy question, but what mechanism is the regulator using to score the effort of the exchange?

A related topic would be how often they take enforcement actions.

Re:A veteran programmer explains how the stock market became... by wcummings on Monday April 07, 2014 @07:07AM (#7545766)
>(not to mention that that "liquidity" and "efficiency" arguments fall flat -- the types of HFT schemes being described here work only by creating artificial illiquidity, and I don't know of any rigorous argument that creating more middlemen improves efficiency)

A lot of HFT is market-makers competing for positions in the book. They're simply providing liquidity and literally the more trades they make the more money they make. Market-making is socially valuable (decreases the cost of trading aka the spread) in a similar way that arbitrage is, and as I understand it this is why people are so hesitant to regulate HFT, despite some of the problems it causes. As far as preferential treatment, consider that exchange fee schedules prefer these kinds of traders for a reason.

Exchanges are for-profit and their liquidity providers don't execute trades for the fun of it, there has to be incentive, even if the incentives are at times perverse

Re:A veteran programmer explains how the stock market became... by ubernostrum on Monday April 07, 2014 @07:56AM (#7545924)
If someone was already willing to sell 50 shares of Acme Corp. at $20.00, having an HFT bot get advance knowledge of an order, buy those shares and then re-offer them at $20.01 is not market-making and is not providing liquidity -- it is injecting an artificial middleman, with the cost of a middleman, for no other reason than "we can make money off injecting a middleman".
Re:A veteran programmer explains how the stock market became... by wcummings on Monday April 07, 2014 @08:14AM (#7545989)
My point is that regulating this kind of trading can also damage socially useful trading activity and that's why it's unlikely to happen. There's a lot of rabble rousing about HFT in these discussions on HN (in a similar thread someone went as far as to say arbitrage was not socially useful), I thought it was worth pointing out its more complicated than "HFT IS A BIG SCAM"

I'll admit its funny to see the libertarian bastion of HN get so worked up about HFT. Free markets are all fun and games when it's Uber or AirBnB, but HFT harming retail investors seems to really hit a nerve

Re:A veteran programmer explains how the stock market became... by fleitz on Monday April 07, 2014 @12:05PM (#7547298)
That's the funny thing too, retail investors are fucked beyond believe and it has nothing to do with HFT and everything to do with not having satellite pictures of walmart parking lots, etc. They trade at such an unbelievable disadvantage that it's laughable that HFT could make any difference. (Plus retailers dont move big enough blocks to get into HFT issues)
Re:A veteran programmer explains how the stock market became... by yummyfajitas on Monday April 07, 2014 @08:38AM (#7546104)
How does an HFT bot get advance knowledge of an order?
Re:A veteran programmer explains how the stock market became... by ubernostrum on Monday April 07, 2014 @09:16AM (#7546263)
The scenario most commonly presented is something like:

1. Buyer A wants to buy 50 shares of Acme Corp.

2. The order hits Exchange A first, and Exchange A has 25 shares of Acme Corp. at $20.00 (currently the best price).

3. The order is partially filled, and then on to Exchange 2 to try to get the other 25 shares.

4. Exchange 2 also has 25 shares of Acme Corp. at $20.00 at the time the order hits Exchange 1.

5. An HFT bot saw the order hit Exchange 1, and, in the time it takes for the order to move on to Exchange 2, is able (due to having much faster access) to buy those 25 shares at Exchange 2 before the order gets there, then offer them to the buyer at $20.01.

The fact that the HFT bot was able to act in Exchange 2 with advance knowledge of an order that would arrive at but had not yet arrived at Exchange 2 is what people complain about. And, more generally, people complain that this provides no benefit to buyers or sellers; the buyer was going to buy those 25 shares, and the seller was going to sell those 25 shares, no matter what. So no additional liquidity or market-making went on, and the buyer's order likely is not filled any more quickly than it would otherwise have been.

(and several articles complain that this practice actually leads to loss of liquidity, in that orders go unfilled because HFT bots racing ahead from exchange to exchange have reduced the previously-available shares)

The workaround that's been presented is to have the actual initial order take circuitous, deliberately time-delaying routes to the exchanges in order to have it hit multiple exchanges within a short enough time that an HFT bot can't inject itself as an artifical middleman.

Re:A veteran programmer explains how the stock market became... by yummyfajitas on Monday April 07, 2014 @09:32AM (#7546357)
What you describe is called predatory trading. It will almost never occur with a half-lot order, but can occur with large orders.

Rather than repeat myself, I'll just link to a blog post I just wrote about it.

http://www.chrisstucchio.com/blog/2014/fervent_defense_of_fr...

Re:A veteran programmer explains how the stock market became... by pdonis on Monday April 07, 2014 @11:54AM (#7547220)
What you describe as predatory trading is different from ubernostrum's scenario. In your predatory trading example, Little Billie trying to move a large block of shares, there are no existing orders in the book that match the entire block; so once the initial partial fill of Little Billie's order is done, he will have to change his offer for the rest of the block to move it. In this situation, yes, the predatory trader is communicating market information that might not otherwise get communicated.

In ubernostrum's example (which is also the one appearing in the OP to this thread), there are existing orders in the book that match the entire block. So the HFT in between adds nothing; the entire trade would have occurred at the original offer without him.

Re:A veteran programmer explains how the stock market became... by fr0sty on Monday April 07, 2014 @09:32AM (#7546358)
How does the HFT know the size of the buy order?

Alter the scenario here:

1. Buyer wants 25 shares, buys all available shares at his limit price on exchange A.

2. HFTs 1-n see the entire quote taken at Exchange A and rush to buy all available shares at that price on Exchanges B-K

3. HFTs now own a few hundred shares of Acme corp that they need to unwind.