LUCIT-Systems-and-Development / unicorn-binance-rest-api

A Python SDK by LUCIT to use the Binance REST API`s (com+testnet, com-margin+testnet, com-isolated_margin+testnet, com-futures+testnet, us, tr) in a simple, fast, flexible, robust and fully-featured way.
https://unicorn-binance-rest-api.docs.lucit.tech
Other
61 stars 17 forks source link

Changing leverage using this library #66

Closed AndyMustanger closed 4 months ago

AndyMustanger commented 1 year ago

Is your feature request related to a problem? Please describe.

Hello! I'm trying to find how to change leverage for some futures pair using this library. Is it possible? Googled a lot, searched in documentation and here, nothing found. Any ideas?

Describe the solution you'd like.

No response

Describe alternatives you've considered

No response

Additional context

No response

molivramento commented 1 year ago

ubra_futures = BinanceRestApiManager( exchange='binance.com-futures', api_key=os.getenv('API_KEY'), api_secret=os.getenv('API_SECRET')) ubra.futures_leverage_bracket(symbol=symbol['symbol']) ubra_futures.futures_change_leverage(symbol=symbol['symbol'], leverage=leverage[0]['brackets'][0]['initialLeverage'])

oliver-zehentleitner commented 4 months ago

Seems to be answered