mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
binance: update stream order fields
This commit is contained in:
parent
ce6fd387be
commit
1f736d1f5e
|
@ -113,13 +113,17 @@ func (e *ExecutionReportEvent) Order() (*types.Order, error) {
|
|||
orderCreationTime := time.Unix(0, e.OrderCreationTime*int64(time.Millisecond))
|
||||
return &types.Order{
|
||||
SubmitOrder: types.SubmitOrder{
|
||||
Symbol: e.Symbol,
|
||||
ClientOrderID: e.ClientOrderID,
|
||||
Symbol: e.Symbol,
|
||||
Side: toGlobalSideType(binance.SideType(e.Side)),
|
||||
Type: toGlobalOrderType(binance.OrderType(e.OrderType)),
|
||||
Quantity: e.OrderQuantity,
|
||||
Price: e.OrderPrice,
|
||||
StopPrice: e.StopPrice,
|
||||
TimeInForce: types.TimeInForce(e.TimeInForce),
|
||||
IsFutures: false,
|
||||
ReduceOnly: false,
|
||||
ClosePosition: false,
|
||||
},
|
||||
Exchange: types.ExchangeBinance,
|
||||
IsWorking: e.IsOnBook,
|
||||
|
|
Loading…
Reference in New Issue
Block a user