mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-25 16:25:16 +00:00
binance: fix futures not emit filled event
This commit is contained in:
parent
d31b812471
commit
68a65f1913
|
@ -268,6 +268,17 @@ func (s *Stream) handleOrderTradeUpdateEvent(e *OrderTradeUpdateEvent) {
|
|||
|
||||
s.EmitTradeUpdate(*trade)
|
||||
|
||||
order, err := e.OrderFutures()
|
||||
if err != nil {
|
||||
log.WithError(err).Error("futures order convert error")
|
||||
return
|
||||
}
|
||||
|
||||
// Update Order with FILLED event
|
||||
if order.Status == types.OrderStatusFilled {
|
||||
s.EmitOrderUpdate(*order)
|
||||
}
|
||||
|
||||
case "CALCULATED - Liquidation Execution":
|
||||
log.Infof("CALCULATED - Liquidation Execution not support yet.")
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user