binance-exchange / binance-java-api

binance-java-api is a lightweight Java library for the Binance API, supporting synchronous and asynchronous requests, as well as event streaming using WebSockets.
MIT License
834 stars 627 forks source link

Locked Staking amount not returned #399

Closed stylepatrick closed 2 years ago

stylepatrick commented 2 years ago

Hello,

if i use the account.getBalances() methode it doesnt show me the locked amount. For the locked attribute it returns 0.0 even if i have locked stacking amounts.

Account account = client.getAccount(); System.out.println(account.getBalances());

Does anyone else have the same issue?

TheLeBot commented 2 years ago

Hello,

if i use the account.getBalances() methode it doesnt show me the locked amount. For the locked attribute it returns 0.0 even if i have locked stacking amounts.

Account account = client.getAccount(); System.out.println(account.getBalances());

Does anyone else have the same issue?

I think binance understands "locked" as amount in limit orders and not in staking. Probably the amount locked in staking also does not appear in spot wallet, i cannot tell because i do not stake.

stylepatrick commented 2 years ago

Thanks for the answer.

Would make sense but there must be an Endpoint to call the locked stacking amount too.

stylepatrick commented 2 years ago

Found this article:

https://dev.binance.vision/t/earn-locked-staking/1453

Doesnt look like that Binance API supports the locked staking and no plans to implement at the moment.