The resource loading... loading...

Ask about the status value in the order order structure

Author: wufuhao100w, Created: 2019-12-18 16:11:35, Updated: 2019-12-18 16:13:12

In the API documentation, the status value in the order structure, 0 indicates uncompleted, 1 indicates completed, 2 indicates canceled, and 3 indicates unknown.

If for an order, the status is partially completed, what is the value of the status?

I'm testing it as if even partially completed status is equal to 1.

It is easy to make mistakes in some transactions.

Another question is, if all uncompleted orders are obtained through GetOrders, will the order that is partially completed appear in the list of uncompleted orders?


More

congcong009I tried 0, it's easy to make statistical errors, you only have to repeat the test a few times.

The grassIt should be 0, which can be used to judge a partial transaction based on the DealAmount.

wufuhao100wWell, it's going to be a mistake, now adding the data to DealAmount and detecting it.

wufuhao100wGood, thank goodness!