| Package | Description |
|---|---|
| io.gate.gateapi.api | |
| io.gate.gateapi.models |
| Modifier and Type | Method and Description |
|---|---|
Loan |
MarginApi.cancelLoan(String loanId,
String currency)
Cancel lending loan
Only lending loans can be cancelled
|
Loan |
MarginApi.createLoan(Loan loan)
Lend or borrow
|
Loan |
MarginApi.getLoan(String loanId,
String side)
Retrieve one single loan detail
|
Loan |
MarginApi.mergeLoans(String currency,
String ids)
Merge multiple lending loans
|
Loan |
MarginApi.repayLoan(String loanId,
RepayRequest repayRequest)
Repay a loan
|
Loan |
MarginApi.updateLoan(String loanId,
LoanPatch loanPatch)
Modify a loan
Only `auto_renew` modification is supported currently
|
| Modifier and Type | Method and Description |
|---|---|
ApiResponse<Loan> |
MarginApi.cancelLoanWithHttpInfo(String loanId,
String currency)
Cancel lending loan
Only lending loans can be cancelled
|
ApiResponse<Loan> |
MarginApi.createLoanWithHttpInfo(Loan loan)
Lend or borrow
|
List<Loan> |
MarginApi.APIlistLoansRequest.execute()
Execute listLoans request
|
ApiResponse<List<Loan>> |
MarginApi.APIlistLoansRequest.executeWithHttpInfo()
Execute listLoans request with HTTP info returned
|
ApiResponse<Loan> |
MarginApi.getLoanWithHttpInfo(String loanId,
String side)
Retrieve one single loan detail
|
ApiResponse<Loan> |
MarginApi.mergeLoansWithHttpInfo(String currency,
String ids)
Merge multiple lending loans
|
ApiResponse<Loan> |
MarginApi.repayLoanWithHttpInfo(String loanId,
RepayRequest repayRequest)
Repay a loan
|
ApiResponse<Loan> |
MarginApi.updateLoanWithHttpInfo(String loanId,
LoanPatch loanPatch)
Modify a loan
Only `auto_renew` modification is supported currently
|
| Modifier and Type | Method and Description |
|---|---|
Loan |
MarginApi.createLoan(Loan loan)
Lend or borrow
|
okhttp3.Call |
MarginApi.createLoanAsync(Loan loan,
ApiCallback<Loan> _callback)
Lend or borrow (asynchronously)
|
okhttp3.Call |
MarginApi.createLoanCall(Loan loan,
ApiCallback _callback)
Build call for createLoan
|
ApiResponse<Loan> |
MarginApi.createLoanWithHttpInfo(Loan loan)
Lend or borrow
|
| Modifier and Type | Method and Description |
|---|---|
okhttp3.Call |
MarginApi.cancelLoanAsync(String loanId,
String currency,
ApiCallback<Loan> _callback)
Cancel lending loan (asynchronously)
Only lending loans can be cancelled
|
okhttp3.Call |
MarginApi.createLoanAsync(Loan loan,
ApiCallback<Loan> _callback)
Lend or borrow (asynchronously)
|
okhttp3.Call |
MarginApi.APIlistLoansRequest.executeAsync(ApiCallback<List<Loan>> _callback)
Execute listLoans request (asynchronously)
|
okhttp3.Call |
MarginApi.getLoanAsync(String loanId,
String side,
ApiCallback<Loan> _callback)
Retrieve one single loan detail (asynchronously)
|
okhttp3.Call |
MarginApi.mergeLoansAsync(String currency,
String ids,
ApiCallback<Loan> _callback)
Merge multiple lending loans (asynchronously)
|
okhttp3.Call |
MarginApi.repayLoanAsync(String loanId,
RepayRequest repayRequest,
ApiCallback<Loan> _callback)
Repay a loan (asynchronously)
|
okhttp3.Call |
MarginApi.updateLoanAsync(String loanId,
LoanPatch loanPatch,
ApiCallback<Loan> _callback)
Modify a loan (asynchronously)
Only `auto_renew` modification is supported currently
|
| Modifier and Type | Method and Description |
|---|---|
Loan |
Loan.amount(String amount) |
Loan |
Loan.autoRenew(Boolean autoRenew) |
Loan |
Loan.currency(String currency) |
Loan |
Loan.currencyPair(String currencyPair) |
Loan |
Loan.days(Integer days) |
Loan |
Loan.feeRate(String feeRate) |
Loan |
Loan.origId(String origId) |
Loan |
Loan.rate(String rate) |
Loan |
Loan.side(Loan.SideEnum side) |
Copyright © 2021. All rights reserved.