On Sun, Nov 10, 2024 at 05:04 AM, <briankubs557@...> wrote:
order.orderId = int(curr_dt.timestamp())
1. I haven't seen order ids created like this before. Maybe it's fine, but it's more standard to just use
orderId=self.ib.client.getReqId()
?
2. The sleep after you place the order might be fine, but also recommend using ib.sleep instead
?
3. Your order may be presubmitted because it's not marketable and ibkr sometimes keeps an order as presubmitted until it's marketable, then submits it to the exchange once the price reaches your limit. Not sure if that's happening here but it's happened to me before, especially in the paper acct.