go-binance
go-binance copied to clipboard
GetAccountInfo return Balances nil
I'm trying to get balances of my account, using GetAccountInfo
method but its returning nil, it just started behaving like that, was find before. Anyone can help with it? here is how i am doing.
Client := binance.New(c.Config.Binance.ApiKey, c.Config.Binance.Secrete)
info, _ := Client.GetAccountInfo()
if info.Balances == nil {
c.Print(info)
}
it print like this
{"makerCommission":0,"takerCommission":0,"buyerCommission":0,"sellerCommission":0,"canTrade":false,"canWithdraw":false,"canDeposit":false,"balances":null}
I have double checked API Keys, everything looks right.