Skip to content

Stock Spread BAG/Combo Order Question #119

Answered by mattsta
arisdavid asked this question in Q&A
Discussion options

You must be logged in to vote

These can be tricky based on the instruments used, but it does supposedly work.

The docs page you linked says:

Stock/Stock combos will have ticker symbols in alphabetical order.

The error message basically says IBKR sorts the legs by name first (META,GOOGL) but your combined contract.symbol doesn't match their internal logic they are verifying against (GOOGL,META).

so just need a weird thing like:

symbols = ["XYZ", "GOOGL"]
contract.symbol = ",".join(sorted(symbols))

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by arisdavid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants