knowm / XChange

XChange is a Java library providing a streamlined API for interacting with 60+ Bitcoin and Altcoin exchanges providing a consistent interface for trading and accessing market data.
http://knowm.org/open-source/xchange/
MIT License
3.85k stars 1.94k forks source link

CexIO: Null client id for #2317

Open solovieff opened 6 years ago

solovieff commented 6 years ago
Exchange exchange = (CexIOExchange) ExchangeFactory.INSTANCE.createExchange(CexIOExchange.class, exchangeSecurityItem.getApiKey(), exchangeSecurityItem.getSecretKey());

leads to npe in:

CexIODigest.digestParams

due to this.clientId is null.

ExchangeSpecification spec = exchange.getExchangeSpecification();
        spec.setUserName(exchangeSecurityItem.getUserName());

        exchange.applySpecification(spec);

fixes the issue. 4.3.2 version.

makarid commented 6 years ago

If you have fix the problem please close the issue.Thanks