Greetings all!
I am requesting the history of my orders from /v2/orders API using Python REST api.list_orders() method, and although I ask for status=‘filled’ I get orders with status=‘canceled’.
There is a ambiguity for status as parameter (with open
, closed
or all
according to the documentation) and status as a return value that has ‘filled’ and ‘canceled’. I have about 10 canceled orders for every filled order, and with the limit of up to 500 orders in the response I get stuck on getting partial results. It would be possible to parse out the ‘after’ and ‘until’ to chop the response to smaller pieces, but this might cause many bugs.
It would be incredibly helpful and efficient to be able to filter in the request only ‘filled’ orders, perhaps by adding another field (‘closed_status’ or ‘status_result’ etc. It would drastically reduce response byte size, and will also help disambiguate between status ‘open’/‘closed’ and status ‘filled’ 'canceled;.
With thanks for any consideration!
Gil