Rigged Markets?

Before I start ranting about stock markets, first a disclaimer: I worked as a software engineer for BATS Global Markets for five years and left to pursue other interests last May. BATS runs stock and options exchanges in the US and Europe. My views on this subject are based on my experience working closely with the operations team in the trenches (tranches?) of market infrastructure. If you don’t nod-off before the end of this post, you can decide for yourself if my position is biased or informed.

There has been a media blitz surrounding a book released a few weeks ago titled: “Flash Boys: A Wall Street Revolt“. It claims the markets are rigged, the exchanges enable it, and hyper-speed traders and exchange operators are raking in millions skimming money from your grandmother’s nest-egg. How I wish it were so simple! The market is complex and imperfect, but it’s not rigged – Technically. Actually, I would argue it’s less rigged now than at any time in history, which I will try to do assuming I don’t get sidetracked.

For over 200 years the US stock markets ran in geographically independent locations like New York and Chicago. During this time the floor broker ruled the roost. Don’t live near the exchange? Too bad. Think about the arbitrage opportunities when the telephone was invented – it was the ultimate speed advantage! Over the last 30 or so years the conversion to an all electronic market structure in effect democratized stock trading. It made the practice both more affordable and geographically accessible to significantly more people. It also amplified the problems associated with having disparate liquidity sources.

In 2007 the SEC tried to address this messy market fragmentation with the National Market System, or “Reg NMS”. The idea was to duct tape all the trading venues into one big financial Rube Goldberg machine. Actually the idea was to provide fair and accurate pricing for participants while fostering competition between trading platforms. Unfortunately, Reg NMS managed to achieve both to a certain degree. Current US market structure is effective, but it’s a complicated web layered with intermediaries. On top of that the implementation of this regulatory behemoth has flaws (gasp). If a loophole exists on Wall Street, well, you can probably guess what happens.

Speed has always been an advantage in price-time priority based markets. The “rise of the machines” in stock trading has only refined this reality to a very precise degree. Exchanges are required to provide fair access to all participants, but this only extends to the edges of their network. Outside of that zone, firms can use all the resources at their disposal to gain any advantage possible. NEWS FLASH: the ones with the fattest wallets and biggest brains tend to do better. I believe it’s called capitalism.

Not all market participants are created equal – some have special roles that basically sanction skimming in exchange for providing liquidity, also known as “Market Makers“.  Like it or not they are an integral part of the ecosystem. Electronic market making can be consistently profitable, as evidenced by firms having only 1 losing trading day in 5 years. But the flip side of this is tremendous risk when things don’t go your way. Knight Capital found this out in 2012 when a software snafu cost them over 400 million bucks in less than an hour. Ouch!

The stock market is not fair, and it never was. In my not-so-humble opinion, it was never designed to be. Suggesting this is a new problem because the big bad machines are pinching grandma’s pennies may be nice for book sales, but it conveniently glosses over a couple hundred years of history that suggest otherwise. I see the market as a work in progress. Keep in mind I’m a software developer, so for me nothing is ever “done” (it’s a job security thing).

There needs to be an ongoing discussion about what works and what doesn’t, followed up with good faith efforts to fix inefficiencies. This happens between exchange operators and market regulators on a regular basis. It’s a tediously slow process, but it does happen. Using populist rhetoric to vilify a system you don’t completely understand is counter productive to advancing that discussion.

From Wall Street to WordPress

I never thought I would have a “Wall Street” job. For starters I live in Kansas. It’s not exactly the financial industry wheel of fortune you are probably picturing. Secondly, at that time, I knew nothing about how markets worked. Na da. Lastly I am a computer hobbyist turned software developer, not a likely contender when pitted against CS PHDs for coveted high paying jobs at them there high-falutin’ Wall Street firms.

Against all this evidence to the contrary, one such company did hire me for a development position. It so happens they were running a trading system on the east coast from a quaint Kansas City suburb office park. Ever since I have been knee-deep in free market plumbing, doing what I can to keep the leaks to a minimum and the cogs of capitalism turning smoothly. It’s been challenging, rewarding, hair-graying, and one heck of a ride.

Being on a team that develops and operates a licensed US Stock exchange is simultaneously invigorating and horrifying. The stakes are big, the players are bigger, and the more you learn, the more you don’t know. During my five years we converted an ATS (alternative trading system) to an official US exchange, launched a pan-European trading platform, started a US options exchange, started a second US stock exchange, and bought then merged a competing European trading system. All the while carving out serious market share.

We had victories and setbacks, flawless execution and brain-dead mistakes. Pretty much the same things all endeavors undertaken by humans endure. We continued to thrive because of impressively dedicated and brilliant employees. No rock was ever left unturned in the pursuit of process excellence. I’m proud to have contributed in my small way to the underpinnings of what makes trading in a complex system work a little bit better, and I’m truly honored to have done so among such excellent company. Now I’m doing the one thing even more unlikely than landing this job in the first place. Leaving it.

I have no love or hate for Wall Street. It is what it is. The best I can muster after working to maintain its infrastructure is a feeling of bland disdain. Big picture wise moving money from one bank to another at lightening speed is hardly inspiring, technical challenges notwithstanding. The stock market is capitalism stripped bare. It is the business of making money with money, without all the pesky distractions of other industries like producing a useful product or service. I appreciate its purity in this regard, but it rings hollow for me in the meaning department. For as much time as I have spent studying it’s inner workings, I’m surprised to say I won’t miss it. I will miss the damn fine people working behind the scenes to make it run as smoothly as it does.

Now it’s time to mosey on down the road to life’s next adventure. I’m happy to say I have accepted a position with Automattic, and am honestly beside myself with excitement over what challenges lay ahead. I started writing Open Source web applications in PHP before WordPress even existed. Through the years I have continued to contribute to Open Source projects in my spare time, and it remains something I am passionate about. With this career change I feel like my professional life and personal labor of love are merging into one. I’m already dreaming about how it will all play out after the next five years.