adshao / go-binance

A Go SDK for Binance API
MIT License
1.48k stars 664 forks source link

something wrong happened when I get account asset? #535

Open csquan opened 6 months ago

csquan commented 6 months ago

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 commented 6 months ago

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

AndreyMashukov commented 4 months ago

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

AndreyMashukov commented 4 months ago

@csquan