use of org.knowm.xchange.idex.dto.ReturnNextNonceResponse in project XChange by knowm.
the class IdexExchange method getNonceFactory.
@Override
public SynchronizedValueFactory<Long> getNonceFactory() {
return (SynchronizedValueFactory) () -> {
Long ret = null;
try {
ReturnNextNonceResponse var10000 = getNextNonceApi().nextNonce(new NextNonceReq().address(getExchangeSpecification().getApiKey()));
ret = var10000.getNonce().longValue();
} catch (Exception e) {
e.printStackTrace();
}
return ret;
};
}
Aggregations