mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-26 08:45:16 +00:00
strategy: use stop limit due to sop market unsupported by binance
This commit is contained in:
parent
8f4ba971f1
commit
75f3e33543
|
@ -108,9 +108,10 @@ func (control *TrailingStopControl) GenerateStopOrder(quantity fixedpoint.Value)
|
|||
Symbol: control.symbol,
|
||||
Market: control.market,
|
||||
Side: types.SideTypeSell,
|
||||
Type: types.OrderTypeStopMarket,
|
||||
Type: types.OrderTypeStopLimit,
|
||||
Quantity: quantity,
|
||||
MarginSideEffect: control.marginSideEffect,
|
||||
TimeInForce: types.TimeInForceGTC,
|
||||
|
||||
Price: targetPrice,
|
||||
StopPrice: targetPrice,
|
||||
|
|
Loading…
Reference in New Issue
Block a user