com.binance4j.loan.client.LoanClient Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of binance4j-loan Show documentation
Show all versions of binance4j-loan Show documentation
Connector for the crypto loan endpoints of the Binance API
package com.binance4j.loan.client;
import java.util.List;
import com.binance4j.core.Request;
import com.binance4j.core.client.RestClient;
import com.binance4j.core.param.Params;
import com.binance4j.core.param.TimeFrame;
import com.binance4j.loan.dto.LoanIncome;
import com.binance4j.loan.param.LoanIncomeHistoryParams;
/**
* Api client for the loan endpoints
*
* @see Documentation
*/
public class LoanClient extends RestClient {
/**
* @param key API public key.
* @param secret API secret key.
*/
public LoanClient(String key, String secret) {
super(LoanMapping.class, key, secret);
}
/**
* Get crypto loans income history.
*
* @param params Request params.
* @param timeFrame Time interval search.
* @return The request to execute.
*/
public Request> getLoansIncome(LoanIncomeHistoryParams params, TimeFrame timeFrame) {
return new Request<>(service.getLoansIncome(Params.merge(params, timeFrame)));
}
/**
* Get crypto loans income history.
*
* @param params Request params.
* @return The request to execute.
*/
public Request> getLoansIncome(LoanIncomeHistoryParams params) {
return new Request<>(service.getLoansIncome(params.toMap()));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy