go-binance icon indicating copy to clipboard operation
go-binance copied to clipboard

GetAccountInfo return Balances nil

Open sam-rusty opened this issue 6 years ago • 0 comments

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.

sam-rusty avatar May 10 '18 21:05 sam-rusty