JKorf / Binance.Net

A C# .netstandard client library for the Binance REST and Websocket Spot and Futures API focusing on clear usage and models
https://jkorf.github.io/Binance.Net/
MIT License
1.05k stars 429 forks source link

Adjust Contract Leverage for UsdFuturesApi #1432

Closed MihailDamian closed 1 month ago

MihailDamian commented 1 month ago

Is there a method to change leverage for a symbol in UsdFuturesApi? Thanks

MihailDamian commented 1 month ago

My use case: I got 400+ symbols and unfortunately Binance dont provide a global leverage adjustment, so it can be helpful to have a method to do that, so you can call it for each symbol and dirty work is done in 1 minute instead of 1 month :))

JKorf commented 1 month ago

Hi, yes you can use the restClient.UsdFuturesApi.Account.ChangeInitialLeverageAsync method for this

MihailDamian commented 1 month ago

Thank you, working for copy trading account too!