
org.knowm.xchange.independentreserve.dto.trade.IndependentReserveTransactionsRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xchange-independentreserve Show documentation
Show all versions of xchange-independentreserve Show documentation
XChange implementation for the Independent Reserve
package org.knowm.xchange.independentreserve.dto.trade;
import java.util.Date;
import org.knowm.xchange.independentreserve.dto.auth.AuthAggregate;
import org.knowm.xchange.independentreserve.dto.trade.IndependentReserveTransaction.Type;
import org.knowm.xchange.independentreserve.util.Util;
/** https://www.independentreserve.com/API#GetTransactions */
public class IndependentReserveTransactionsRequest extends AuthAggregate {
public IndependentReserveTransactionsRequest(
String apiKey,
Long nonce,
String accountGuid,
Date fromTimestampUtc,
Date toTimestampUtc,
Type[] txTypes,
int pageIndex,
int pageSize) {
super(apiKey, nonce);
this.parameters.put("accountGuid", accountGuid);
if (fromTimestampUtc != null) {
this.parameters.put("fromTimestampUtc", Util.formatDate(fromTimestampUtc));
}
if (toTimestampUtc != null) {
this.parameters.put("toTimestampUtc", Util.formatDate(toTimestampUtc));
}
if (txTypes != null) {
this.parameters.put("txTypes", txTypes);
}
this.parameters.put("pageIndex", pageIndex);
this.parameters.put("pageSize", pageSize);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy