setTradingStop method
Set trading-stop https://bybit-exchange.github.io/docs/inverse/#t-tradingstop
Implementation
Future<Map<String, dynamic>?> setTradingStop(
{required String symbol,
double? takeProfit,
double? stopLoss,
double? trailingStop,
String? tpTriggerBy,
String? slTriggerBy,
double? newTrailingTriggerPrice}) async {
log.i('Set trading stop.');
return await rest.setTradingStop(
symbol: symbol,
takeProfit: takeProfit,
stopLoss: stopLoss,
trailingStop: trailingStop,
tpTriggerBy: tpTriggerBy,
slTriggerBy: slTriggerBy,
newTrailingTriggerPrice: newTrailingTriggerPrice);
}