morpheums / Binance.API.Csharp.Client

C#.NET client for Binance Exchange API.
MIT License
140 stars 88 forks source link

get Account Info error #89

Open bilal-hawklogix opened 1 year ago

bilal-hawklogix commented 1 year ago

I am using Binance.API.CSharp.Client.

I need this for testing purpose.

  1. I have registered on https://testnet.binancefuture.com. When i logged in it will give me an api key and secret key wether i have to use these api keys or i have to use api key and secret generated on https://testnet.binance.vision. 2.I have test with both the keys but it didnt work. 3.it give me an error of invalid api key or premission not allowed.
  2. Below is the code.

    var apiClient = new ApiClient(apiKey, secretKey, "https://testnet.binance.vision", "wss://testnet.binance.vision/ws"); var binanceClient = new BinanceClient(apiClient); try {

            var accountInfo = binanceClient.GetAccountInfo().Result;         
            return true;
        }
        catch (Exception ex)
        {
            return false;
        }

Can you help me out where i am something missing. I need this on urgent basis.

bilal-hawklogix commented 1 year ago

Api Error Code: -2015 Message: Invalid API-key, IP, or permissions for action.