setTradingStopPeriodic method
void
setTradingStopPeriodic({})
Set trading-stop periodically. https://bybit-exchange.github.io/docs/inverse/#t-tradingstop
Implementation
void setTradingStopPeriodic(
{required String symbol,
double? takeProfit,
double? stopLoss,
double? trailingStop,
String? tpTriggerBy,
String? slTriggerBy,
double? newTrailingTriggerPrice,
required Duration period}) {
log.i('Set trading stop periodically.');
rest.setTradingStopPeriodic(
symbol: symbol,
takeProfit: takeProfit,
stopLoss: stopLoss,
trailingStop: trailingStop,
tpTriggerBy: tpTriggerBy,
slTriggerBy: slTriggerBy,
newTrailingTriggerPrice: newTrailingTriggerPrice,
period: period);
}