You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After running ib.qualifyContracts() on COIL contracts, it will pop an error when placing orders instead of going through. For some reason it seems to be specific to this contract, tried it on CL and it works fine.
It may just require a longer last trade date specification (don't trust the error message, it doesn't know everything and is clearly just a generic response used for any non-matching data their API doesn't like).
The contract spec at the IBKR contract library shows COIL expires on the first day of the month (May 1) but the last trading day is the last day of the previous month, so maybe IBKR requires a full 20250430 as the last trade date to avoid confusion?
You could also try qualifying more details like symbol="COIL" and localSymbol="COILM5" and tradingClass="COIL" — every contract at IBKR has a uniquelocalSymbol value so usually that one is enough to fully qualify a contract without extra details (along with providing the exchange too).
After running
ib.qualifyContracts()
onCOIL
contracts, it will pop an error when placing orders instead of going through. For some reason it seems to be specific to this contract, tried it onCL
and it works fine.Sample Script:
Output:
The text was updated successfully, but these errors were encountered: