Hi. I used CCXT library’s “fapiPrivate_post_leverage” to set leverage of my order:
try:
binanceX.fapiPrivate_post_leverage({'symbol': binance_symbol, 'leverage': 3})
except Exception as e:
print("error:", e)
When I ran that code I got this error:
error: 'binance' object has no attribute 'fapiPrivate_post_leverage'
If any of you guys know about this error’s solution, please tell me.