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,
|
Symbol: control.symbol,
|
||||||
Market: control.market,
|
Market: control.market,
|
||||||
Side: types.SideTypeSell,
|
Side: types.SideTypeSell,
|
||||||
Type: types.OrderTypeStopMarket,
|
Type: types.OrderTypeStopLimit,
|
||||||
Quantity: quantity,
|
Quantity: quantity,
|
||||||
MarginSideEffect: control.marginSideEffect,
|
MarginSideEffect: control.marginSideEffect,
|
||||||
|
TimeInForce: types.TimeInForceGTC,
|
||||||
|
|
||||||
Price: targetPrice,
|
Price: targetPrice,
|
||||||
StopPrice: targetPrice,
|
StopPrice: targetPrice,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user