crossIsolatedMarginSwitch method

Future<Map<String, dynamic>?> crossIsolatedMarginSwitch({
  1. required String symbol,
  2. required bool isIsolated,
  3. required double buyLeverage,
  4. required double sellLeverage,
})

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,
  );
}