TradeHistory status 1, but event.order.status is 4
In a test, TradeHistory's status.status shows value of 1, but event.order.status has value of 4.
What's the difference of the two status value?
Hope the question is not too vague.
I try to answer myself. It seems first one is trade status, possible values are ['Created', 'Open', 'Closed']. Latter one is order status, possible values are ['Created', 'Submitted', 'Accepted', 'Partial', 'Completed', 'Canceled', 'Expired', 'Margin', 'Rejected'].
Orderare different things, where is the surprise?