Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kucoin - I get null account info #4334

Open
sebasira opened this issue Nov 20, 2021 · 0 comments
Open

Kucoin - I get null account info #4334

sebasira opened this issue Nov 20, 2021 · 0 comments

Comments

@sebasira
Copy link

I'm not been able to get the info of my Kucoin account. I can successfully get a TickerResponse, but when I call the accountService.getAccountInfo() I get this:

AccountInfo [username=null, tradingFee=null, wallets={}]

I have a new and verified account. I create the account a month (or so) ago and I successfully complete the KYC verification. I've test it with 2 different API KEYS both with general and trade permission and NO IP restriction.

This is the code snippet I'm calling:

ExchangeSpecification exSpec = new KucoinExchange().getDefaultExchangeSpecification();
exSpec.setUserName(my-username);
exSpec.setApiKey(my-api-key);
exSpec.setSecretKey(my-secret);
exSpec.setExchangeSpecificParametersItem("passphrase", my-passphrase);
exSpec.setExchangeSpecificParametersItem(KucoinExchange.PARAM_SANDBOX, false);
Exchange kucoin = ExchangeFactory.INSTANCE.createExchange(exSpec);

// Get the account information
AccountService accountService = kucoin.getAccountService();
AccountInfo accountInfo = null;
try {
    accountInfo = accountService.getAccountInfo();
    System.out.println(accountInfo.toString());
} catch (IOException e) {
    e.printStackTrace();
}

FWIW this is what I see in my profile:
Screen Shot 2021-11-19 at 22 33 11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant