TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Oil crash busted broker’s computers and inflicted big losses

204 pointsby wclax04about 5 years ago

27 comments

haltingproblemabout 5 years ago
<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&amp;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 ;)
评论 #23119666 未加载
评论 #23119392 未加载
评论 #23119041 未加载
评论 #23120632 未加载
评论 #23120725 未加载
评论 #23120208 未加载
评论 #23118537 未加载
elliekellyabout 5 years ago
&gt; 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>&gt; “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.
评论 #23118102 未加载
评论 #23117624 未加载
评论 #23118539 未加载
评论 #23118206 未加载
评论 #23117569 未加载
评论 #23118034 未加载
AndrewBissellabout 5 years ago
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:&#x2F;&#x2F;www.reuters.com&#x2F;article&#x2F;markets-sweden-bug&#x2F;swedish-stock-futures-market-problem-caused-by-mega-order-glitch-idUSL5E8MTB4I20121129" rel="nofollow">https:&#x2F;&#x2F;www.reuters.com&#x2F;article&#x2F;markets-sweden-bug&#x2F;swedish-s...</a><p>Interactive Brokers&#x27; software is usually very solid. I&#x27;m surprised they weren&#x27;t ready to handle this, the possibility of oil going negative had been discussed for some time before it happened.
评论 #23117333 未加载
评论 #23117410 未加载
评论 #23117479 未加载
评论 #23118408 未加载
mathgeniusabout 5 years ago
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 &quot;0.01&quot;. [1] This is kind of weird, because the snapshot is pulling current market prices, and still showing an incorrect hi&#x2F;lo limit. It looks like they have since removed the hi&#x2F;lo display: [2]. Someone should take a screenshot of this.<p>[1] <a href="https:&#x2F;&#x2F;web.archive.org&#x2F;web&#x2F;20200117115242&#x2F;https:&#x2F;&#x2F;www.cmegroup.com&#x2F;trading&#x2F;energy&#x2F;crude-oil&#x2F;light-sweet-crude.html" rel="nofollow">https:&#x2F;&#x2F;web.archive.org&#x2F;web&#x2F;20200117115242&#x2F;https:&#x2F;&#x2F;www.cmegr...</a><p>[2] <a href="https:&#x2F;&#x2F;www.cmegroup.com&#x2F;trading&#x2F;energy&#x2F;crude-oil&#x2F;light-sweet-crude.html" rel="nofollow">https:&#x2F;&#x2F;www.cmegroup.com&#x2F;trading&#x2F;energy&#x2F;crude-oil&#x2F;light-swee...</a>
nromiunabout 5 years ago
&gt; 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&#x27;t find the time to test that they can just DISPLAY a minus sign. That&#x27;s insane.<p>And it&#x27;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.
评论 #23120368 未加载
评论 #23119865 未加载
codenesiumabout 5 years ago
Wasn&#x27;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.
评论 #23117684 未加载
评论 #23118509 未加载
评论 #23117984 未加载
评论 #23118386 未加载
评论 #23117755 未加载
评论 #23120057 未加载
评论 #23117701 未加载
评论 #23118425 未加载
flintabout 5 years ago
I&#x27;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.
评论 #23118016 未加载
评论 #23117824 未加载
评论 #23118567 未加载
socrates1998about 5 years ago
If you don&#x27;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&#x27;t trade on margin.
评论 #23117650 未加载
评论 #23117853 未加载
评论 #23118606 未加载
0x8BADF00Dabout 5 years ago
It&#x27;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.
评论 #23117910 未加载
supernova87aabout 5 years ago
For futures on physical deliverable objects (well, I guess most futures are such, but anyway) -- would volatility and speculation be dampened&#x2F;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 &lt;xyz&gt; 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 &quot;speculation&quot; 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.
评论 #23118200 未加载
评论 #23120530 未加载
评论 #23118404 未加载
LatteLazyabout 5 years ago
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.
评论 #23118543 未加载
danansabout 5 years ago
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&#x2F;barrel [1], and recently it&#x27;s close to zero. Wind on the other hand has had a steadily reducing LCOE[2][3]. Solar&#x27;s LCOE is also steadily reducing [3].<p>Volatility has a cost. With oil, it&#x27;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&#x2F;political &quot;influence&quot; on foreign oil producers, subsidies for domestic production), but seems like the current situation is beyond those methods&#x27; ability to control.<p>1. <a href="https:&#x2F;&#x2F;www.macrotrends.net&#x2F;1369&#x2F;crude-oil-price-history-chart" rel="nofollow">https:&#x2F;&#x2F;www.macrotrends.net&#x2F;1369&#x2F;crude-oil-price-history-cha...</a><p>2. <a href="https:&#x2F;&#x2F;www.energy.gov&#x2F;sites&#x2F;prod&#x2F;files&#x2F;2015&#x2F;08&#x2F;f25&#x2F;LCOE.pdf" rel="nofollow">https:&#x2F;&#x2F;www.energy.gov&#x2F;sites&#x2F;prod&#x2F;files&#x2F;2015&#x2F;08&#x2F;f25&#x2F;LCOE.pdf</a><p>3.<a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Cost_of_electricity_by_source#&#x2F;media&#x2F;File:US_projected_cost_of_wind_power.png" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Cost_of_electricity_by_source#...</a><p>4. <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Cost_of_electricity_by_source#&#x2F;media&#x2F;File:EU-PV-LCOE-Projection.png" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Cost_of_electricity_by_source#...</a>
kragenabout 5 years ago
I&#x27;ve written real-time trading systems trading on IB. Their client library is a real pile of shit, so it&#x27;s not surprising to hear that their internal systems are too. Reassuring to hear that they&#x27;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?
ralph84about 5 years ago
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?
评论 #23117721 未加载
Stierlitzabout 5 years ago
&gt; 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; }
muythabout 5 years ago
Would any of the traders mentioned that owe all that money to Interactive Broker&#x27;s have to pay the total amount? Or is that part of Interactive Brokers&#x27; loss claim.
评论 #23117338 未加载
ravioloabout 5 years ago
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.
neonateabout 5 years ago
<a href="https:&#x2F;&#x2F;archive.md&#x2F;EGIGB" rel="nofollow">https:&#x2F;&#x2F;archive.md&#x2F;EGIGB</a>
dilandauabout 5 years ago
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&#x27;re so close to expiry unless they know what they&#x27;re doing.
thanatropismabout 5 years ago
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&#x27;t turn negative, but still...
huy-nguyenabout 5 years ago
Another entry should be added to the “things programmers believe about commodity prices.”
changoplataneroabout 5 years ago
non paywall link <a href="https:&#x2F;&#x2F;business.financialpost.com&#x2F;pmn&#x2F;business-pmn&#x2F;oil-crash-busted-a-brokers-computers-and-inflicted-huge-losses" rel="nofollow">https:&#x2F;&#x2F;business.financialpost.com&#x2F;pmn&#x2F;business-pmn&#x2F;oil-cras...</a>
tester89about 5 years ago
I don’t really understand why the traders would end up owing money. If they thought they were paying 0,01 $&#x2F;bbl but we’re actually “paying” -37 $&#x2F;bbl wouldn’t IB owe them?
评论 #23121173 未加载
评论 #23121638 未加载
评论 #23121227 未加载
unixheroabout 5 years ago
I would recommend <a href="http:&#x2F;&#x2F;www.saxobank.com" rel="nofollow">http:&#x2F;&#x2F;www.saxobank.com</a> , it&#x27;s a kick ass broker.
SrslyJoshabout 5 years ago
I am playing my second tiniest violin for them right now.
评论 #23118480 未加载
ninetyfurrabout 5 years ago
Oh a guy with $77,000 in his day trading account didn&#x27;t know futures can go negative. I&#x27;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.
BubRossabout 5 years ago
As usual, this nonsense headline is clickbait for the truth - some traders couldn&#x27;t trade when oil went below zero.