mirror of
https://github.com/c9s/bbgo.git
synced 2024-09-20 08:11:08 +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))
|
orderCreationTime := time.Unix(0, e.OrderCreationTime*int64(time.Millisecond))
|
||||||
return &types.Order{
|
return &types.Order{
|
||||||
SubmitOrder: types.SubmitOrder{
|
SubmitOrder: types.SubmitOrder{
|
||||||
Symbol: e.Symbol,
|
ClientOrderID: e.ClientOrderID,
|
||||||
ClientOrderID: e.ClientOrderID,
|
Symbol: e.Symbol,
|
||||||
Side: toGlobalSideType(binance.SideType(e.Side)),
|
Side: toGlobalSideType(binance.SideType(e.Side)),
|
||||||
Type: toGlobalOrderType(binance.OrderType(e.OrderType)),
|
Type: toGlobalOrderType(binance.OrderType(e.OrderType)),
|
||||||
Quantity: e.OrderQuantity,
|
Quantity: e.OrderQuantity,
|
||||||
Price: e.OrderPrice,
|
Price: e.OrderPrice,
|
||||||
TimeInForce: types.TimeInForce(e.TimeInForce),
|
StopPrice: e.StopPrice,
|
||||||
|
TimeInForce: types.TimeInForce(e.TimeInForce),
|
||||||
|
IsFutures: false,
|
||||||
|
ReduceOnly: false,
|
||||||
|
ClosePosition: false,
|
||||||
},
|
},
|
||||||
Exchange: types.ExchangeBinance,
|
Exchange: types.ExchangeBinance,
|
||||||
IsWorking: e.IsOnBook,
|
IsWorking: e.IsOnBook,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user