All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.knowm.xchange.independentreserve.dto.trade.IndependentReserveTransactionsRequest Maven / Gradle / Ivy

There is a newer version: 5.2.1
Show newest version
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