mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 23:05:15 +00:00
binance: remove unsupported comments
This commit is contained in:
parent
7f96fa8dde
commit
ccd607ba28
|
@ -435,7 +435,6 @@ func (e *Exchange) QueryOpenOrders(ctx context.Context, symbol string) (orders [
|
||||||
|
|
||||||
if e.IsFutures {
|
if e.IsFutures {
|
||||||
req := e.futuresClient.NewListOpenOrdersService().Symbol(symbol)
|
req := e.futuresClient.NewListOpenOrdersService().Symbol(symbol)
|
||||||
// req.IsIsolated(e.IsIsolatedFutures)
|
|
||||||
|
|
||||||
binanceOrders, err := req.Do(ctx)
|
binanceOrders, err := req.Do(ctx)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -481,7 +480,6 @@ func (e *Exchange) QueryClosedOrders(ctx context.Context, symbol string, since,
|
||||||
|
|
||||||
if e.IsFutures {
|
if e.IsFutures {
|
||||||
req := e.futuresClient.NewListOrdersService().Symbol(symbol)
|
req := e.futuresClient.NewListOrdersService().Symbol(symbol)
|
||||||
// req.IsIsolated(e.IsIsolatedFutures)
|
|
||||||
|
|
||||||
if lastOrderID > 0 {
|
if lastOrderID > 0 {
|
||||||
req.OrderID(int64(lastOrderID))
|
req.OrderID(int64(lastOrderID))
|
||||||
|
@ -526,8 +524,6 @@ func (e *Exchange) CancelOrders(ctx context.Context, orders ...types.Order) (err
|
||||||
|
|
||||||
if o.OrderID > 0 {
|
if o.OrderID > 0 {
|
||||||
req.OrderID(int64(o.OrderID))
|
req.OrderID(int64(o.OrderID))
|
||||||
} else if len(o.ClientOrderID) > 0 {
|
|
||||||
// req.NewClientOrderID(o.ClientOrderID) // TODO
|
|
||||||
}
|
}
|
||||||
|
|
||||||
_, _err := req.Do(ctx)
|
_, _err := req.Do(ctx)
|
||||||
|
@ -994,14 +990,6 @@ func (e *Exchange) QueryTrades(ctx context.Context, symbol string, options *type
|
||||||
req.Limit(1000)
|
req.Limit(1000)
|
||||||
}
|
}
|
||||||
|
|
||||||
// if options.StartTime != nil {
|
|
||||||
// req.StartTime(options.StartTime.UnixNano() / int64(time.Millisecond))
|
|
||||||
// }
|
|
||||||
|
|
||||||
// if options.EndTime != nil {
|
|
||||||
// req.EndTime(options.EndTime.UnixNano() / int64(time.Millisecond))
|
|
||||||
// }
|
|
||||||
|
|
||||||
// BINANCE uses inclusive last trade ID
|
// BINANCE uses inclusive last trade ID
|
||||||
if options.LastTradeID > 0 {
|
if options.LastTradeID > 0 {
|
||||||
req.FromID(options.LastTradeID)
|
req.FromID(options.LastTradeID)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user