mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 14:55:16 +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,
|
||||
Side: toGlobalSideType(binance.SideType(e.Side)),
|
||||
Type: toGlobalOrderType(binance.OrderType(e.OrderType)),
|
||||
Quantity: e.OrderQuantity,
|
||||
Price: e.OrderPrice,
|
||||
TimeInForce: types.TimeInForce(e.TimeInForce),
|
||||
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