fix futures QuoteQuantity incorrect.

This commit is contained in:
ankion 2022-06-05 16:23:12 +08:00
parent 016ddfd8cd
commit d90cf43d5a

View File

@ -810,7 +810,7 @@ func (e *OrderTradeUpdateEvent) TradeFutures() (*types.Trade, error) {
Side: toGlobalSideType(binance.SideType(e.OrderTrade.Side)),
Price: e.OrderTrade.LastFilledPrice,
Quantity: e.OrderTrade.OrderLastFilledQuantity,
QuoteQuantity: e.OrderTrade.OrderFilledAccumulatedQuantity,
QuoteQuantity: e.OrderTrade.LastFilledPrice.Mul(e.OrderTrade.OrderLastFilledQuantity),
IsBuyer: e.OrderTrade.Side == "BUY",
IsMaker: e.OrderTrade.IsMaker,
Time: types.Time(tt),