binance: add isolated margin flag

This commit is contained in:
c9s 2021-12-29 17:36:08 +08:00
parent 2ef4d713f8
commit 8f97ee7787

View File

@ -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 {