Loan
Installation
- Maven
- Gradle
pom.xml
<dependency>
<groupId>{{groupId}}</groupId>
<artifactId>{{artifactId}}</artifactId>
<version>{{version}}</version>
</dependency>
build.gradle
implementation '{{groupId}}:{{artifactId}}:{{version}}'
Client instantiation
LoanClient client = new LoanClient(key, secret);
Features
Get crypto loans income history.
- Default
- Framed
- Sync
- Async
try{
List<LoanIncome> res = client.getLoansIncome(new LoanIncomeHistoryParams(asset)).sync();
}catch(ApiException e){
//...
}
client.getLoansIncome(new LoanIncomeHistoryParams(asset)).async((response, exception) -> {
if(exception == null){
//...
}else{
//...
}
});
- Sync
- Async
try{
List<LoanIncome> res = client.getLoansIncome(new LoanIncomeHistoryParams(asset), new TimeFrame(startTime, endTime, limit)).sync();
}catch(ApiException e){
//...
}
client.getLoansIncome(new LoanIncomeHistoryParams(asset), new TimeFrame(startTime, endTime, limit)).async((response, exception) -> {
if(exception == null){
//...
}else{
//...
}
});