Combo Order Shows up as a Negatitive Quantity of its Complement #167
Unanswered
that-github-user
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm experiencing odd behavior and I can't tell if it's just IBKR or more than likely something to do with the code I've put together. This is in the context of daily SPX options.
I have two choices for a combo order:
where
combo_contract
eventually finds its way into this function for submitting the spread order:When I select
bull_put
, everything executes fine and I can verify elsewhere that it indeed shows on the live or paper account that the account has entered into a Bull Put (Put Credit Spread) at the desired strikes.When I select
bear_call
however, it carries out the program execution with success, but when I go to TWS or the mobile app to verify, it shows up as a shorted Bull Call (i.e., a quantity of -1 x Call Debit Spread).Is this some funny business with IBKR wrongly understanding legs or is there an error in my code? What's odd to me is that Bull Puts are executed just fine. The quantity is always 1 and the
lmtPrice
is always negative to receive credit for the theta play. I searched for other Combo leg nuances both on the IBKR API and the oldib_insync
repository, but didn't see any others experience this.What's also odd is that I have seen the order go through on other SPX strikes and it does turn up in the app/TWS as a positive quantity Bear Call spread. So I guess a follow-up is is this worth fussing over? I don't understand why submitting via
ib_async
/TWS API results in a complementary order but if this is common and/or expected then I'll just accept it as uncontrollable behavior on IBKR's end.Beta Was this translation helpful? Give feedback.
All reactions