ftx: fix ftx order status isWorking

This commit is contained in:
c9s 2022-03-02 14:55:22 +08:00
parent 66700016e4
commit 5c8997e293

View File

@ -61,7 +61,7 @@ func toGlobalOrderNew(r ftxapi.Order) (types.Order, error) {
TimeInForce: timeInForce,
},
Exchange: types.ExchangeFTX,
IsWorking: r.Status == "open",
IsWorking: r.Status == ftxapi.OrderStatusOpen || r.Status == ftxapi.OrderStatusNew,
OrderID: uint64(r.Id),
Status: "",
ExecutedQuantity: r.FilledSize,