async updateLeverage(symbol) {
    const config = this.symbols.find(cSymbol => cSymbol.symbol === symbol);
    if (!config) {
      this.logger.error(`Bybit: Invalid leverage config for:${symbol}`);
      return;
    }

    // use default leverage to "3"
    const leverageSize = _.get(config, 'extra.bybit_leverage', 5);
    if (leverageSize < 0 || leverageSize > 100) {
      throw Error(`Invalid leverage size for: ${leverageSize} ${symbol}`);
    }

    // we dont get the selected leverage value in websocket or api endpoints
    // so we update them only in a given time window; system overload is often blocked
    if (symbol in this.leverageUpdated && this.leverageUpdated[symbol] > moment().subtract(45, 'minutes')) {
      this.logger.debug(`Bybit: leverage update not needed: ${symbol}`);
      return;
    }

    if (await this.getPositionForSymbol(symbol)) {
      this.logger.debug(`Bybit: leverage update with open position not needed: ${symbol}`);
      return;
    }

    const parameters = {
      api_key: this.apiKey,
      leverage: leverageSize,
      symbol: symbol,
      timestamp: new Date().getTime()
    };

    parameters.sign = crypto
      .createHmac('sha256', this.apiSecret)
      .update(querystring.stringify(parameters))
      .digest('hex');

    const result = await this.requestClient.executeRequestRetry(
      {
        method: 'POST',
        url: `${this.getBaseUrl()}/user/leverage/save`,
        headers: {
          'Content-Type': 'application/json',
          Accept: 'application/json'
        },
        body: JSON.stringify(parameters)
      },
      r => {
        return r && r.response && r.response.statusCode >= 500;
      }
    );

    const { error } = result;
    const { response } = result;
    const { body } = result;

    if (error || !response || response.statusCode !== 200) {
      this.logger.error(`Bybit: Invalid leverage update request:${JSON.stringify({ error: error, body: body })}`);
      return;
    }

    const json = JSON.parse(body);
    if (json.ret_msg === 'ok' || json.ret_code === 0) {
      this.logger.debug(`Bybit: Leverage update:${JSON.stringify(symbol)}`);
      // set updated indicator; for not update on next request
      this.leverageUpdated[symbol] = new Date();
      return;
    }

    this.logger.error(`Bybit: Leverage update error invalid body:${body}`);
  }
Set the configured leverage size "0-100" for pair before creating an order default "5" if not provided in configuration

symbol configuration via:

"extra.bybit_leverage": 5

@param symbol