mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 14:55:16 +00:00
binance: remove comments cuz not support isolated futures
This commit is contained in:
parent
59241038f9
commit
839bb6d0e8
|
@ -245,15 +245,13 @@ func toGlobalFuturesOrder(futuresOrder *futures.Order, isMargin bool) (*types.Or
|
||||||
Price: util.MustParseFloat(futuresOrder.Price),
|
Price: util.MustParseFloat(futuresOrder.Price),
|
||||||
TimeInForce: string(futuresOrder.TimeInForce),
|
TimeInForce: string(futuresOrder.TimeInForce),
|
||||||
},
|
},
|
||||||
Exchange: types.ExchangeBinance,
|
Exchange: types.ExchangeBinance,
|
||||||
// IsWorking: futuresOrder.IsWorking,
|
|
||||||
OrderID: uint64(futuresOrder.OrderID),
|
OrderID: uint64(futuresOrder.OrderID),
|
||||||
Status: toGlobalFuturesOrderStatus(futuresOrder.Status),
|
Status: toGlobalFuturesOrderStatus(futuresOrder.Status),
|
||||||
ExecutedQuantity: util.MustParseFloat(futuresOrder.ExecutedQuantity),
|
ExecutedQuantity: util.MustParseFloat(futuresOrder.ExecutedQuantity),
|
||||||
CreationTime: types.Time(millisecondTime(futuresOrder.Time)),
|
CreationTime: types.Time(millisecondTime(futuresOrder.Time)),
|
||||||
UpdateTime: types.Time(millisecondTime(futuresOrder.UpdateTime)),
|
UpdateTime: types.Time(millisecondTime(futuresOrder.UpdateTime)),
|
||||||
IsMargin: isMargin,
|
IsMargin: isMargin,
|
||||||
// IsIsolated: futuresOrder.IsIsolated,
|
|
||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -618,9 +618,6 @@ func (e *Exchange) submitFuturesOrder(ctx context.Context, order types.SubmitOrd
|
||||||
|
|
||||||
// use response result format
|
// use response result format
|
||||||
req.NewOrderResponseType(futures.NewOrderRespTypeRESULT)
|
req.NewOrderResponseType(futures.NewOrderRespTypeRESULT)
|
||||||
// if e.IsIsolatedFutures {
|
|
||||||
// req.IsIsolated(e.IsIsolatedFutures)
|
|
||||||
// }
|
|
||||||
|
|
||||||
if len(order.QuantityString) > 0 {
|
if len(order.QuantityString) > 0 {
|
||||||
req.Quantity(order.QuantityString)
|
req.Quantity(order.QuantityString)
|
||||||
|
@ -676,14 +673,10 @@ func (e *Exchange) submitFuturesOrder(ctx context.Context, order types.SubmitOrd
|
||||||
Price: response.Price,
|
Price: response.Price,
|
||||||
OrigQuantity: response.OrigQuantity,
|
OrigQuantity: response.OrigQuantity,
|
||||||
ExecutedQuantity: response.ExecutedQuantity,
|
ExecutedQuantity: response.ExecutedQuantity,
|
||||||
// CummulativeQuoteQuantity: response.CummulativeQuoteQuantity,
|
Status: response.Status,
|
||||||
Status: response.Status,
|
TimeInForce: response.TimeInForce,
|
||||||
TimeInForce: response.TimeInForce,
|
Type: response.Type,
|
||||||
Type: response.Type,
|
Side: response.Side,
|
||||||
Side: response.Side,
|
|
||||||
// UpdateTime: response.TransactTime,
|
|
||||||
// Time: response.TransactTime,
|
|
||||||
// IsIsolated: response.IsIsolated,
|
|
||||||
}, true)
|
}, true)
|
||||||
|
|
||||||
return createdOrder, err
|
return createdOrder, err
|
||||||
|
@ -796,10 +789,6 @@ func (e *Exchange) submitSpotOrder(ctx context.Context, order types.SubmitOrder)
|
||||||
UpdateTime: response.TransactTime,
|
UpdateTime: response.TransactTime,
|
||||||
Time: response.TransactTime,
|
Time: response.TransactTime,
|
||||||
IsIsolated: response.IsIsolated,
|
IsIsolated: response.IsIsolated,
|
||||||
// StopPrice:
|
|
||||||
// IcebergQuantity:
|
|
||||||
// UpdateTime:
|
|
||||||
// IsWorking: ,
|
|
||||||
}, false)
|
}, false)
|
||||||
|
|
||||||
return createdOrder, err
|
return createdOrder, err
|
||||||
|
|
Loading…
Reference in New Issue
Block a user