Search in sources :

Example 1 with NextNonceReq

use of org.knowm.xchange.idex.dto.NextNonceReq 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;
    };
}
Also used : NextNonceReq(org.knowm.xchange.idex.dto.NextNonceReq) ReturnNextNonceResponse(org.knowm.xchange.idex.dto.ReturnNextNonceResponse) IOException(java.io.IOException) SynchronizedValueFactory(si.mazi.rescu.SynchronizedValueFactory)

Aggregations

IOException (java.io.IOException)1 NextNonceReq (org.knowm.xchange.idex.dto.NextNonceReq)1 ReturnNextNonceResponse (org.knowm.xchange.idex.dto.ReturnNextNonceResponse)1 SynchronizedValueFactory (si.mazi.rescu.SynchronizedValueFactory)1