com.binance4j.mining.client.MiningMapping 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.client;
import java.util.Map;
import com.binance4j.core.client.RestMapping;
import com.binance4j.mining.dto.AccountListResponse;
import com.binance4j.mining.dto.AccountProfitsResponse;
import com.binance4j.mining.dto.AlgorithmsResponse;
import com.binance4j.mining.dto.CoinsResponse;
import com.binance4j.mining.dto.HashrateResaleCancellationResponse;
import com.binance4j.mining.dto.HashrateResaleDetailResponse;
import com.binance4j.mining.dto.HashrateResaleListResponse;
import com.binance4j.mining.dto.HashrateResaleResponse;
import com.binance4j.mining.dto.MinerDetailsResponse;
import com.binance4j.mining.dto.OtherProfitsResponse;
import com.binance4j.mining.dto.ProfitResponse;
import com.binance4j.mining.dto.StatisticsResponse;
import com.binance4j.mining.dto.WorkersResponse;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Headers;
import retrofit2.http.POST;
import retrofit2.http.QueryMap;
/** The {@link MiningClient} mapping. */
public interface MiningMapping extends RestMapping {
/** The base uri. */
String BASE = "/sapi/v1/mining/";
/**
* @param map The query map.
* @return The generated Retrofit call.
*/
@GET(BASE + "pub/algoList")
@Headers(SIGNED_H)
Call getAlgorithms(@QueryMap Map map);
/**
* @param map The query map.
* @return The generated Retrofit call.
*/
@GET(BASE + "pub/coinList")
@Headers(SIGNED_H)
Call getCoins(@QueryMap Map map);
/**
* @param map The query map.
* @return The generated Retrofit call.
*/
@GET(BASE + "worker/detail")
@Headers(SIGNED_H)
Call getMinersDetails(@QueryMap Map map);
/**
* @param map The query map.
* @return The generated Retrofit call.
*/
@GET(BASE + "worker/list")
@Headers(SIGNED_H)
Call getMiners(@QueryMap Map map);
/**
* @param map The query map.
* @return The generated Retrofit call.
*/
@GET(BASE + "payment/list")
@Headers(SIGNED_H)
Call getProfits(@QueryMap Map map);
/**
* @param map The query map.
* @return The generated Retrofit call.
*/
@GET(BASE + "payment/other")
@Headers(SIGNED_H)
Call getOtherProfits(@QueryMap Map map);
/**
* @param map The query map.
* @return The generated Retrofit call.
*/
@GET(BASE + "payment/uid")
@Headers(SIGNED_H)
Call getAccountProfits(@QueryMap Map map);
/**
* @param map The query map.
* @return The generated Retrofit call.
*/
@GET(BASE + "hash-transfer/config/details/list")
@Headers(SIGNED_H)
Call getHashrateResales(@QueryMap Map map);
/**
* @param map The query map.
* @return The generated Retrofit call.
*/
@GET(BASE + "hash-transfer/profit/details")
@Headers(SIGNED_H)
Call getHashrateResalesDetails(@QueryMap Map map);
/**
* @param map The query map.
* @return The generated Retrofit call.
*/
@POST(BASE + "hash-transfer/config")
@Headers(SIGNED_H)
Call resellHashrate(@QueryMap Map map);
/**
* @param map The query map.
* @return The generated Retrofit call.
*/
@POST(BASE + "hash-transfer/config/cancel")
@Headers(SIGNED_H)
Call cancelHashrateResaleConfiguration(@QueryMap Map map);
/**
* @param map The query map.
* @return The generated Retrofit call.
*/
@GET(BASE + "statistics/user/status")
@Headers(SIGNED_H)
Call getStatistics(@QueryMap Map map);
/**
* @param map The query map.
* @return The generated Retrofit call.
*/
@GET(BASE + "statistics/user/list")
@Headers(SIGNED_H)
Call getAccounts(@QueryMap Map map);
}