API: missing fields in Order object

I am trying to check whether cancelled orders were partially executed using the python API. To do this, I call the get_account_order(id) function with the appropriate order id. There are some fields missing from the Order object that gets returned w.r.t. the documentation. I would like to use the amount_executed attribute to but it is missing. There is a amount_remaining attribute that can be used but it is zeroed after the order is cancelled.

To answer my own question: one can probably get the executed amount of cancelled orders by stepping through the Trade objects in the Order.trades attribute.

There is still some cleaning up to do in the API documentation. There are many small inconsistencies between the API and the docs and in the docs itself. Things like, missing fields, functions returning other objects than stated in the docs and examples using wrong argument types.

1 Like