<i>“Five days, including the weekend, with the coronavirus going on and a complex system where we have to make many changes, was not a sufficient amount of time,” he said. “The idea we could have bugs is not, in my mind, a surprise.” He also acknowledged the error in the margin model Interactive Brokers used that day.....We have called the CFTC and complained bitterly,” Peterffy said. “It appears the exchanges are going scot-free.”</i><p>Thomas Peterffy must think we are idiots. Anyone who trades commodity contracts for any period of time knows that the real cost of the contract is the <i>actual cost of the commodity - storage costs</i>. When storage costs spike and the actually commodity spot costs go down, the future will become negative!<p>One way to get a handle on storage costs is think of them being inversely proportional to the <i>value density</i>. The higher the value density, e.g. gold the less the storage costs. Oil is not so dense so storage costs matter. Financial instruments like the Treasury Bonds and the S&P futures contract have zero storage costs. Storage cost is of-course different than carry cost (the cost of funding your long position).<p>On another aside, I have known folks who have worked at IB in the past, and their systems absolutely suck dead goats. Huge masses of legacy C++ code with poor testing. Most of these brokerage firms have legacy code base from the 90s that is poorly understood. They also have nonexistent organizational quotient around code validation, correctness and testing their risk models. A futures margin model is not something one can whip up over a weekend but a good CS undergraduate can program one over a couple months.<p>Sorry for the IB customers but I have <i>zero</i> sympathy for IB or should I say negative ;)
> Peterffy said there’s a problem with how exchanges design their contracts because the trading dries up as they near expiration. The May oil futures contract -- the one that went negative -- expired the day after the historic plunge, so most of the market had moved to trading the June contract, which expires May 19 and currently trades around $24 a barrel.<p>> “That’s how it’s possible for these contracts to go absolutely crazy and close at a price that has no economic justification,” Peterffy said. “The issue is whose responsibility is this?”<p>It’s pretty well known that commodity futures contracts are a game of hot potato for most investors as the expiration date approaches. But the Interactive Brokers CEO doesn’t offer an alternative solution. How would the contracts be structured instead that would avoid this? I don’t see how it would be possible.
Incorrectly assuming values can never be negative is an all-too-common occurrence in trading and financial software. In 2012 Swedish stock futures trading was suspended for a time because their matching engine used an unsigned type for order quantities and someone submitted an order with a negative value which wrapped around to 4 billion: <a href="https://www.reuters.com/article/markets-sweden-bug/swedish-stock-futures-market-problem-caused-by-mega-order-glitch-idUSL5E8MTB4I20121129" rel="nofollow">https://www.reuters.com/article/markets-sweden-bug/swedish-s...</a><p>Interactive Brokers' software is usually very solid. I'm surprised they weren't ready to handle this, the possibility of oil going negative had been discussed for some time before it happened.
If you look at the CME website using the wayback machine, you can clearly see a hi and low limit for the price. There is no high limit, but the low limit is set at "0.01". [1]
This is kind of weird, because the snapshot is pulling current market prices, and still showing an incorrect hi/lo limit. It looks like they have since removed the hi/lo display: [2]. Someone should take a screenshot of this.<p>[1] <a href="https://web.archive.org/web/20200117115242/https://www.cmegroup.com/trading/energy/crude-oil/light-sweet-crude.html" rel="nofollow">https://web.archive.org/web/20200117115242/https://www.cmegr...</a><p>[2] <a href="https://www.cmegroup.com/trading/energy/crude-oil/light-sweet-crude.html" rel="nofollow">https://www.cmegroup.com/trading/energy/crude-oil/light-swee...</a>
> Its software couldn’t cope with that pesky minus sign, even though it was always technically possible -- though this was an outlandish idea before the pandemic -- for the crude market to go upside down.<p>Wow, just wow. They are handling millions (billions?) of dollars every day and couldn't find the time to test that they can just DISPLAY a minus sign. That's insane.<p>And it's not even that outlandish. People were saying it could go into the negative weeks before it happened. This just seems like pure laziness. Just pretend everything is business as usual.
Wasn't the original purpose of futures to let farmers and others lock in prices early so they can mitigate risk? Speculation on futures seems dumb if you have no intention of taking delivery.
I'm surprised IB let speculators trade in a contract going to delivery. I worked as a risk manager in a commodity trading firm and only hedgers qualified to take delivery were permitted to hold contracts going to delivery.
If you don't know what is going on, then why on earth would you risk so much money?<p>IB fucked up, no doubt, but these idiots are trading shit they know nothing about.<p>Don't trade on margin.
It's really odd that this bug occured, as IB has no issue pricing credit spreads with negative values. Must be an issue specific to commodities futures contracts. I wonder what data types they were using.
For futures on physical deliverable objects (well, I guess most futures are such, but anyway) -- would volatility and speculation be dampened/improved if the clearinghouse forced everyone (or the seller) participating in a trade to certify that they had rights to the specific thing being traded? Could actually produce the contract -- like the oil producer is certified to have <xyz> barrels allowed to be sold?<p>My notion is that if much of the trading (and it can be shown by futures volumes) cannot possibly be on actual physically deliverable quantities, then most must be "speculation" by people who cannot actually produce the asset. Would this be a help to stabilize the market?<p>I know it all has to get settled in the end by the expiration date, but just an idea.
Fuck IB and this “trader”, idiots should lose their shirts, that’s one of the intended outcomes of an efficient market.<p>That said, there is an issue here with futures contracts: you can get very very large leverage when the price is near zero. This is the real issue with instruments that can negative price and just like their are “circuit breakers” in markets for big price swings, there should be breakers for entering the “near zero” range.
Hopefully, one of the things that we price in going forward is the volatility in the price of oil vs alternatives, especially those that can be produced domestically in a way decoupled from international events. That includes natural gas and especially renewables. Remember that just a 6 years ago, oil was north of $100/barrel [1], and recently it's close to zero. Wind on the other hand has had a steadily reducing LCOE[2][3]. Solar's LCOE is also steadily reducing [3].<p>Volatility has a cost. With oil, it's one that the US and other countries hae historically tried to dampen with various industrial and political methods (the national strategic oil reserve, military/political "influence" on foreign oil producers, subsidies for domestic production), but seems like the current situation is beyond those methods' ability to control.<p>1. <a href="https://www.macrotrends.net/1369/crude-oil-price-history-chart" rel="nofollow">https://www.macrotrends.net/1369/crude-oil-price-history-cha...</a><p>2. <a href="https://www.energy.gov/sites/prod/files/2015/08/f25/LCOE.pdf" rel="nofollow">https://www.energy.gov/sites/prod/files/2015/08/f25/LCOE.pdf</a><p>3.<a href="https://en.wikipedia.org/wiki/Cost_of_electricity_by_source#/media/File:US_projected_cost_of_wind_power.png" rel="nofollow">https://en.wikipedia.org/wiki/Cost_of_electricity_by_source#...</a><p>4. <a href="https://en.wikipedia.org/wiki/Cost_of_electricity_by_source#/media/File:EU-PV-LCOE-Projection.png" rel="nofollow">https://en.wikipedia.org/wiki/Cost_of_electricity_by_source#...</a>
I've written real-time trading systems trading on IB. Their client library is a real pile of shit, so it's not surprising to hear that their internal systems are too. Reassuring to hear that they're going to eat the US$100M loss themselves instead of letting their customers have it. (Not that they were going to get US$9M out of this Shah guy anyway.) They never did us any wrong when we were their customers.<p>Does this pose a risk of IB going insolvent? If they do, is there a risk of their customers being just another creditor of a bankrupt corporation, with respect to the stocks and futures that IB holds on behalf of those customers? Or are those instruments held in bailment, or actually by some other company, rather than as IB assets?
Would be nice to have more details on exactly what happened with the trades. Did the trades clear? Did IB liquidate the contracts before expiration? Was someone on the hook for taking physical delivery?
> Crude was actually around negative $3.70 a barrel when Shah’s screen had it at 1 cent<p>A bit of a design flaw, I wonder did they spend as much money on the software as Equifax did?<p>if (-3.70 != 1) { send an alert; }
Would any of the traders mentioned that owe all that money to Interactive Broker's have to pay the total amount? Or is that part of Interactive Brokers' loss claim.
Comments about storage costs are nice theory but don’t tell me those storage costs went up 50 dollars a barrel to cause CLK0 to go from +10 to -40 within something like 30 minutes. It was all forced liquidation by brokers like IB and people absolutely bamboozled by negative prices puking their positions. Nothing to do with costs for actual storage.
More to the point is that a bunch of dumbasses were speculating on oil futures without understanding the nature of the market, and no ability to take delivery on the oil in any event. Nobody should be holding those when they're so close to expiry unless they know what they're doing.
About two months ago I delivered to a private client a (monthly-basis) prediction model for ethanol prices that included Brent -- in logarithm -- as a predictor.<p>I know the monthly spot average of that statistic (fetched from FRED, the Fed of St. Louis system) won't turn negative, but still...
non paywall link
<a href="https://business.financialpost.com/pmn/business-pmn/oil-crash-busted-a-brokers-computers-and-inflicted-huge-losses" rel="nofollow">https://business.financialpost.com/pmn/business-pmn/oil-cras...</a>
I don’t really understand why the traders would end up owing money. If they thought they were paying 0,01 $/bbl but we’re actually “paying” -37 $/bbl wouldn’t IB owe them?
Oh a guy with $77,000 in his day trading account didn't know futures can go negative. I'm shocked.<p>Ironically this is the same guy who will sell you a gym contract without a cancellation option and blame you for not doing your research when you owe him $1100.