88 comments

[ 21.6 ms ] story [ 4878 ms ] thread
I'm not even sure if I would consider this fraud (personally).

I mean, if the initial outstanding orders were at risc of actually being bought and he had to deliver, then I think it is just fine that the market is naive enough to judge the worth of a company on some anonymous seller, rather than company performance and market-place condition of said company.

What's next, you start moving stock prices through twitter bots?

I think stock traders should be punished by the market place for acting on poor signals and acting like sheeps.

If he could in fact not deliver the initial sales, then not only is it fraud, but it is a broken system that allows you to put up stuff for sale that you don't own.

It's an odd situation, for sure. After all, these share orders were being entered by humans and could have been sitting in the market order books for several seconds. In that time, anyone could have taken their orders. So they really were genuine offers to sell and buy shares.

Compare that to high frequency traders where it is alleged that 'flash' market orders are submitted and cancelled so fast that no-one could actually take them. How can that be considered OK and yet these human traders are labelled fraudulent?

That's exactly what I was thinking. When high frequency traders are doing it it's OK but when this guy tricks them into actually taking some risks it's fraud.
I think the only evidence for fraud here are the recordings of the people discussing their aims of manipulating the markets. If those didn't exist then it does sound like the trades alone could never be considered market manipulation.

If that is the case, am I breaking the law if I just buy some shares and, during the phone call with my dealer, make a comment that I hope my share purchase drives the price up?

No. Hoping that your trade moves the market one way or the other is completely different than placing orders you hope never trade.

Why is it different? Because the law says it is.

"If that is the case, am I breaking the law if I just buy some shares and, during the phone call with my dealer, make a comment that I hope my share purchase drives the price up?"

And if it's not, why isn't it? Basically it's a double standard, because (most of) the markets are too cosy with HFT firms.

No. Spoofing harms HFT. They would prefer if it didn't happen (well most would prefer it). If this were the case of regulatory capture by HFT firms (which are not big enough or powerful enough to capture much) they would make spoofing harder to do.
When most high frequency traders trade, they are not actively trying to manipulate the market for their own gain (in the cases where they are manipulating the market, they should of course be punished).

Most high frequency traders are trying to make money by providing liquidity, i.e. offering to buy and sell at a better price than the rest of the market. This benefits both the HFT (because they make money) and other market participants (because they can trade at lower spreads).

What these guys were doing was entering orders that they actively didn't want to trade, so that they could push around the price of the stock and repeatedly scalp a small profit. They had no intention of improving the quality of the market (either by narrowing spreads or improving price discovery). In fact they were actively making the market work less well, by impeding the process of price discovery with their "bluff" orders.

The whole point of a market is to be an efficient mechanism for matching buyers and sellers at a fair price. If someone is deliberately trying to distort the fair price, they are undermining the value of the market (and other market participants, not only HFTs, will suffer because their trades will no longer take place at the 'fair' price, but instead at the 'fair' price plus whatever direction the scalpers happen to be pushing it in at the moment).

95 percent of high-frequency trader orders are cancelled (so fast that nobody can take them). Some high-frequency traders have claimed to be profitable on over 99 percent of their trading days.

I don't buy the "providing liquidity" defense of HFT.

http://blogs.wsj.com/moneybeat/2014/04/03/schwab-on-hft-grow...

>95 percent of high-frequency trader orders are cancelled

So what. 99.9999999% of the pixels blatted onto your screen aren't looked at. Why do you care?

Let's say I'm making a market in a derivative product (A), one where the price is 'derived' from the price of another product (B). By a simple equation. Let's say A = 2 * B. No one likes product A. No one trades it. Lots of people trade B. All day long B moves around. B ticks up, I have to cancel my bid and offer on A and move them up 2 ticks (I do it quickly, cos I'm an evil HFT). B ticks down, I have to cancel my bid and offer on B and move it down 2 ticks. All day long I move my quotes. No one fucking trades. 100% of my orders are cancelled and replaced on a different price.

Why do you care?

A limit order is a limit order. It isn't doing anyone any harm by being there.

>Some high-frequency traders have claimed to be profitable on over 99 percent of their trading days.

McDonalds are profitable on 100% of their trading days. Casinos are likely profitable on 99% of their trading days. If they weren't profitable they wouldn't be doing it. Market-makers like Virtu are more service providers than they are 'traders'. They are the middle men who allow others to trade and take risk, and extract a small fee for doing so. Here's a good analysis to read: http://blogs.wsj.com/moneybeat/2014/11/13/virtus-losing-day-...

But McDonald's makes a profit every time I buy a cheeseburger from them. It's like the know the true price in advance, and set their prices so that they always make a profit.

The cheeseburger market is rigged.

I don't have enough technical knowledge about HFT to refute your arguments.

However, thinking logically about the whole HFT business: As I understand it it's something like this:

Let's say I want to buy 100 apples at $1 a piece. A middle man comes and says: I see that you want to buy 100 apples. Let me buy them for you. Here they are (an apple is now $1.001)

Why do I need this middle man to steal from me? You will probably say that they are providing liquidity. It's still stealing and the markets had enough liquidity before the whole HFT gang came.

Maybe I'm wrong, if so please explain me why.

That is a common but completely incorrect analogy. In the real world, the middle man is the exchange. You pay a fee to sell in their market place (and they provide assumedly acceptable value for this service, as in the modern world there are many exchanges you can take your business to).

The HFT is your counter party. When you say you want to buy apples, you are buying them from the HFT. Like any reseller, they are hoping to have bought those apples at a cheaper price than what you want to buy them, because they are a profit making enterprise. Like any reseller, the service they are providing is being able to sell you those apples right now, when you want them. They have taken on the risk and expense of finding cheaper supplies of apples and held them for the appropriate time to sell them when the price was right.

Like any reseller, you do not have to buy directly from them and pay their mark up. You just need to invest the same energy and expense that they do on supply chain to be able to get apples at cheaper prices than people want to pay. Of course, you are probably not in the apple reselling business, so it might not make sense to do this.

> 95 percent of high-frequency trader orders are cancelled

And how does that compare to the pit trader order cancel rates HFT replaced?

> Some high-frequency traders have claimed to be profitable on over 99 percent of their trading days

Are these same traders potentially working on an IPO deal? How about being acquired.

Lets put it this way, it is trivially easy to come up with a strategy that is profitable (also just FYI they mean the buy/sell made money, they dont count their operations cost in that) on 99% of days. Its that 1% that wipes out your whole company that is hard to avoid.

I don't get it, why is it that market orders don't have a lifetime?

I know we used to have a granularity on price that was pretty thick, what would be the issue with having an order have to be on the market for at least a second? I have my doubts about sub-second trading increasing liquidity and making the markets more effecient

The issue would be that market makers would need to inject their orders (quotes) at a greater distance from the mid-price, in order to protect themselves against market movement during the minimum lifetime you propose. If my bid and offer is obligated to sit in the market for x seconds, then it is potentially a sitting duck for any adverse event during that time period, and I would have to quote wider to cover that possibility.
>So they really were genuine offers to sell and buy shares.

They weren't genuine, that's the point. They were offers made with the express intention and hope that they never get filled.

The orders from high frequency traders in contrast are honest orders, when they are sent they honestly express that the trader wants to trade at that price. The fact that they may then be withdrawn 800 microseconds later when the HFT recalculates its price in response to some stimuli and changes its mind about the price, doesn't change the fact they were honest. They're just fast as well. That's what control systems do, they update their outputs when their inputs change.

Why does his state of mind matter? I mean it matters for criminal matters, but why for civil?

Either he actually was willing to make good on his offer or he wasn't. His reasons are irrelevant.

"hope that they never get filled" is not a reason to make this a crime. If he actually refused to fill them, then sure. But hoping?

I don't write the rules, I'm just telling you what they are. I guess it boils down to the idea that bluffing is banned in financial markets. What differentiates making a bluff from a regular raise in poker? You have to 'make good' on the bet either way, yes? The difference is that you're 'hoping' that you don't get called, 'hoping' that your opponent folds. Not allowed in markets. Probably a good thing too, or they'd be even more chaotic as they degenerate into bluff and double-bluff. Having said that spoofing is still widespread, likely because it is hard to prove and some regulators aren't as tough on it as they should be.
Saying that bluffing is not allowed is disingenuous. Why, then, are sellers allowed to break up big blocks of stocks into smaller orders to avoid triggering algorithms in the market? How is that not bluffing. "I have 1M shares to sell, but if I do that, I'm going to take a bath. But if I trickle them in, break them up, etc..." - what makes one strategy, and the other a bluff?
One is hiding what you intend to do. The other is lying about the intention.

What makes one worthy of legal rules and the other not? Don't know.

What you describe is called 'slow playing' in poker, not bluffing. Put it this way, if spoofing (bluffing) were legalized in markets, how do you think it would work out for the little guy? Who has the advantage in no-limit Texas hold em? The guy with the biggest chip stack bullies the pot.
that the trader did not want them filled does not mean that they could not be filled.
If you're saying that HFT algorithms don't publish trades from a pure manipulation purpose I call BS. There are many HFT firms that been caught with their hand in the cookie jar doing just that, the problem is that they are even more that hasn't.

It's really hard to prove intent when trading is done in microseconds and the truth lies somewhere in the algorithm. Those who got caught got caught mainly because of their email trail

I would think that is is easier to prove intent in HFT (with the appropriate court orders). The source code should make it clear what the intent was.
Why? Very rarely will you see something that like:

//spoofing logic goes here.

It is usually expressed in a variety of algorithms in a variety of places. Further, even getting the code is very far down the path of legal proceedings and having the expertise to suss out intent is outside of the skill set of most regulators. Looking through emails/requirements materials and/or having an informant is much more in their skill set.

I don't think this makes it fraud. Fraud would be the inability to deliver.

He is putting orders in with the intention and hope that they never get filled, but as long as they are both fillable and filled when matched, what fraud has occurred?

I can send you an offer for something with the intent and hope you won't accept it - maybe it's a lowball offer to sell my car - but as long as I sell it to you when you accept and an accord has been reached, no fraud has been committed.

(edited for tense)

Well ok, it's not fraud. But it is a securities law violation. Because this specific act is illegal.
You can take an order, at least probabilistically.

Suppose an HFT has an order on the market from 0.30 to 0.40. If you submit an order at 0.00, your order will arrive at some time uniformly distributed between 0.00 and 1.00. With probability 0.1 you'll get a fill.

(comment deleted)
No, it is definitely fraud. The rule is that you may not enter an order (quote) that you have no intention of filling. You're perfectly entitled to change your mind afterwards (for whatever reason) and then cancel the order, but if you send an order with the initial objective of never having it execute, it is a fraudulent order and and a case of market manipulation.

Always hard to prove though, since it goes to the intention of the market participant.

Pardon my ignorance, but why is it possible to change your mind afterward and cancel the order? Why does the market not clear orders irrevocably (executing automatically) as soon as they are matched? Why this "sending" disengaged from actual market actions?
You can't cancel them after they're matched, these cancellations happen while they're sitting around waiting for someone to take them.
These are limit orders under discussion, you seem to be confusing them with market orders.
The market clears any matching orders in effectively zero time (that is, it runs its matching algorithm to clear the book before it allows any new quotes to enter).

After an order is matched, you can't cancel it except in exceptional circumstances (for example, you mistakenly entered an order very far from the bbo - in that case, with the cooperation of your broker and the counterparty to your trade, you may be able to unwind it).

However before the order is matched you are free to cancel it if you decide you no longer want to trade at that price (for example, you see some change in the fundamentals of the stock that causes you to no longer want to buy, or simply that the price moves in such a way that a buy/sell at your original price no longer looks like good value).

So if I offer a trade, and then withdraw the trade because I decide I don't like the idea anymore (or 'any other reason')... that's legal. And routine to do on microsecond timescales.

But offering a trade, and then withdrawing the trade manually a few seconds later because I never intended to execute the trade... that's not legal?

What was the original rational for creating this class of thoughtcrime? Why does it criminalize intent, while the action is perfectly routine, and the outcomes are the same either way? There is, after all, the risk of someone actually calling your bluff and buying your sell order, or selling into your buy order, which is cleared instantly... so where's the fraud?.

Doesn't HTF presuppose that we are hard-coding this behavior, this tactic, into the trading algorithms of automated traders?

>So if I offer a trade, and then withdraw the trade because I decide I don't like the idea anymore (or 'any other reason')... that's legal. And routine to do on microsecond timescales.

Yes that's right. So quickly you may as well assume that they are updating the price they are willing to buy/sell continuously in realtime. Which is the idea. And because they are updating their prices continuously and accurately, they can keep the gap between those two prices as small as possible. For some bizarre reason, this is the only field in all of technology where HN contributors get freaked out by this. Name a control system that doesn't update its outputs frequently.

>But offering a trade, and then withdrawing the trade manually a few seconds later because I never intended to execute the trade... that's not legal?

Yes that's right. Markets work on trust, if you don't actually want to buy/sell what you're claiming you want to buy/sell then you are lying. More importantly, if you don't want to trade, what are you doing putting the order in? What does that leave as your motivation? Manipulation, that's what. Which is illegal. It's very hard to define market manipulation, but that's just about the easiest way I can think of - can you think of a simpler definition? They have to settle on some way of describing it, and it's not unusual for crimes to be defined by intent.

>Doesn't HTF presuppose that we are hard-coding this behavior, this tactic, into the trading algorithms of automated traders?

I don't follow

"Markets work on trust, if you don't actually want to buy/sell what you're claiming you want to buy/sell then you are lying."

No, that's patently not true. If you are UNWILLING, or UNABLE, to execute a trade when matched, then you are lying.

Plenty of people "don't actually want" to buy/sell, every day - using that phrasing, you could point to people who are forced to cover shorts or dump a stock as it plummets to recoup some of their losses.

"I don't want to sell this stock at this price, but I WILL" should never be considered fraud - for the very least reason that it opens a deep rabbit hole into a form of thought crime that really, do many market participants want opened - when they're asked to explain, with a straight face and credulity, what their market strategies are really intended to do.

> "I don't want to sell this stock at this price, but I WILL" should never be considered fraud

A) it isn't fraud, it is order spoofing, which is precisely defined to be based on intention.

B) lots of our legal system is based on intention. It is a common aspect, not a rabbit hole.

You seem to be mixing up different levels of wanting and intention. I may not want to eat my brussel sprouts for dinner, but when I poke them with a fork and raise them towards my mouth I am intending to eat them. Not pull them away at the last second. I'm sure no one enjoys dumping a stock as it plummets, or wants to dump a stock when it plummets, but when they are actually carrying out the process of selling that stock, then they do want the trade to go through. It is their intention to successfully complete the sale of the stock. That's what we're referring to.
Every single trade is market manipulation. Actions have effects, regardless of intent.
Because there may be a request in the system already for the price you offered, which means that your trade will go through immediately when it gets offered, and you won't be able to take it back, even in microseconds.

If any amount of time passes, it's considered to just "be sitting there", so you can change your mind and cancel it. Microseconds isn't the same as no time at all, when you can pre-issue buy or sell orders that will get filled at the very instant a matching order goes in.

The order book would quickly become a tragedy of the commons - everyone's free to add quotes to it, and doing so costs everyone else. In a perfect frictionless free market maybe exchanges could charge appropriately to put in an order, and rebate the proceeds to people who use the order book. But that's probably impractical (if nothing else, people would send their orders to other exchanges), and would create bad incentives; we'd lose the public good of the displayed, honest order book.

> If he could in fact not deliver the initial sales, then not only is it fraud, but it is a broken system that allows you to put up stuff for sale that you don't own.

Real world commerce works on trust and sometimes retroactive enforcement. If I order ten tons of timber, the world doesn't force the person selling it to prove they have it in stock, I just get to sue them if they don't deliver. Somehow it all manages to work out.

Here's an interesting proposal - you charge a small amount (e.g. 0.001 of a cent) for every single order placement and rebate the proceeds to all market participants in proportion to how much volume they actually traded.

People who enter many quotes that they never trade on would be punished by this system (human traders and "flickering" high frequency traders alike) whereas people providing genuine liquidity, in the form of long-lasting quotes at a good price that they intend to trade, will benefit.

This is already done. There is an per-order fee and a per-trade fee. All your proposal would do is shift the balance slightly between these fees.
What markets is this done on? On most markets that I'm aware of, there is a fee for passive trades and a fee for aggressive trades. Sometimes the fee for a passive trade is negative (a rebate) which encourages liquidity provision, but I don't know of any market that actually charges per order, and then rebates that proportionally to the liquidity providers.

One proviso is that I've never worked on US equity markets, so if this rule is in place there then I wouldn't know about it.

In US markets there is a (very small) per-order fee.

There are also rolling windows and disconnections for people who go crazy with quote spam or have low fill rates.

People are already trying to move stock/fx prices via twitter bots...
Can someone explain to me why this is illegal?
He tried to manipulate the market to take an advantage of the shift: http://en.wikipedia.org/wiki/Market_manipulation

You are not allowed to do this if you are a simple guy from the street.

(comment deleted)
You are not allowed to do it, full stop.
I don't think High-Frequency and Investment Banks are following the rules. Until caught.
China and Russia, man!

Terrorism, or something.

You're not allowed to place an order you have no intention of honoring. Basically it comes down to a question of his intent rather than his actions.
Then why does the API allow it?
Are you suggesting that the API should read your mind to discover whether you really intend to trade on an order that you enter?
I'm suggesting retraction should not be implemented in the first place
That's bizarre. So let's say AAPL is trading at $120, and you put in a limit order to buy it at $110, then you should never be allowed to cancel it? How long does the order sit there for? What if AAPL's price goes up to $400 over the next few months, do you have to leave your limit order there forever?
I don't think fenollop means not withdraw it at all. He means after someone has said "I'll take that offer". At which point you can't withdraw it. So these people will make a loss of enough people take up their offers. This risk is mentioned in the article. It doesn't explain why "spoofing" is illegal though. It should be legal. They are trying to shift the market (so is everyone) through an action that exposes themselves to massive loses.
This system currently does not allow you to withdraw an offer once it has been matched. That is not what happened here.

The reason "spoofing" is illegal is because it gives a huge information advantage to one party that the other parties do not have. Similarly to insider trading. I have no opinion on whether those should be illegal, but if the basic premise of the market changes from "we assume everyone here wants to trade" to "this information is garbage", it will definitely have a negative impact on the price of the traded instruments.

The information isn't garbage though because people can purchase the shares that are being spoofed. Even if the spoofer doesn't want it to happen you can still do it. You agreed with me, you can't withdraw the offers once matched so the offers are legitimate.
I think there is some information loss (I'm not sure how much). In a non-spoofing allowed world (where everyone is playing fairly) volume at the back of an order book has implications on the price at the front of it. Figuring out what the implication "really" is, is a differentiating feature that market makers can compete on.

In a spoofing allowed word, that volume is meaningless. Market makers can only differentiate on how quickly they can pull their fake orders and how much risk they are allowed to play with. Not something I'm sure we want to be optimize the rules for.

That said, given the difficulty in enforcement of this particular rule, it may be worthwhile to just throw our arms up and say, "we can't enforce it, so lets make it legal and everyone moves forward on an even playing field".

Because there are scenarios where the actions he did are both legal and reasonable. As I said, the case is all about intent.
The stock market doesn't seem to be a very well designed game if such simple moves have to be made illegal.
Remember when S. Hawking, E. Musk, and others warned to be cautious about the future of AI? I think the contrast defined here between the AI: HFT (High frequency trading algorithms) and 'Monkeys' (the alleged fraudsters, bashing buttons in a quick and manipulative fashion) shows already that we don't like to judge AI the same as we do with humans; while the manipulative effect of both techniques is hard to judge and compare, the argument made is mainly of another order: intent.

On the highest level both AI/HFT and Monkey do this for their own earnings. Society decides that profits out of investment are well earned because they serve some important mechanisms that allow companies to operate. HFT used this as an important argument: they add volatility to the market thus allowing more realistic prices. But the same argument can also be made by the Monkeys.

On a lower level we now start to distinguish: the Monkey techniques are manipulative and were used out of malicious intent. Some AI/HFT techniques may be manipulative but intent disguised: if the technique or decision to "manipulate" was devised by AI, who is to blame?

HFT systems were tricked into making bad decisions?

Boo hoo hoo! Won't anyone please think of the HFT systems?

I don't think anyone is suggesting that it is wrong to "trick" HFT systems (for instance HFT systems make most of their money "tricking" other HFT systems).

What is wrong is doing something expressly illegal to do it. Oh and then putting it into an email chain with an FBI informant.

The article has to be completely misrepresenting which part, exactly, was illegal here. Nearly every high frequency trader in every electronic market aims to do something very similar to 90% of what he describes here.

Is it all because of the motive? And bots can legally do the exact same thing because it's harder to prove any motive behind a bot's actions?

which part, exactly, was illegal here.

The part where he did this with the expressed intention to deceive the market. This is one of those cases where your intentions are far more important that your actions.

Internet lawyers... why did I bother.
These people have just found a way to abuse the stupidity of HFT. IMHO, they have played along the rules and the SEC should ban HFT.
>IMHO, they have played along the rules

Your humble opinion is factually incorrect. At the heart of this story it doesn't have anything to do with tricking HFT (how ever much that may appeal to you). They broke a basic law, one that everyone who trades knows, and then they put it in an email chain to an FBI informant.

The only reason why this is "illegal" and HFT is legal is that the HFT firms are paying customers of the exchange. It's really quite scary how complicit and front-runned the whole stocktrading business has become. I really recommend Flash Boys which is an interesting read on the topic

http://www.amazon.com/Flash-Boys-Wall-Street-Revolt-ebook/dp...

Layering was illegal before there was HFT.

Also, everyone who has any expertise in the way markets and especially electronic markets work, thinks that "Flash Boys" is a terrible book on the topic. You literally are worse off in understanding for reading it.

Try "Dark Pools". Still sensational and occasionally wrong, but at least it gets close.

I can agree that Lewis was perhaps more focused on weaving a compelling story than focusing on the finer details of HFT. Nevertheless its a good primer on the subject and an interesting read. Thanks for the tip about Dark pools
The problem is that it is absolutely not a good primer on the subject, and the only way you could know this is if you have experience in electronic trading already.

If you are trying to learn about electronic / high frequency trading by reading "Flash Boys" you are actively working against yourself. You will literally be more incorrect after you have read this book.

I've read both "Flash boys" and "Dark Pools". Do you have any other book recommendations on this subject?
Those are the only ones I know of that do "narrative" non-fiction. If you are interested in technical books, Trading & Exchanges by Harris is good (if dated) and Algorithmic Trading & DMA by Johnson.
Be clear that this behaviour is illegal. Totally. This is the heinous crime of not being Goldman Sachs or RBS or $BIG_FOFF_BANK with political connections. Make offers that others slavishly follow because they haven't got a clue what the real value is, you're getting prosecute - even if you will trade at the prices you quote. Manipulate libor, bullshit credit risk, rip off your customers with buy recommendations while selling? Help the greek govt get a loan that immediately doubles? No worries. Only small guys who cut the big guys lunch have anything to worry about from regulation enforcement. This is called "regulatory capture" and it's just appalling how common it is and how little is done about it. Hell if you're even seen as a big player you can literally rape children and get a deal for a ridiculously light sentence and they agree to stop investigating and prosecuting other offences and then be met by a member of the royal family when you get out. Literally rape children. http://www.theguardian.com/uk-news/2015/jan/03/lawyers-seek-... Is there nothing all these lawyers can't corrupt? Yeah the things they fucked up through sheer incompetence. Anyway kids the lesson here will be HFT is bad for you because the spreads in the market you can trade are now tighter, so you have lower transaction costs putting more money in your pocket but Goldman's lucrative market-making is lost to them. Bad for goldman's is bad for you. Oh and bubble markets are caused by short-selling. Investment fund reporting season, rash of stories about HFT and short selling and how evil they are - just please ignore those huge fees mutual funds charge for their underperformance. 1-2% of your wealth per year. 6 figures of your money, please look at short selling and HFT and not that because that's not scary at all.
Let's say you trained a bot with reinforcement learning, rewarding profitable trades. And it, by itself, learned this strategy.

Would it be illegal? Sure, the reason the strategy works maybe price manipulation, but it is hard to ascribe intent to it all the same.

That is precisely why this case is so good for the SEC, there is an email chain.

If you had an email chain stating that you were going to train your bot to layer, that would show intent, which would make it illegal. Otherwise it isn't.

Intentionality is at the heart of the law.

We are going to see more cases like this, as market-making robots increase their trade volumes. Big players are pouring more and more money into automated trading, and that trading relies on algorithms. Often the algorithms involve some sort of machine learning, and therefore depend on the input data, which is vulnerable to manipulation.

For example, imagine a bot programmed by some 5-10 person team at a hedge fund. They find that running sentiment analysis on twitter and news comments can accurately predict whether a given security will rise or fall in response to a fed press release. The profits are good, so the team manager moves a couple million into the algorithm. One night after work, a team member tells his programmer friend about the algorithm, and mentions some of the most profitable stocks. This friend goes home and programs another bot to corrupt the sentiment analysis dataset, by posting fake comments with properly tuned sentiment. The hedge fund bot reacts as expected, and now the friend has the power to manipulate the bot. He has outsmarted the bot and can take advantage of the high volume trading.

That might be a bit of a contrived example, but corruption in machine learning data is a very real problem. People are just starting to study it. [0]

[0] https://www.usenix.org/system/files/conference/usenixsecurit...

[1] http://dl.acm.org/citation.cfm?id=1128824

I build surveillance programs to look for activity such as spoofing and layering. It is not always as clear cut as these cases make it out to me.