JKorf / Binance.Net

A C# .netstandard client library for the Binance REST and Websocket Spot and Futures API focusing on clear usage and models
https://jkorf.github.io/Binance.Net/
MIT License
1.03k stars 425 forks source link

Receiving: "code":-2015,"msg":"Invalid API-key, IP, or permissions for action. #579

Closed rvflyer01 closed 3 years ago

rvflyer01 commented 3 years ago

Hi, I'm a 1st time user of your api, it is very helpful, but, I configured an account & api keys with Binance. Tested them through Postman, all good; Used the same keys with your api and receive the above message. Any help gratefully received.

Hulkstance commented 3 years ago

If you are on Binance US, you have to specify BaseAddress = "https://api.binance.us" in your BinanceClient.

rvflyer01 commented 3 years ago

Hi, Many thanks, I tried that but alas it didn't work; This is what I tried... (from your examples) BinanceClient.SetDefaultOptions(new BinanceClientOptions() { ApiCredentials = new ApiCredentials("xxxxxxxxxxxxxxxxxxxxxxxxx", "yyyyyyyyyyyyyyyyyyyyyyyyyy"), BaseAddress = "https://api.binance.us", LogVerbosity = LogVerbosity.Debug, LogWriters = new List { Console.Out } });

Hulkstance commented 3 years ago

In that case, you can go on Binance's API management page and whitelist your IP address.

rvflyer01 commented 3 years ago

Hi, thanks again; I have my IP address whitelisted but still getting same message. I'm a bit puzzled!

JKorf commented 3 years ago

What call are you trying to do? Can you check the logging to see if everything is as expected?

dante1989 commented 3 years ago

Try to delete API, and creat new API again. It will be fixed. Somtime, i have the same problem like you, this problem come from Binance

wil70 commented 3 years ago

Hello, It started to work again, I will try next time to delete it - thank you!

Right now I'm having difficulty login into the testnet website itself today (so I cannot even delete the key); it was working well before. https://testnet.binancefuture.com/en/futures/BCH_USDT

image

Are you experiencing the samething?

On Sunday, February 14, 2021, 03:19:16 PM PST, dante1989 <notifications@github.com> wrote:  

Try to delete API, and creat new API again. It will be fixed. Somtime, i have the same problem like you, this problem come from Binance

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.