Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

something wrong happened when I get account asset? #535

Open
csquan opened this issue Dec 29, 2023 · 3 comments
Open

something wrong happened when I get account asset? #535

csquan opened this issue Dec 29, 2023 · 3 comments

Comments

@csquan
Copy link

csquan commented Dec 29, 2023

for example,I use code:
client := binance.NewClient(apiKey, apiSecret)
client.SetApiEndpoint(types.Base_binance_url)

ret, err := client.NewGetAccountService().Do(context.Background())

to get balance,it return like this:{free:xxx,locked:xxx},I use free to get the balance.
but something very weired happen,when I use the method to get balance on 05:00,it show balance 5000+,
when I do it again on 10:00,it show 9000+.
this things happend only once since I used.
I do not know how?

@csquan
Copy link
Author

csquan commented Dec 29, 2023

maybe free is different,so any other method to get balance?

@AndreyMashukov
Copy link

Take a look https://github.com/AndreyMashukov/go-crypto-bot , use WS instead of http

@AndreyMashukov
Copy link

@csquan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants