mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 23:05:15 +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 {
|
for _, o := range orders {
|
||||||
if e.IsMargin {
|
if e.IsMargin {
|
||||||
var req = e.Client.NewCancelMarginOrderService()
|
var req = e.Client.NewCancelMarginOrderService()
|
||||||
|
req.IsIsolated(e.IsIsolatedMargin)
|
||||||
req.Symbol(o.Symbol)
|
req.Symbol(o.Symbol)
|
||||||
|
|
||||||
if o.OrderID > 0 {
|
if o.OrderID > 0 {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user