strategy: use stop limit due to sop market unsupported by binance

This commit is contained in:
Andy Cheng 2022-04-02 21:32:40 +08:00
parent 8f4ba971f1
commit 75f3e33543
No known key found for this signature in database
GPG Key ID: 936427CF651A9D28

View File

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