unicorn-binance-rest-api icon indicating copy to clipboard operation
unicorn-binance-rest-api copied to clipboard

Changing leverage using this library

Open AndyMustanger opened this issue 2 years ago • 1 comments

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

AndyMustanger avatar Jul 29 '23 16:07 AndyMustanger

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'])

molivramento avatar Aug 02 '23 09:08 molivramento

Seems to be answered

oliver-zehentleitner avatar May 13 '24 17:05 oliver-zehentleitner