Undiscovered Country of HFT: FPGA JIT Ethernet Packet Assembly
michaelmalak writes "In a technique that reminds me of the just-in-time torpedo engineering of Star Trek VI: The Undiscovered Country, a company called Argon Design has "developed a high performance trading system" that puts an FPGA — and FPGA-based trading algorithms — right in the Ethernet switch. And it isn't just to cut down on switch/computer latency — they actually start assembling and sending out the start of an Ethernet packet simultaneously with receiving and decoding incoming price quotation Ethernet packets, and decide on the fly what to put in the outgoing buy/sell Ethernet packet. They call these techniques 'inline parsing' and 'pre-emption.'"
This is the madness of high-speed trading...
No sig. Move along - nothing to see here.
These people could be used to develop more efficient hardware for everyone to use, or fix medical conditions, rather than make rich traders even richer at the expense of another economic collapse. It seems wrong that our economy prioritizes high frequency trading so much.
So that you can send your order before even the price quotation comes. Oh , wait, those guy already can do that and send packet back in time : http://news.slashdot.org/story/13/09/25/1955220/somebody-stole-7-milliseconds-from-the-federal-reserve /sarcasm
C. Sagan : A demon haunted world:
http://www.amazon.com/gp/product/0345409469/
visit randi.org
Things like high frequency trading make me want to vom. Essentially, all they're doing is shuffling money around, taking advantage of an outdated system, and increasing risk for the entire world.
It'd be great to see this kind of innovation in something that actually is useful and valuable - not for creating an incremental improvement on a corrupt system.
Fucking parasites (and their toolmakers).
Makes no sense.
I have a friend who works in the defense industry but interviewed with HFT firms around 3 years ago. My friend also had this idea, and discussed it with me since I am close to the industry.
If an industry outsider like my friend had this idea within a week or two of merely interviewing for jobs, it is a good bet many others had already conceived it and even gotten it working before that.
No, this is arbitrage. Taking advantage of price differences within or between markets.
Ok I can see it having implications in high speed control applications now that I think of it. Something like CERN, NIF or any space agency could use it. But we wont have any money to build anything because its more profitable to build shit like this to skim parts of pennies out of the jar than to actually build cool shit that needs FPGA controlled switches.
Just think of the expenses that could be involved if one of these programs screws up. Instead of sell! sell! sell! One could buy! buy! buy! the wrong stock in very large quantities. Instead of a billion dollars in buggy whips one might end up with a billion dollars in donkey whips. What a bummer.
Set a minimum x hours before a stock can be resold.
technically it's more like bribing the telegram machine operator to perform trades based on rules you give him..
why bribing? well you have to know the right people to pay money to even begin trading in this fashion. now I wouldn't have a problem with it if it was accessible to everyone, for example if anyone could buy machine time from vm's that were all given the information at the same time(artificially arranged, wouldn't work otherwise!) at the stock exchange.
world was created 5 seconds before this post as it is.
Ya know, as a Morlock, I'm starting to look at them less as gated communities and more as veal pens.
Veal? That's barbaric. Wait until they're older - they're still pretty tender at 18.
What is with the vitriol here? Why should buyers and sellers not be able to come together to make a transaction at any time that they like?
In Chicago, traders are working faster than light.
You have to be a rich bankster to achieve faster than light trading, though. If anybody else does it it's cheating.
These jerks doing HFT is giving people in the financial sector a bad name.
I didn't know they could get a worse name.
No matter what Wall St apologists say, this is skimming.
Probably so, but it's nothing compared to the outright criminal activities (especially control fraud) that were practiced pre-crash, and probably post-crash as well. The DoJ, SEC, OCC, etc., etc., etc. have bent over backwards to not investigate, let alone prosecute these crimes. For good measure, toss in the corrupt but unfortunately not illegal practices of the Fed engineering yield curves to benefit the banks, buying commercial trash securities (the law says the Fed is only allowed to buy high quality securities) or letting investment firms like Goldman-Sachs have access to Fed loan facilities (they're supposed to be limited to depository institutions).
Actual full summary ending: "They call these techniques 'inline parsing' and 'pre-emption' and 'greedy unfair asshole companies making billions for their owners through cheap, cheating tactics like this to undercut smaller startups and push them out of the market so their fat owners can buy another personal jet instead of handing off the profits to their investors/customers'"
In The Undiscovered Country they modified a torpedo to home in on gas emissions from a Klingon Bird of Prey. This is a story about building trading algorithms into an ethernet switch.
Apart from "needing to do something quickly," I really, really can't see the connection.
systemd is Roko's Basilisk.
Making lots of money by pushing network packets around faster, to no real net benefit to anyone. Other than the ones pushing the packets.
They call these techniques 'inline parsing' and 'pre-emption.'"
And everyone else has been calling this "pipelining" for decades.
Ezekiel 23:20
now I wouldn't have a problem with it if it was accessible to everyone, for example if anyone could buy machine time from vm's that were all given the information at the same time(artificially arranged, wouldn't work otherwise!) at the stock exchange.
Sure you would. You might not think so, but suppose that the exchange set up a perfectly equitable system in which identically configured were made available to every firm and provided with identical market feeds all perfectly synchronized so that no single trading VM has any advantage over any other.
I would give that system about three hours of run time before you discover that:
Just look at the tricks that players in the game are already using, and ask yourself how changing the rules is going to stop them.
I think we just found our culprit.
Doctors destroy health, lawyers destroy justice, universities destroy knowledge, religion destroys spirituality
tax every transaction.
Also tax rolled back oops, my bot "ran amok" transactions. Also track these and send the history to our regulatory watchdogs who, supposedly, will take an interest in the chicanery of anyone abusing this "feature" of the markets. Or just don't allow them to be undone in the first place. caveat emptor, bitches.
the preceding comment is my own and in no way reflects the opinion of the Joint Chiefs of Staff
We should be surprised? Porn has driven more technological advances than most will ever care to admit or acknowledge.
not nearly as much as warfare.
regarding the news, if merely bypassing some local communication api layers yields such a signifficant performance boost, one has to wonder what the decision-making algorithms actually do. obligatory: what could possibly go wrong?
Having a pick set either declares you as an intruder, or someone who loses their keys more often than the pick set...
HFT is morally thievery, ethically abusive, and deserves to be regulated as such.
OR, alternatively, brokers, market makers, and exchanges need to fully and repeatedly disclose to investors the nature and impact of HFT. Those of us trying to time the market are wasting our time, the HFT guys have this down to milliseconds. Trying to find arbitrage is impossible.
Of course, when the Fed stops blowing up this bubble, then the market will collapse to a lower level, and there will be other investment vehicles that can attract capital. Until then, your savings account and CD are paying zilch, so you buy funds and houses. Since banks really don't want to go back into the savings business where they are accountable to their true owners, the depositors, we are facing a Fed intrusion that has no end in sight. Until that ends, individual capital is almost superfluous. And the stock market is the only game in town for many of us.
My rental property looks real good right now.
deleting the extra space after periods so i can stay relevant, yeah.
This still doesn't enable FTL communications. The through-planet neutrino network suggested in that article is more likely.
"When information is power, privacy is freedom" - Jah-Wren Ryel
We need to stop rewarding folks for high-speed trading. It basically steals money from the folks genuinely invested in the companies whose stock is traded and adds no value to the system at all.
Moderating "-1, Disagree" is simple censorship. Have the guts to post your opinion.
The fix for High Frequency Trading is 5 minute rolling averages for all buy/sell orders. This would allow the free flow of capital with some level of price uncertainty that would clear out all the volume based on miniscule profits
This would be done by placing all trades into a five minute escrow account and once the five minutes is up, the trade is completed on the average price during those five minutes. Five minutes is huge in computer time, but not so big to humans. This would only affect non-human based trading.
Agent K: A *person* is smart. People are dumb, stupid, panicky animals, and you know it.
Some things in life are simple:
Almost everyone agrees that HFT is evil.
Nothing is being done about it.
How can both of these things be true at the same time without revealing a serious, dangerous flaw in our political and economic system?
Assorted stuff I do sometimes: Lemuria.org
Someone please fact check before publishing summaries...Ethernet "packets" don't exist. Learn your networking 101 please.
(the segment of data is a FRAME, and may contain packet data)
Education for the win... http://en.wikipedia.org/wiki/Ethernet_frame
Trackball users will be first against the wall.
No, this is arbitrage. Taking advantage of price differences within or between markets.
Correct. This is not the few high profile crocks in the system we've been reading about, this is a constant and persistent skimming of billions of pennies from every market, and depositing them directly into the hands of the traders with no benefit to anyone but themselves. I worked for traders years ago who did this via telephone. A trader in Milan, Chicago, Frankfurt, or London would see a slight difference in price on some treasury bond between their market and one of the others. They would then buy a ton of bonds on one exchange, and sell on the other. It was actually a little more complicated, because they did this with futures, but the result is the same. Pure unadulterated theft. And now they can do it even faster, without that telephone call.
The only thing worse than a Democrat is a Republican.
The news you refer to was notable precisely because it is physically impossible for an electronic signal to get from DC to Chicago in the specified timeframe. I think your culprit is a leaker and accomplices guilty of insider trading, not HFT.
So, what are your thoughts on the technology?
I can imagine this technology can be used for other practices, like a massively parallel world system used in games or simulations.
Cuts down on latency and routing issues with multi-node services by allowing switches to be temporary shared-data proxies.
Taxing every transaction would be too drastic. However, if you trade stock soon after you buy it, you are either gambling (taxable) or have prior knowledge (illegal). Assuming people that do that will be at least gambling, you should tax profit as gambling profits and not make losses tax deductible. Adding a 40% gambling tax on all gross profits made on each transaction that has a sale of the share within a week and putting the burden of bookkeeping of this on the gambler^Winvestor, will make it a lot less profitable to do HFT, but it wont hurt actual investors. Not only that, but it would give the government a nice income they can spend on improving the infrastructure of the USA and making government work better. In the same line, all derivative trades are basically gambling on a value going up or down, so should be taxed the same, unrelated to how long they run or when sold/purchased.
I was promised a flying car. Where is my flying car?
I think you missed my point.
The point with the dual listed stocks is that you have the same stock on 2 different exchanges – a quote based and a order based exchange. Going head to head the quote based system beat the order book system.
By the way, there are a many tricks that one can use the game a order book system. So you are not so much eliminating a problem as switching from one set of problems to another.
If cheaper and deeper markets (using empirical evidence) does not convince you what do you need?
That innovative product will probably be used for something else at some point.
Here we see finance that benefits the real economy, by developing a product instead of providing capital. How weird.
Due to the extreme time constraints it's very likely to be as simple as possible and have to ignore many of the edge cases and error checking normal networking hardware has to worry about. That doesn't leave a lot to be interested about especially since we have no detail at all to talk about and it's boring to discuss what has been left and what the consequences of doing so are. Do you really want to see a lot of posts along the lines of "only an idiot would cut out ..." for something cut out because time is far more important than accuracy?
So we can blow up the economy even faster ..
Add a 0.0001% tax to all financial transactions. Has minimal effect on anyone buying shares to hold but makes HFT unviable.
Actually it had to do with the inability of the authors (and most commenters) to do simple math. The article said: "[...] were placed on Chicago exchanges 2-3 milliseconds after 2 pm." The speed-of-light-delay between the dc and chicago is 3.2 ms. So, no, not "physically impossible".
Just so I understand this correctly.
Dedicated hardware is now being produced to allow bottom-dwelling scum to steal more of our money?
"Nine times out of ten, starting a fire is not the best way to solve the problem." - my wife
They don't have to. Investors can trade with anyone they like. They can even buy direct from original issues if they like.
Of course, mostly people buy from HFT, because they have the best prices...
1 you don't have to pay the market maker. Join the ask or bid.
2. Arbitrage ensures that you get the best price regardless of where you trade. Without arbitrage you might get an advantage by choosing a different venue.
3 because of market makers, if you choose to take their price you're guaranteed to get a price within 1c of "current value".
According to the article posted elsewhere on slashdot about this:
Somebody placed massive orders for gold futures contracts betting on exactly that outcome within a millisecond or two of 2 p.m. that day -- before the seven milliseconds had passed that would allow the transmission of the information from the Fed's "lock-up" of media organizations who get an early look at the data and the arrival of that information at Chicago's futures markets
"within a millisecond or two" is still physically impossible given the 3.2 millisecond bound implied by the speed of light in a vacuum, but even the 2-3 millisecond figure quoted in your other article is much less than the actual fiber latency of about 6.5 milliseconds between Chicago and NYC (presumably similar between Chicago and DC), and is still somewhat less than the fastest microwave links available between NYC and Chicago, which come in at about 4.1 milliseconds. (I'm not sure there are any microwave links operational between Chicago and DC as of yet.) These figures are somewhat worse than physical speed of light bounds because they include actual geographical routes and hops, and an index of refraction in the fiber case.
Which is why there should be an investigation - it certainly looks like someone was sitting on the news beforehand and traded on it as soon as 2PM rolled around. But it could also be that a local news organization broke the news embargo ahead of Washington DC. If I understand the article, it seems like news organizations have access to such announcements beforehand so they can prepare ahead of time release their canned articles at the same time. That would be interesting to find out too - I can see local newsmen tipping off their trading buddies where/what to look at precisely 2PM, or just inaccurate network time synchronization.
So if you don't do those, which exploits are you running on the market to drive up prices and take a cut?
The tech was there from the very beginning.
Ethernet encoding allows for pause in the data and also allows for canceling transmission of the packet by utilizing Link error code (risking that routers will complain about too many link errors).
Very strange, I'd say.
Prove me wrong then.
Describe how preventing the buyer and seller from communicating with each other and getting in first to screw both over is not an exploit - and don't give me that shit about doing such a thing not being a form of manipulating prices - that is a very blatant lie and you know it.
Tell me how it benefits society in some way and is not mere parasitism and a total waste of talent of the people involved.
I'm waiting, but all you've supplied was pre-emptive insults and no actual justification for what you do. I'd like to hear how you benefit society. Also don't insult us with the liquidity crap since you vultures pounce on trades that other people are going to do anyway.
s/do not with to/do not wish to/
So when Pete buys from Paul and you get a cut from their transaction how is that helping anyone? They could just as easily sell to each other if HFT didn't exist and one of those two would be getting the benefit you are getting.
Why do you skirt around such a simple issue and call people "idiots" just for bringing it up?