adshao / go-binance

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

[error] msg=Invalid API-key, IP, or permissions for action. #561

Closed MushiTheMoshi closed 1 month ago

MushiTheMoshi commented 1 month ago

Hi there,

Fantastic job done here! greatly appreciated!

I have this error despite I have whitelisted my IPs, added full permissions and refreshed the credentials.

Is there any other thing I have to add? Currently using testnet to validate whether buys and sells are ok.

CODE_SNIPPET:

    binance.UseTestnet = true
    client = binance.NewClient(apiKey, secretKey)

ERROR:

msg=Invalid API-key, IP, or permissions for action.

Any hint is greatly appreciated!

Regards, Julio

MushiTheMoshi commented 1 month ago

was pointing to incorrect endpoint