¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

TWS ERROR, 200, The contract description specified for ABNB is ambiguous.


 

I have followed previous discussions on this topic where similar issues were had with MSFT and CSCO. So I'm aware of issues around smart order routing and ambiguities

I'm using ibapi Python client and I have only been able to work with ABNB if I stop using 'SMART' for contract.exchange and instead use 'ISLAND'. E.g. below

contract.symbol = 'ABNB'
contract.localSymbol = 'ABNB'
contract.secType = 'STK'
contract.exchange = 'ISLAND'
contract.currency = 'USD'

Note, below does Not work:

contract.symbol = 'ABNB'
contract.localSymbol = 'ABNB'
contract.secType = 'STK'
contract.exchange = 'SMART'
contract.currency = 'USD'
contract.PrimaryExch = 'ISLAND'

Thing is, my code calls?reqContractDetails() and when I do that I see below for validExchange:

SMART,AMEX,NYSE,CBOE,PHLX,ISE,CHX,ARCA,ISLAND,DRCTEDGE,BEX,BATS,EDGEA,CSFBALGO,JEFFALGO,BYX,IEX,EDGX,FOXRIVER,PEARL,NYSENAT,LTSE,MEMX,PSX

I don't have this same issue with other stocks e.g. CSCO

I put a check in my code, if it sees ABNB it will not use 'SMART' and instead use 'ISLAND', but what about others that have similar behavior? E.g. CSCO returns below from reqContractDetails() for validExchange. CSCO doesn't have this problem, but how would I know to otherwise distinguish ABNB ?

SMART,AMEX,NYSE,CBOE,PHLX,ISE,CHX,ARCA,ISLAND,DRCTEDGE,BEX,BATS,EDGEA,CSFBALGO,JEFFALGO,BYX,IEX,EDGX,FOXRIVER,PEARL,TPLUS1,NYSENAT,LTSE,MEMX,PSX

Maybe there is some aspect of this I'm missing. My solution works for now, but would be nicer if I could more programmatically adapt to any other stocks that share this behavior

Join [email protected] to automatically receive all group messages.