mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 14:55:16 +00:00
binance: add isolated margin flag
This commit is contained in:
parent
2ef4d713f8
commit
8f97ee7787
|
@ -539,6 +539,7 @@ func (e *Exchange) CancelOrders(ctx context.Context, orders ...types.Order) (err
|
|||
for _, o := range orders {
|
||||
if e.IsMargin {
|
||||
var req = e.Client.NewCancelMarginOrderService()
|
||||
req.IsIsolated(e.IsIsolatedMargin)
|
||||
req.Symbol(o.Symbol)
|
||||
|
||||
if o.OrderID > 0 {
|
||||
|
|
Loading…
Reference in New Issue
Block a user