TheNewTopical.com - current events, politics, culture, ethics, economics discussion forum  

Go Back   TheNewTopical.com - current events, politics, culture, ethics, economics discussion forum » Main Forum » Fundamental Change

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-01-11, 01:19 AM
FredFredson's Avatar
Senior Member
 

Join Date: Dec 2009
Location: North America
Posts: 1,749
Cool Hackers find new way to cheat on Wall Street -- to everyone's peril

Hackers find new way to cheat on Wall Street -- to everyone's peril
By Bill Snyder
Created 2011-01-06 03:00AM

Hackers find new way to cheat on Wall Street -- to everyone's peril

High-frequency trading networks, which complete stock market transactions in microseconds, are vulnerable to manipulation by hackers who can inject tiny amounts of latency into them. By doing so, they can subtly change the course of trading and pocket profits of millions of dollars in just a few seconds, says Rony Kay, a former IBM research fellow and founder of cPacket Networks, a Silicon Valley firm that develops chips and technologies for network monitoring and traffic analysis.

Kay, an Israeli-born computer scientist and one-time Intel engineering manager, says the root of the problem is the increasing speed of networks; as they get faster and faster, our ability to actually understand events taking place within them isn't keeping up. Network monitoring technology can detect perturbations in network traffic happening in milliseconds, but when changes occur in microseconds, they're not visible, he says.

cPacket has developed a proof of concept showing that these side-channel [4] attacks can be used to create tiny delays in the transmission of market data and trades. By manipulating specific trading activities by several microseconds, an attacker could gain unfair trading advantage. And because the operation occurs outside the range of monitoring technology, it would remain invisible. "We believe that such techniques pose a substantial risk of creating unfair trading, if used by the wrong people," Kay says.

(A side-channel attacker looks at indirect information related to the computer -- the electromagnetic emanations from screens or keyboards, for example -- to determine what is going on in the machine. )

Latency threatens other applications as well

The lack of visibility into high-speed networks is of concern to more than the financial community. Managing traffic on today's 10Gbps and faster networks is becoming difficult, resulting in degradations of performance, particularly to virtualized systems. "It's difficult to take corrective actions when you can't really see what's taking place," Kay says. "If you cannot measure network latency, you cannot control it and cannot improve it."

In a PDF whitepaper on latency [5], Kay wrote, "Traditionally, applications that have latency requirements include: VoIP and interactive video conferencing, network gaming, high-performance computing, cloud computing, and automatic algorithmic trading. For example, one-way latency for VoIP telephony should generally not exceed 150 milliseconds (0.15 seconds) to enable good conversation quality, while interactive games typically require latencies between 100 and 1,000 milliseconds. However, the requirements for automated algorithmic trading are much more strict. A few extra milliseconds, or even a few extra microseconds, can enable trades to execute ahead of the competition, thereby increasing profits."

Indeed, latency, even at the very highest speeds, is so concerning that researchers at MIT recommended [6] any organization dealing in complicated time-sensitive global interactions should take a hard look at where they locate their data centers.

The MIT researchers even suggested that financial firms could gain some advantage by taking advantage of limitations posed by the speed of light. For example, it typically takes about 50 milliseconds to send a message from New York to London. Placing a server between the two could cut the speed of communication in half, they said, which may be enough time to take advantage of some momentary pricing discrepancy. Trading on that discrepancy is known as arbitrage, and it's becoming increasingly common.


Lessons of the "flash crash"

The vulnerability of markets in which high-frequency trading is common became all too evident last May, when exchanges experienced a "flash crash [7]" that drove the Dow Jones down about 600 points in just five minutes. The incident was not the result of deliberate manipulation, but it shows just how dependant the financial world is on technology it doesn't really understand.

"Financial institutions and exchanges with [high-frequency trading] are spending millions to improve latency by microseconds and at the same time can't measure the data at that resolution in real time. It's disturbing," Kay says.

A side-channel attack on a high-frequency trading network is analogous to a denial-of-service attack [8]. In a typical DoS attack, bots flood a target website with enormous numbers of hits, often causing a crash. A side-channel attack would be infinitely more subtle, but it would still function by adding extraneous packets to a legitimate data stream. Those extra packets slow the data just enough to give someone else a chance to move first in the market.

Kay says he does not know if anyone has yet launched a side-channel attack against a high-frequency trading network -- but it worries him. And it worries me. Financial markets are supposed to be a level playing field. They're not, of course. Small players, like the millions of us who invest for our 401(k)s and other retirement accounts, are at an immense disadvantage even when everything is kosher. But the proliferation of high-frequency trading widens the gap even more. If someone can really take advantage of a weakness in those networks, we're all really in trouble. And that's just another reason why more -- not less -- regulation is required in the financial markets.

I welcome your comments, tips, and suggestions. Post them here [9] so that all our readers can share them, or reach me at bill.snyder@sbcglobal.net [10]. Follow me on Twitter at BSnyderSF [11].

This article, "Hackers find a new way to cheat on Wall Street -- to everyone's peril [12]," was originally published by InfoWorld.com [13]. Read more of Bill Snyder's Tech's Bottom Line blog [14] and follow the latest technology business [15] developments at InfoWorld.com.
__________________
"Patriotism means being loyal to your country all the time and to its government when it deserves it."-- Mark Twain

"Inter arma silent Musae"--when the weapons speak, the muses fall silent.

An't nanum hearm deth, doth hwaet ye willath.

It is forbidden to kill; therefore all murderers are punished
unless they kill in large numbers and to the sound of trumpets. -Voltaire

Economic Left/Right: -3.88
Authoritarian/Libertarian: -4.36
Reply With Quote
  #2 (permalink)  
Old 15-01-11, 05:15 PM
FredFredson's Avatar
Senior Member
 

Join Date: Dec 2009
Location: North America
Posts: 1,749
Default

Market Data Firm Spots the Tracks of Bizarre Robot Traders

By Alexis Madrigal Aug 4 2010, 8:01 AM ET Comment


Mysterious and possibly nefarious trading algorithms are operating every minute of every day in the nation's stock exchanges.

What they do doesn't show up in Google Finance, let alone in the pages of the Wall Street Journal. No one really knows how they operate or why. But over the past few weeks, Nanex, a data services firm has dragged some of the odder algorithm specimens into the light.

The trading bots visualized in the stock charts in this story aren't doing anything that could be construed to help the market. Unknown entities for unknown reasons are sending thousands of orders a second through the electronic stock exchanges with no intent to actually trade. Often, the buy or sell prices that they are offering are so far from the market price that there's no way they'd ever be part of a trade. The bots sketch out odd patterns with their orders, leaving patterns in the data that are largely invisible to market participants.

FINANCIAL TECH on THE ATLANTIC

Alexis Madrigal:
Explaining Bizarre Bot Trader Behavior

Joe Flood:
How Algorithmic Trading Works
Timothy Lavin:
Monsters in the Market
Alexis Madrigal:
Tech and the Flash Crash


In fact, it's hard to figure out exactly what they're up to or gauge their impact. Are they doing something illicit? If so, what? Or do the patterns emerge spontaneously, a kind of mechanical accident? If so, why? No matter what the answers to these questions turn out to be, we're witnessing a market phenomenon that is not easily explained. And it's really bizarre.

It's thanks to Nanex, the data services firm, that we know what their handiwork looks like at all. In the aftermath of the May 6 "flash crash," which saw the Dow plunge nearly 1,000 points in just a few minutes, the company spent weeks digging into their market recordings, replaying the day's trades and trying to understand what happened. Most stock charts show, at best, detail down to the one-minute scale, but Nanex's data shows much finer slices of time. The company's software engineer Jeffrey Donovan stared and stared at the data. He began to think that he could see odd patterns emerge from the numbers. He had a hunch that if he plotted the action around a stock sequentially at the millisecond range, he'd find something. When he tried it, he was blown away by the pattern. He called it "The Knife." This is what he saw:



"When I pulled up that first chart, we saw 'the knife,' we said, that's certainly algorithmic and that is weird. We continued to refine our software, honing the algorithms we use to find this stuff," Donovan told me. Now that he knows where and how to look, he could spend all day for weeks just picking out these patterns in the market data. The examples that he posts online are just the ones that look the most interesting, but at any given moment, some kind of bot is making moves like this in the stock exchange.
"We probably get 10 stocks in any 10 minutes where we see something like this," Donovan said. "It's happening all the time."
These odd bots don't really make sense within the normal parameters of the high-frequency trading business. High-frequency traders do employ algorithms to look for patterns in the market and exploit them, but their goal is making winning trades, not simply sending quotes into the financial ether.

Here's the way a stock trade is supposed to work: a buyer says they'll pay some amount for 100 shares of a company, a seller makes an ask for slightly more money, and the two of them usually meet in the middle. Perhaps a middle man (no joke intended) helps match buyer and seller and takes a cut. That's the role that a lot of high-frequency traders play: they help make markets work. Regulatory changes over the past several years have extended their usefulness and provided a nice business model for those that can move quickly to provide options for buyers and sellers.

"Under the maker-taker model, market participants that offer to provide, or make, liquidity by posting an order to buy or sell a certain number of shares at a particular price receive a rebate," explained Michael Peltz in a June feature for Institutional Investor. "Those that execute against that order -- that is, take the liquidity -- have to pay a fee. Exchanges earn the difference between the rebate they pay and the fee they charge. The SEC limits taker fees to 0.30 cents a share; rebates tend to be lower for economic reasons, but for high frequency firms trading millions of shares a day, they can make for a pretty good living."
In a sense, they take nickel-and-diming down an order of magnitude or two. The advantage is that their trades are low-risk: they rarely hold positions for very long and any individual stock, future, or currency can't really sink the boat. High-frequency traders have become a target for all kinds of people, but most of them appear to make their money being a little faster and little smarter than their competitors. And if they are playing by the rules, they improve the quality of markets by minuscule amounts trade after trade after trade.

But the algorithms we see at work here are different. They don't serve any function in the market. University of Pennsylvania finance professor, Michael Kearns, a specialist in algorithmic trading, called the patterns "curious," and noted that it wasn't immediately apparent what such order placement strategies might do.

Donovan thinks that the odd algorithms are just a way of introducing noise into the works. Other firms have to deal with that noise, but the originating entity can easily filter it out because they know what they did. Perhaps that gives them an advantage of some milliseconds. In the highly competitive and fast HFT world, where even one's physical proximity to a stock exchange matters, market players could be looking for any advantage.
"They are moving the high-frequency services as close to the exchanges as possible because even the speed of light matters," in such a competitive market, said Stanford finance professor Peter Hansen.
Given Nanex's data, let's say that these algorithms are being run each and every day, just about every minute. Are they really a big deal? Donovan said that quote stuffing or market spoofing played a role in the Flash Crash, but that event appears to have had so many causes and failures that it's nearly impossible to apportion blame. (It is worth noting that European markets are largely protected from a similar event by volatility interruption auctions.)

But already since the May event, Nanex's monitoring turned up another potentially disastrous situation. On July 16 in a quiet hour before the market opened, suddenly they saw a huge spike in bandwidth. When they looked at the data, they found that 84,000 quotes for each of 300 stocks had been made in under 20 seconds.

"This all happened pre-market when volume is low, but if this kind of burst had come in at a time when we were getting hit hardest, I guarantee it would have caused delays in the [central quotation system]," Donovan said. That, in turn, could have become one of those dominoes that always seem to present themselves whenever there is a catastrophic failure of a complex system.

There are ways to prevent quote stuffing, of course, and at least one of the members of the Commodity Futures Trading Commission's Technology Advisory Committee thinks it should be outlawed.
"Algorithms that might be spoofing the market are something that should be made illegal," said John Bates, a former Cambridge professor and the CTO of Progress Software. But he didn't want this presumably negative practice to color the more mundane competitive practices of high-frequency traders.
"There is algorithmic terrorism and then there is reverse engineering, which is probably just part of good business practice," Bates said.
For now, Donovan plans to keep putting out the charts, which he calls "crop circles," of the odd trading algorithms at work. That's an apt name for the visualizations we see of this alien world of bot trading. And it certainly gets at a central mystery surrounding them: if trading firms aren't sending out these orders, how are they getting into the market?

On the quantitative trading forum, Nuclear Phynance, the consensus on the patterns seemed to be that they simply just emerged. They were the result of "a dynamical system that can enter oscillatory/unstable modes of behaviour," as one member put it. If so, what you see here really is just the afterscent of robot traders gliding through the green-on-black darkness of the financial system on their way from one real trade to another.

No matter why the bots end up executing these behaviors, the Nanex charts offer a window onto a kind of market behavior that's fascinating and oddly beautiful. And we may never have seen them, if not for the mildly obsessive behavior of one dedicated nerd.
"Who looks at millisecond charts?" Donovan said. "You'd never see those patterns in any other fashion. The SEC and CFTC certainly weren't."



Here are a few more bots at work with explanations of what's going on.

Here we see a "flag repeater" being executed on the BATS Exchange, the third-largest equity market after the NYSE and NASDAQ. 15,000 quote requests were made in 11 seconds in a repeating pattern. Each iteration upped the quote a penny until $9.36, and then the algorithm went down the same way, a penny at a time.

This is an extreme closeup of just one second of trading of the stock SHG, the Shinhan Financial Group. This is 760 quotes from a total of 10,000 made in 12 seconds.


This chart shows a different kind of strategy. It represents 56,000 quotes in one second all at the same price (the top chart) but with the size of the order increasing by one (i.e. 100 shares) all the way up to 40,000.


Finally, we see what Donovan calls the "stubby triangles" chart. It shows high quotes being made and then immediately followed by a stub order of $0.01 (basically canceled in most contexts). The quote is then remade at a lower price and followed with another stub quote. This cycle happened at the rate of 380 quotes a second. [This last description was clarified thanks to the kindness of author Joe Flood.]
__________________
"Patriotism means being loyal to your country all the time and to its government when it deserves it."-- Mark Twain

"Inter arma silent Musae"--when the weapons speak, the muses fall silent.

An't nanum hearm deth, doth hwaet ye willath.

It is forbidden to kill; therefore all murderers are punished
unless they kill in large numbers and to the sound of trumpets. -Voltaire

Economic Left/Right: -3.88
Authoritarian/Libertarian: -4.36
Reply With Quote
  #3 (permalink)  
Old 04-03-11, 02:03 PM
FredFredson's Avatar
Senior Member
 

Join Date: Dec 2009
Location: North America
Posts: 1,749
Default

Update

It get's better!

The potential for massive "unintended consequences" at these scales is huge.

F



The rise of the picosecond


Michelle Price
03 Mar 2011

rise of the picosecond

Just when you thought high-speed cash equities trading could not get any faster, trading geeks have thrown a new concept into the mix: the picosecond.

A second is a long time in cash equities trading. Four or five years ago, trading firms started to talk of trading speeds in terms of milliseconds.

A millisecond is one thousandth of a second or, put another way, 200 times faster than the average speed of thought. In the time it took your brain to tell your hand to click on this article, a broker or market-making firm trading in milliseconds could fill hundreds of orders on an exchange.

Milliseconds, however, are now ancient history. In the past two or three years, trading speeds have been shaved down to inconceivably tiny increments: from milliseconds to microseconds, and more recently to nanoseconds.

But in recent weeks trading geeks have started to talk about picoseconds in what is a truly mind-boggling concept: a picosecond is one trillionth of a second. Put another way, a picosecond is to one second what one second is to 31,700 years.

Speaking at a London conference on Tuesday, Donal Byrne, chief executive of Corvil, a high-speed trading technology company, caused a ripple of audible incredulity throughout the room when he suggested that trading speeds could be reduced to picoseconds in the not too distant future.

For those whose brains have not instantly combusted at the concept, the rise of the picosecond prompts an obvious question: why on Earth (which spins at a rate of 460 meters a second) is it necessary to trade so fast?

The answer is simple. Firms that trade super fast effectively put themselves at the front of the trading queue and have priority over other orders. This position gives them better information on the trading behaviour of other investors and allows them to react faster.

In a bull market, speed can ultimately make for beefy profits, but in a bear market these tiny fractions matter more than ever. The potential value of millisecond, or indeed a picosecond, was vividly demonstrated during a particularly bloody period on Black Friday, October 10, 2008, when the UK market plummeted at a hair-raising £250m a second.
__________________
"Patriotism means being loyal to your country all the time and to its government when it deserves it."-- Mark Twain

"Inter arma silent Musae"--when the weapons speak, the muses fall silent.

An't nanum hearm deth, doth hwaet ye willath.

It is forbidden to kill; therefore all murderers are punished
unless they kill in large numbers and to the sound of trumpets. -Voltaire

Economic Left/Right: -3.88
Authoritarian/Libertarian: -4.36
Reply With Quote
  #4 (permalink)  
Old 04-03-11, 02:08 PM
FredFredson's Avatar
Senior Member
 

Join Date: Dec 2009
Location: North America
Posts: 1,749
Default

To which this image says it all:



F
__________________
"Patriotism means being loyal to your country all the time and to its government when it deserves it."-- Mark Twain

"Inter arma silent Musae"--when the weapons speak, the muses fall silent.

An't nanum hearm deth, doth hwaet ye willath.

It is forbidden to kill; therefore all murderers are punished
unless they kill in large numbers and to the sound of trumpets. -Voltaire

Economic Left/Right: -3.88
Authoritarian/Libertarian: -4.36
Reply With Quote
Reply


(View-All Members who have read this thread : 6
AnonymousIdiotSavant, contracycle, FredFredson, Gilles de Rais, PostmodernProphet, roadkill
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 04:22 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.0