Then I placed an aftermarket order and it seems that the status is a list. And one of the members of the list is a len. But again it is not clear to me what is the use of len. For me, since it was an aftermarket order, the value of len was 0. I hope someone can provide an answer to what I would think is a fairly common issue. And if someone can explain how I find this from the documentation, then possibly I don't have to post questions like this.
Additional question: It looks it looks like that the quantity can also be determined by looking at the positions using the api def positions(self) but again , the structure of the response code is not clear to me and so I cannot use it. What is the recommended way to find the quantity that has been filled? Is it order_trades or the API positions?