XChange icon indicating copy to clipboard operation
XChange copied to clipboard

Kucoin - I get null account info

Open sebasira opened this issue 4 years ago • 0 comments

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

sebasira avatar Nov 20 '21 01:11 sebasira