Matt Stancliff
Matt Stancliff
It may just require a longer last trade date specification (don't trust the error message, it doesn't know everything and is clearly just a generic response used for any non-matching...
That is an odd situation because the gateway should be releasing all data requests/subscriptions/resources when your client disconnects from the gateway. Feel free send a more complete example, but I...
Probably a mix of: - If the error message is complaining about "not subscribed" market data, then the correct market data just isn't available on the account for the request....
Thanks for pointing that out! I'll look into fixing the data structure and API there for the next update cycle. The entire "news API" adapters are under-tested and under-used apparently...
> also return the reqid when starting the subscription, then I can use a dictionary to map reqId => contract. This is a reasonable approach. We can automate it at...
If you want to talk about enums, there's also this thing I continually want to refactor but just haven't done it yet (again, more of those "but... we don't want...
> I was inspired by icli and just realized that this is actually your project. 😇 `icli` is also my attempt at adding more "useful" layers on top of `ib_insync/async`...
Yeah, it can be surprising when that happens. From what I've seen, they just drop it into your account between 2am-3am as a new position and there's no event or...
The position removal should also show up in the execution report and as an [execDetailsEvent](https://github.com/ib-api-reloaded/ib_async/blob/38cf54a66a4daefbd3fd1d7476381f0d178a8198/ib_async/wrapper.py#L616-L657) showing as cleared out I think. The [`positionEvent`](https://github.com/ib-api-reloaded/ib_async/blob/38cf54a66a4daefbd3fd1d7476381f0d178a8198/ib_async/wrapper.py#L415-L433) could probably work for this use case....
Thanks for the details! There is the option to pass `raiseSyncErrors=True` to the connect method which _would_ cause it to raise an exception. https://github.com/ib-api-reloaded/ib_async/blob/38cf54a66a4daefbd3fd1d7476381f0d178a8198/ib_async/ib.py#L2072-L2073 You can also adjust the timeout...