- ago
If your circuit breaker fires during a drawdown, IBKR’s API can silently reject your exit orders. Your positions remain open, your risk management is disabled, and you are left fully exposed as the market drops.

And when you try to recover the loss, IBKR’s Compliance department will officially void their liability and declare that you, the developer, are 100% responsible.

This is not a hypothetical. It is the current reality of building automated strategies on the IBKR TWS API.

**The Two-Part Danger:**

**1. The Silent Kill-Switch Failure**
IBKR’s system auto-populates the `exchange` field for BAG combo orders, but requires it explicitly for individual option orders. This is undocumented. If your circuit breaker sends individual close orders without this field during a drawdown, the API rejects them. Your risk management is disabled. Your capital is exposed to uncontrolled losses.

**2. The Liability Voidance**
If this happens and you lose your capital, IBKR's compliance department will void their liability. They will officially take the position that you, the developer, are 100% responsible for testing a routing requirement that their documentation omits and that their paper trading environment cannot simulate.

**The Proof:**
Look at how they handled my case. When I first reported it, IBKR Technical Support admitted the gap. On August 27, 2026, they wrote: *"We are reworking the documentation. It now includes a more detailed explanation of 'exchange' field."*

They admitted the trap existed. They fixed the manual.

But when I filed a claim to recover my losses, IBKR Compliance completely reversed course. On November 9, 2026, they claimed: *"There was no documentary gap."* They dismissed their own August 27 technical admission as merely a *"customer service accommodation."*

They offered a partial credit for the loss, but only if I signed a full release of liability and a confidentiality clause. I refused.

**Why You Should Verify This Yourself:**
I am not asking you to take my word for it. I am asking you to check your own code.

If you look at IBKR's current API documentation for the Contract Object, it now explicitly states that the minimum viable structure requires "at least a conId and exchange." Look at the Order and Contract Objects page, and you will see that the `exchange` field is defined as the "Routing exchange."

This language was not there when my system failed. It was added after I raised the issue.

If IBKR tries to dismiss this as a "false alarm," ask them a simple question: **Why did they rework the documentation in August if there was nothing wrong with it?**

**The Broader Systemic Risk: What Else is Undocumented?**
If a routing requirement this fundamental—one that dictates whether an order executes or is rejected—slipped through their documentation and wasn't caught until a client's automated system failed during a live drawdown, you have to ask: **what else is missing?**

If they missed the explicit exchange requirement for individual options, what other undocumented edge cases are lurking in futures routing, complex multi-leg spreads, or specific order types? If their paper trading environment cannot simulate these edge cases, and their Compliance department actively denies the existence of gaps when they are discovered, then the entire IBKR API manual is suspect. You are not just building your system on their code; you are building it on an incomplete manual that they will use to shift liability to you if it fails. Every automated strategy routing through IBKR is potentially exposed to undiscovered silent failures.

**The Takeaway for Developers:**
Do not trust their documentation to protect your risk management. Do not trust their support tickets to protect you legally. If their API silently rejects your orders during a drawdown, their Compliance department will rewrite the record to protect the firm and shift the liability to your code.

I have the full documented timeline since May. Audit your own routing logic, and understand the institutional risk you are taking on.
1
77
4 Replies

Reply

Bookmark

Jump to End
Cone8
- ago
#1
Why did you post this here? IBApi.Order doesn't even have an Exchange field.
BAG orders for Combos use Exchange, but we're not supporting those.
0
- ago
#2
Cone, thanks for the response.

To clarify, the issue isn't necessarily about the IBApi.Order object having a direct field in the Wealth-Lab wrapper. The issue is at the underlying TWS API contract level. When the API sends the order to IBKR, the contract object must contain the destination exchange, even if the Wealth-Lab interface abstracts it away.

You are completely correct that BAG orders for combos use the Exchange field. The danger I encountered is that IBKR's system auto-populates the Exchange for BAG combos, but requires it explicitly for individual option legs. If your wrapper or the underlying API path doesn't pass that through correctly for individual orders, IBKR rejects the order with Error 321.

The reason I posted this here is precisely because of your comment. If the developers building the API wrappers don't even see an Exchange field for individual orders, then the risk is even higher for anyone using this stack.

The broader warning is that IBKR's compliance department will use this exact documentation gap to deny liability if your automated risk management fails. I just want to make sure other algo traders are aware of this
0
Cone8
- ago
#3
IBApi.Order isn't an abstraction, it's the order object sent with IBApi.Contract in TWS API placeOrder(). In this case, the Contract object has the Exchange and/or PrimaryExch.
0
- ago
#4
Cone, I appreciate the technical clarification, and you are exactly right. The Exchange field lives in the Contract object that is sent with placeOrder().

But that is precisely the trap I am warning people about.

Because the field exists on the Contract object, a developer might assume the API will validate it or populate it automatically if omitted. And for BAG orders, IBKR's system does auto-populate it from the parent leg. But for individual orders, if the Exchange field is left blank—whether due to a bug in the wrapper, a missing variable in a code path, or just not knowing it was mandatory—IBKR's API does not catch it at the object level. It accepts the order object, sends it to the routing layer, and rejects it with Error 321: Missing order exchange.

The danger is that this failure happens silently at the very end of the execution chain. If it happens during a circuit-breaker close order in a drawdown, your risk management is disabled.

And as I mentioned, when I raised this with IBKR, their Compliance department denied that the documentation failed to make this clear, and they used the fact that I had populated the field on a prior trade to claim I "knew" it was required.

You are right that the field is there. My warning is that if your code path misses it—or if your wrapper doesn't pass it—IBKR will blame you for the resulting loss. Just wanted to make sure other developers are aware of how unforgiving that routing layer is.
0

Reply

Bookmark

Jump to Top