-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Size Limit and Other Order Questions #42
Comments
Hey @rmalh thanks for submitting your issue and for your questions 👍 No, I haven't found the list of the questions anywhere sadly. I've set them up as a minimal example to ensure each user goes through the setup and decides how to answer to these questions on their own through trial and error. As for answering via configuration - you'd need to ask IBKR support, as I don't know of any way of doing this atm. If you do, let us know what they say. |
The expected way to interact with it would be to specify question-answer dict of pairs and provide these as
Eg. answers = {
...
'orders with limit of': True
} Does that make sense? Any way I could clarify it? |
Thanks again @Voyz. Does iBind have the Order Reply Suppression capability? I'll contact IB today to try and get a comprehensive list of messageIds (i.e. category of messages). With these two pieces (iBind capability and messageIds), we'll be able to suppress the relevant messages with code. |
Ohh thanks for pointing me in that direction. I'll test out the order surpression and let you know |
Added this to 'ibind/client/ibkr_utils.py' in my local environment: ORDER_SIZE_LIMIT = 'size exceeds the Size Limit of' Also added this to the list of my answers before placing orders: "QuestionType.ORDER_SIZE_LIMIT: True," This worked for a test order placed during extended trading i.e. after RTH. Not sure if IB and the exchanges apply all the checks and balances after RTH. Will keep an eye and post here if there's still an issue. |
@Voyz IB support provided the following links for question suppression: https://www.interactivebrokers.com/campus/ibkr-api-page/cpapi-v1/#questions-suppress https://www.interactivebrokers.com/campus/ibkr-api-page/cpapi-v1/#suppressible-id https://www.interactivebrokers.com/campus/ibkr-api-page/cpapi-v1/#reset-questions-suppress |
Hello,
I used the following answers in my place_order request but received "ValueError: No answer found for question" because I didn't include an answer for the size limit question.
answers = {
QuestionType.PRICE_PERCENTAGE_CONSTRAINT: True,
QuestionType.ORDER_VALUE_LIMIT: True,
"Unforeseen new question": True,
}
Is there a list of all the questions somewhere? Better yet, can they be answered via configuration (similar to in TWS)?
Thank you so much!
The text was updated successfully, but these errors were encountered: