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.04k stars 425 forks source link

Missing Leverage in Function UsdFuturesApi.Trading.GetPositionsAsync #1405

Open dante1989 opened 1 month ago

dante1989 commented 1 month ago

Dim BinanceFuturesPositions_CheckBalance = Await clientBinance.UsdFuturesApi.Trading.GetPositionsAsync

For Each LongShortPosition In BinanceFuturesPositions_CheckBalance.Data Next

Missing LongShortPosition.Leverage

we do not have Leverage Property For One-way position mode but we have Leverage Property For Hedge position mode: Check here: https://binance-docs.github.io/apidocs/futures/en/#position-information-v3-user_data

JKorf commented 1 month ago

It seems they updated the response json example. I'll update the model with the new properties

dante1989 commented 1 month ago

I think V2 is better than V3. V2 have the full information of Leverage

dante1989 commented 1 month ago

We could integrate Both V2 and V3

kayahasa commented 1 month ago

Same here, leverage is 0. I will return back to V2.