Skip to content

get Account Info error #89

@bilal-hawklogix

Description

@bilal-hawklogix

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions