old_contents: # Change Initial Leverage (TRADE)
  # Example - Set Leverage of 40 for symbol 'ADAUSDT'
  # Assumes you know how to set exchange object
  
  symbol = 'ADAUSDT'
  leverage =  40
  lev = exchange.fapiPrivate_post_leverage({
      'symbol': symbol,
      'leverage': leverage
  })
  
new_contents: # -*- coding: utf-8 -*-
  
  import os
  import sys
  
  root = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
  sys.path.append(root + '/python')
  
  import ccxt  # noqa: E402
  
  
  exchange = ccxt.binance({
      'apiKey': 'YOUR_API_KEY',
      'secret': 'YOUR_SECRET',
      'enableRateLimit': True,
  })
  
  exchange.load_markets()
  
  symbol = 'ADA/USDT'
  market = exchange.market(symbol)
  leverage =  40
  
  response = exchange.fapiPrivate_post_leverage({
      'symbol': market['id'],
      'leverage': leverage,
  })
  
  print(response)
  
subject: Update binance-futures-set-leverage.py