crossIsolatedMarginSwitch method
Switch Cross/Isolated; must set leverage value when switching from Cross to Isolated. https://bybit-exchange.github.io/docs/inverse/#t-marginswitch
Implementation
Future<Map<String, dynamic>?> crossIsolatedMarginSwitch({
required String symbol,
required bool isIsolated,
required double buyLeverage,
required double sellLeverage,
}) async {
log.i('Switch Isolated/Margin mode.');
return await rest.crossIsolatedMarginSwitch(
symbol: symbol,
isIsolated: isIsolated,
buyLeverage: buyLeverage,
sellLeverage: sellLeverage,
);
}