ibind icon indicating copy to clipboard operation
ibind copied to clipboard

IB API - Place order 400 response

Open lpakula opened this issue 7 months ago • 1 comments

I'm experiencing a weird, inconsistent issue from the IB Broker API when submitting orders. It usually happens when I'm submitting a couple of orders in the loop.

Error executing order through broker: IbkrClient: request error: IbkrClient: response error Result(data=None, request={'url': 'https://ib-gateway:5000/v1/api/iserver/reply/8c1765d2-6cec-446e-b4c2-0c6f57df06e1', 'json': {'confirmed': True}}) :: 400 :: Bad Request :: {"error":"reply id not found: '8c1765d2-6cec-446e-b4c2-0c6f57df06e1'"}

It looks like a race condition, because it works when I submit the same order again. Has someone come across the same issue?

Thank You

Your Environment

  • IBind version: 0.1.14
  • Python version: 3.12
  • Authentication method: IBeam

lpakula avatar May 07 '25 18:05 lpakula

Hi, please see this related issue #35. Your error may be related to submitting multiple orders at the same time, although ibind makes sure this should not happen. Does that help in any way?

salsasepp avatar May 08 '25 10:05 salsasepp

I'm going to close this due to inactivity. Thanks for the contribution so far, feel free to let me know if you'd like it reopen and continue the discussion 👍

Voyz avatar Jun 23 '25 11:06 Voyz