com.binance4j.mining.param.MinersParams Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of binance4j-mining Show documentation
Show all versions of binance4j-mining Show documentation
Connector for the mining endpoints of the Binance API
package com.binance4j.mining.param;
import com.binance4j.core.annotation.Param;
import com.binance4j.core.param.Params;
import com.binance4j.mining.client.MiningClient;
import com.binance4j.mining.dto.MinerSorting;
import com.binance4j.mining.dto.SortSequence;
import com.binance4j.mining.dto.WorkerStatus;
/**
* {@link MiningClient#getMiners} params.
*
* @param algo Algorithm.
* @param userName Mining account.
* @param pageIndex Page number.
* @param sort Sort sequence.
* @param sortColumn Miner sort.
* @param workerStatus Miner status.
*/
@Param(weight = 5)
public record MinersParams(String algo, String userName, Integer pageIndex, SortSequence sort, MinerSorting sortColumn, WorkerStatus workerStatus)
implements Params {
/**
* Creates an instance of {@link MinersParams}.
*
* @param algo Algorithm.
* @param userName Mining account.
*/
public MinersParams(String algo, String userName) {
this(algo, userName, null, null, null, null);
}
}