-
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
Reply ID not found #35
Comments
Hey @outrageousinc-dev thanks for trying out IBeam and IBind and reporting your issue 👍 This error indicates that in the order placement question/answer exchange your client has encountered a situation in which giving an answer to a question was not recognised by IBKR's servers. It is quite strange, as this answer ID (what you see after Does this happen to you every time you submit an order? Was this only one instance? |
I encountered the same situation and I'm not sure if it's related to the fact that I'm running multi-threaded trading. |
@ChienHsiao can you provide more info? Multi threaded was fine, but were you submitting multiple orders at the same time? |
Yes, I did submit multiple orders at the same time, but after I ensured that only one order was submitted at a time, I no longer received the same error. |
Okay, that must be it then - submitting multiple orders at the same time. Which makes sense, the replies get mixed up. I should add this limit to the library itself though, thanks for pointing it out 👍 |
@ChienHsiao please see |
@Voyz After testing with the paper account, everything is running smoothly. By the way, I really appreciate you providing the ibind and ibeam packages—they've played a huge role in the rapid growth of my business. |
Superb @ChienHsiao happy to hear 👏 And thanks for the kind words, I'm happy to hear it helps! |
I just ran into this issue! :D Perfect timing. I'll get the latest release and see if that resolves it for me too. For my use case, I have to get the price the parent order was filled at (I'd like for my parent order to be MKT) before I know where to set my stop loss and take profit orders. Meaning I don't think I can use the order bracket method here. When we say "submitting one order at a time", we are saying we have to place an order, wait for it to get filled, then place another? Is there potentially an eventually consistent issue with IBKR? Because I believe my parent order was filled, or else how would I have gotten the filled price? Not sure how I would still get this reply id error then 🤔 |
Yeah, sending separate orders sounds like a safer choice @weklund 👍
Just placing. The order can be on the exchange unfilled while you're already submitting the next one. So, the moment ibkr_client.place_order returns you should be able to place another one.
Sorry, I'm not sure I'm following here. Can you explain exactly what were you trying to do and what happened? If you get a filled price then yes, the order got either partially or fully filled, meaning that you should already be able to place more orders. Not sure if you can specify an existing order as a parent though, it could be that the parenting only works for placing multiple orders at the same time (eg. bracket orders). |
Sorry I meant I was just referring to my 1st order. It's just odd that I would experience this issue on a 2nd order, when I was able to successfully get the fill price on the 1st. I'll follow up with logs here in a bit. |
Hi there!
I'm using ibeam and ibind with the ibkr API. I keep getting this error when placing orders:
Any idea why this could be?
in
Thanks in advance, and have a great day! :)
The text was updated successfully, but these errors were encountered: