public class MarginApi extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
MarginApi.APIgetMarginTransferableRequest |
class |
MarginApi.APIlistCrossMarginAccountBookRequest |
class |
MarginApi.APIlistCrossMarginLoansRequest |
class |
MarginApi.APIlistCrossMarginRepaymentsRequest |
class |
MarginApi.APIlistFundingAccountsRequest |
class |
MarginApi.APIlistLoanRecordsRequest |
class |
MarginApi.APIlistLoansRequest |
class |
MarginApi.APIlistMarginAccountBookRequest |
class |
MarginApi.APIlistMarginAccountsRequest |
| Constructor and Description |
|---|
MarginApi() |
MarginApi(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
Loan |
cancelLoan(String loanId,
String currency)
Cancel lending loan
Only lending loans can be cancelled
|
okhttp3.Call |
cancelLoanAsync(String loanId,
String currency,
ApiCallback<Loan> _callback)
Cancel lending loan (asynchronously)
Only lending loans can be cancelled
|
okhttp3.Call |
cancelLoanCall(String loanId,
String currency,
ApiCallback _callback)
Build call for cancelLoan
|
ApiResponse<Loan> |
cancelLoanWithHttpInfo(String loanId,
String currency)
Cancel lending loan
Only lending loans can be cancelled
|
CrossMarginLoan |
createCrossMarginLoan(CrossMarginLoan crossMarginLoan)
Create a cross margin borrow loan
Borrow amount cannot be less than currency minimum borrow amount
|
okhttp3.Call |
createCrossMarginLoanAsync(CrossMarginLoan crossMarginLoan,
ApiCallback<CrossMarginLoan> _callback)
Create a cross margin borrow loan (asynchronously)
Borrow amount cannot be less than currency minimum borrow amount
|
okhttp3.Call |
createCrossMarginLoanCall(CrossMarginLoan crossMarginLoan,
ApiCallback _callback)
Build call for createCrossMarginLoan
|
ApiResponse<CrossMarginLoan> |
createCrossMarginLoanWithHttpInfo(CrossMarginLoan crossMarginLoan)
Create a cross margin borrow loan
Borrow amount cannot be less than currency minimum borrow amount
|
Loan |
createLoan(Loan loan)
Lend or borrow
|
okhttp3.Call |
createLoanAsync(Loan loan,
ApiCallback<Loan> _callback)
Lend or borrow (asynchronously)
|
okhttp3.Call |
createLoanCall(Loan loan,
ApiCallback _callback)
Build call for createLoan
|
ApiResponse<Loan> |
createLoanWithHttpInfo(Loan loan)
Lend or borrow
|
ApiClient |
getApiClient() |
AutoRepaySetting |
getAutoRepayStatus()
Retrieve user auto repayment setting
|
okhttp3.Call |
getAutoRepayStatusAsync(ApiCallback<AutoRepaySetting> _callback)
Retrieve user auto repayment setting (asynchronously)
|
okhttp3.Call |
getAutoRepayStatusCall(ApiCallback _callback)
Build call for getAutoRepayStatus
|
ApiResponse<AutoRepaySetting> |
getAutoRepayStatusWithHttpInfo()
Retrieve user auto repayment setting
|
CrossMarginAccount |
getCrossMarginAccount()
Retrieve cross margin account
|
okhttp3.Call |
getCrossMarginAccountAsync(ApiCallback<CrossMarginAccount> _callback)
Retrieve cross margin account (asynchronously)
|
okhttp3.Call |
getCrossMarginAccountCall(ApiCallback _callback)
Build call for getCrossMarginAccount
|
ApiResponse<CrossMarginAccount> |
getCrossMarginAccountWithHttpInfo()
Retrieve cross margin account
|
CrossMarginCurrency |
getCrossMarginCurrency(String currency)
Retrieve detail of one single currency supported by cross margin
|
okhttp3.Call |
getCrossMarginCurrencyAsync(String currency,
ApiCallback<CrossMarginCurrency> _callback)
Retrieve detail of one single currency supported by cross margin (asynchronously)
|
okhttp3.Call |
getCrossMarginCurrencyCall(String currency,
ApiCallback _callback)
Build call for getCrossMarginCurrency
|
ApiResponse<CrossMarginCurrency> |
getCrossMarginCurrencyWithHttpInfo(String currency)
Retrieve detail of one single currency supported by cross margin
|
CrossMarginLoan |
getCrossMarginLoan(String loanId)
Retrieve single borrow loan detail
|
okhttp3.Call |
getCrossMarginLoanAsync(String loanId,
ApiCallback<CrossMarginLoan> _callback)
Retrieve single borrow loan detail (asynchronously)
|
okhttp3.Call |
getCrossMarginLoanCall(String loanId,
ApiCallback _callback)
Build call for getCrossMarginLoan
|
ApiResponse<CrossMarginLoan> |
getCrossMarginLoanWithHttpInfo(String loanId)
Retrieve single borrow loan detail
|
CrossMarginTransferable |
getCrossMarginTransferable(String currency)
Max transferable amount for specified cross margin currency
|
okhttp3.Call |
getCrossMarginTransferableAsync(String currency,
ApiCallback<CrossMarginTransferable> _callback)
Max transferable amount for specified cross margin currency (asynchronously)
|
okhttp3.Call |
getCrossMarginTransferableCall(String currency,
ApiCallback _callback)
Build call for getCrossMarginTransferable
|
ApiResponse<CrossMarginTransferable> |
getCrossMarginTransferableWithHttpInfo(String currency)
Max transferable amount for specified cross margin currency
|
Loan |
getLoan(String loanId,
String side)
Retrieve one single loan detail
|
okhttp3.Call |
getLoanAsync(String loanId,
String side,
ApiCallback<Loan> _callback)
Retrieve one single loan detail (asynchronously)
|
okhttp3.Call |
getLoanCall(String loanId,
String side,
ApiCallback _callback)
Build call for getLoan
|
LoanRecord |
getLoanRecord(String loanRecordId,
String loanId)
Get one single loan record
|
okhttp3.Call |
getLoanRecordAsync(String loanRecordId,
String loanId,
ApiCallback<LoanRecord> _callback)
Get one single loan record (asynchronously)
|
okhttp3.Call |
getLoanRecordCall(String loanRecordId,
String loanId,
ApiCallback _callback)
Build call for getLoanRecord
|
ApiResponse<LoanRecord> |
getLoanRecordWithHttpInfo(String loanRecordId,
String loanId)
Get one single loan record
|
ApiResponse<Loan> |
getLoanWithHttpInfo(String loanId,
String side)
Retrieve one single loan detail
|
MarginCurrencyPair |
getMarginCurrencyPair(String currencyPair)
Query one single margin currency pair
|
okhttp3.Call |
getMarginCurrencyPairAsync(String currencyPair,
ApiCallback<MarginCurrencyPair> _callback)
Query one single margin currency pair (asynchronously)
|
okhttp3.Call |
getMarginCurrencyPairCall(String currencyPair,
ApiCallback _callback)
Build call for getMarginCurrencyPair
|
ApiResponse<MarginCurrencyPair> |
getMarginCurrencyPairWithHttpInfo(String currencyPair)
Query one single margin currency pair
|
MarginApi.APIgetMarginTransferableRequest |
getMarginTransferable(String currency)
Max transferable amount for specified margin currency
|
MarginApi.APIlistCrossMarginAccountBookRequest |
listCrossMarginAccountBook()
Retrieve cross margin account change history
Record time range cannot exceed 30 days
|
List<CrossMarginCurrency> |
listCrossMarginCurrencies()
Currencies supported by cross margin.
|
okhttp3.Call |
listCrossMarginCurrenciesAsync(ApiCallback<List<CrossMarginCurrency>> _callback)
Currencies supported by cross margin.
|
okhttp3.Call |
listCrossMarginCurrenciesCall(ApiCallback _callback)
Build call for listCrossMarginCurrencies
|
ApiResponse<List<CrossMarginCurrency>> |
listCrossMarginCurrenciesWithHttpInfo()
Currencies supported by cross margin.
|
MarginApi.APIlistCrossMarginLoansRequest |
listCrossMarginLoans(Integer status)
List cross margin borrow history
Sort by creation time in descending order by default.
|
MarginApi.APIlistCrossMarginRepaymentsRequest |
listCrossMarginRepayments()
Retrieve cross margin repayments
Sort by creation time in descending order by default.
|
MarginApi.APIlistFundingAccountsRequest |
listFundingAccounts()
Funding account list
|
List<FundingBookItem> |
listFundingBook(String currency)
Order book of lending loans
|
okhttp3.Call |
listFundingBookAsync(String currency,
ApiCallback<List<FundingBookItem>> _callback)
Order book of lending loans (asynchronously)
|
okhttp3.Call |
listFundingBookCall(String currency,
ApiCallback _callback)
Build call for listFundingBook
|
ApiResponse<List<FundingBookItem>> |
listFundingBookWithHttpInfo(String currency)
Order book of lending loans
|
MarginApi.APIlistLoanRecordsRequest |
listLoanRecords(String loanId)
List repayment records of specified loan
|
List<Repayment> |
listLoanRepayments(String loanId)
List loan repayment records
|
okhttp3.Call |
listLoanRepaymentsAsync(String loanId,
ApiCallback<List<Repayment>> _callback)
List loan repayment records (asynchronously)
|
okhttp3.Call |
listLoanRepaymentsCall(String loanId,
ApiCallback _callback)
Build call for listLoanRepayments
|
ApiResponse<List<Repayment>> |
listLoanRepaymentsWithHttpInfo(String loanId)
List loan repayment records
|
MarginApi.APIlistLoansRequest |
listLoans(String status,
String side)
List all loans
|
MarginApi.APIlistMarginAccountBookRequest |
listMarginAccountBook()
List margin account balance change history
Only transferals from and to margin account are provided for now.
|
MarginApi.APIlistMarginAccountsRequest |
listMarginAccounts()
Margin account list
|
List<MarginCurrencyPair> |
listMarginCurrencyPairs()
List all supported currency pairs supported in margin trading
|
okhttp3.Call |
listMarginCurrencyPairsAsync(ApiCallback<List<MarginCurrencyPair>> _callback)
List all supported currency pairs supported in margin trading (asynchronously)
|
okhttp3.Call |
listMarginCurrencyPairsCall(ApiCallback _callback)
Build call for listMarginCurrencyPairs
|
ApiResponse<List<MarginCurrencyPair>> |
listMarginCurrencyPairsWithHttpInfo()
List all supported currency pairs supported in margin trading
|
Loan |
mergeLoans(String currency,
String ids)
Merge multiple lending loans
|
okhttp3.Call |
mergeLoansAsync(String currency,
String ids,
ApiCallback<Loan> _callback)
Merge multiple lending loans (asynchronously)
|
okhttp3.Call |
mergeLoansCall(String currency,
String ids,
ApiCallback _callback)
Build call for mergeLoans
|
ApiResponse<Loan> |
mergeLoansWithHttpInfo(String currency,
String ids)
Merge multiple lending loans
|
List<CrossMarginLoan> |
repayCrossMarginLoan(CrossMarginRepayRequest crossMarginRepayRequest)
Repay cross margin loan
|
okhttp3.Call |
repayCrossMarginLoanAsync(CrossMarginRepayRequest crossMarginRepayRequest,
ApiCallback<List<CrossMarginLoan>> _callback)
Repay cross margin loan (asynchronously)
|
okhttp3.Call |
repayCrossMarginLoanCall(CrossMarginRepayRequest crossMarginRepayRequest,
ApiCallback _callback)
Build call for repayCrossMarginLoan
|
ApiResponse<List<CrossMarginLoan>> |
repayCrossMarginLoanWithHttpInfo(CrossMarginRepayRequest crossMarginRepayRequest)
Repay cross margin loan
|
Loan |
repayLoan(String loanId,
RepayRequest repayRequest)
Repay a loan
|
okhttp3.Call |
repayLoanAsync(String loanId,
RepayRequest repayRequest,
ApiCallback<Loan> _callback)
Repay a loan (asynchronously)
|
okhttp3.Call |
repayLoanCall(String loanId,
RepayRequest repayRequest,
ApiCallback _callback)
Build call for repayLoan
|
ApiResponse<Loan> |
repayLoanWithHttpInfo(String loanId,
RepayRequest repayRequest)
Repay a loan
|
void |
setApiClient(ApiClient apiClient) |
AutoRepaySetting |
setAutoRepay(String status)
Update user's auto repayment setting
|
okhttp3.Call |
setAutoRepayAsync(String status,
ApiCallback<AutoRepaySetting> _callback)
Update user's auto repayment setting (asynchronously)
|
okhttp3.Call |
setAutoRepayCall(String status,
ApiCallback _callback)
Build call for setAutoRepay
|
ApiResponse<AutoRepaySetting> |
setAutoRepayWithHttpInfo(String status)
Update user's auto repayment setting
|
Loan |
updateLoan(String loanId,
LoanPatch loanPatch)
Modify a loan
Only `auto_renew` modification is supported currently
|
okhttp3.Call |
updateLoanAsync(String loanId,
LoanPatch loanPatch,
ApiCallback<Loan> _callback)
Modify a loan (asynchronously)
Only `auto_renew` modification is supported currently
|
okhttp3.Call |
updateLoanCall(String loanId,
LoanPatch loanPatch,
ApiCallback _callback)
Build call for updateLoan
|
LoanRecord |
updateLoanRecord(String loanRecordId,
LoanPatch loanPatch)
Modify a loan record
Only `auto_renew` modification is supported currently
|
okhttp3.Call |
updateLoanRecordAsync(String loanRecordId,
LoanPatch loanPatch,
ApiCallback<LoanRecord> _callback)
Modify a loan record (asynchronously)
Only `auto_renew` modification is supported currently
|
okhttp3.Call |
updateLoanRecordCall(String loanRecordId,
LoanPatch loanPatch,
ApiCallback _callback)
Build call for updateLoanRecord
|
ApiResponse<LoanRecord> |
updateLoanRecordWithHttpInfo(String loanRecordId,
LoanPatch loanPatch)
Modify a loan record
Only `auto_renew` modification is supported currently
|
ApiResponse<Loan> |
updateLoanWithHttpInfo(String loanId,
LoanPatch loanPatch)
Modify a loan
Only `auto_renew` modification is supported currently
|
public MarginApi()
public MarginApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public okhttp3.Call listMarginCurrencyPairsCall(ApiCallback _callback) throws ApiException
_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | List retrieved | - |
public List<MarginCurrencyPair> listMarginCurrencyPairs() throws ApiException
ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | List retrieved | - |
public ApiResponse<List<MarginCurrencyPair>> listMarginCurrencyPairsWithHttpInfo() throws ApiException
ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | List retrieved | - |
public okhttp3.Call listMarginCurrencyPairsAsync(ApiCallback<List<MarginCurrencyPair>> _callback) throws ApiException
_callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body object| Status Code | Description | Response Headers |
| 200 | List retrieved | - |
public okhttp3.Call getMarginCurrencyPairCall(String currencyPair, ApiCallback _callback) throws ApiException
currencyPair - Margin currency pair (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | Successfully retrieved | - |
public MarginCurrencyPair getMarginCurrencyPair(String currencyPair) throws ApiException
currencyPair - Margin currency pair (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Successfully retrieved | - |
public ApiResponse<MarginCurrencyPair> getMarginCurrencyPairWithHttpInfo(String currencyPair) throws ApiException
currencyPair - Margin currency pair (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Successfully retrieved | - |
public okhttp3.Call getMarginCurrencyPairAsync(String currencyPair, ApiCallback<MarginCurrencyPair> _callback) throws ApiException
currencyPair - Margin currency pair (required)_callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body object| Status Code | Description | Response Headers |
| 200 | Successfully retrieved | - |
public okhttp3.Call listFundingBookCall(String currency, ApiCallback _callback) throws ApiException
currency - Retrieved specified currency related data (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | Order book retrieved | - |
public List<FundingBookItem> listFundingBook(String currency) throws ApiException
currency - Retrieved specified currency related data (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Order book retrieved | - |
public ApiResponse<List<FundingBookItem>> listFundingBookWithHttpInfo(String currency) throws ApiException
currency - Retrieved specified currency related data (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Order book retrieved | - |
public okhttp3.Call listFundingBookAsync(String currency, ApiCallback<List<FundingBookItem>> _callback) throws ApiException
currency - Retrieved specified currency related data (required)_callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body object| Status Code | Description | Response Headers |
| 200 | Order book retrieved | - |
public MarginApi.APIlistMarginAccountsRequest listMarginAccounts()
| Status Code | Description | Response Headers |
| 200 | List retrieved | - |
public MarginApi.APIlistMarginAccountBookRequest listMarginAccountBook()
| Status Code | Description | Response Headers |
| 200 | List retrieved | - |
public MarginApi.APIlistFundingAccountsRequest listFundingAccounts()
| Status Code | Description | Response Headers |
| 200 | List retrieved | - |
public MarginApi.APIlistLoansRequest listLoans(String status, String side)
status - Loan status (required)side - Lend or borrow (required)| Status Code | Description | Response Headers |
| 200 | List retrieved | - |
public okhttp3.Call createLoanCall(Loan loan, ApiCallback _callback) throws ApiException
loan - (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 201 | Loan created | - |
public Loan createLoan(Loan loan) throws ApiException
loan - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 201 | Loan created | - |
public ApiResponse<Loan> createLoanWithHttpInfo(Loan loan) throws ApiException
loan - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 201 | Loan created | - |
public okhttp3.Call createLoanAsync(Loan loan, ApiCallback<Loan> _callback) throws ApiException
loan - (required)_callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body object| Status Code | Description | Response Headers |
| 201 | Loan created | - |
public okhttp3.Call mergeLoansCall(String currency, String ids, ApiCallback _callback) throws ApiException
currency - Retrieved specified currency related data (required)ids - Lending loan ID list separated by `,`. Maximum of 20 IDs are allowed in one request (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 201 | Loans merged | - |
public Loan mergeLoans(String currency, String ids) throws ApiException
currency - Retrieved specified currency related data (required)ids - Lending loan ID list separated by `,`. Maximum of 20 IDs are allowed in one request (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 201 | Loans merged | - |
public ApiResponse<Loan> mergeLoansWithHttpInfo(String currency, String ids) throws ApiException
currency - Retrieved specified currency related data (required)ids - Lending loan ID list separated by `,`. Maximum of 20 IDs are allowed in one request (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 201 | Loans merged | - |
public okhttp3.Call mergeLoansAsync(String currency, String ids, ApiCallback<Loan> _callback) throws ApiException
currency - Retrieved specified currency related data (required)ids - Lending loan ID list separated by `,`. Maximum of 20 IDs are allowed in one request (required)_callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body object| Status Code | Description | Response Headers |
| 201 | Loans merged | - |
public okhttp3.Call getLoanCall(String loanId, String side, ApiCallback _callback) throws ApiException
loanId - Loan ID (required)side - Lend or borrow (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | List retrieved | - |
public Loan getLoan(String loanId, String side) throws ApiException
loanId - Loan ID (required)side - Lend or borrow (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | List retrieved | - |
public ApiResponse<Loan> getLoanWithHttpInfo(String loanId, String side) throws ApiException
loanId - Loan ID (required)side - Lend or borrow (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | List retrieved | - |
public okhttp3.Call getLoanAsync(String loanId, String side, ApiCallback<Loan> _callback) throws ApiException
loanId - Loan ID (required)side - Lend or borrow (required)_callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body object| Status Code | Description | Response Headers |
| 200 | List retrieved | - |
public okhttp3.Call cancelLoanCall(String loanId, String currency, ApiCallback _callback) throws ApiException
loanId - Loan ID (required)currency - Retrieved specified currency related data (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | Order cancelled | - |
public Loan cancelLoan(String loanId, String currency) throws ApiException
loanId - Loan ID (required)currency - Retrieved specified currency related data (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Order cancelled | - |
public ApiResponse<Loan> cancelLoanWithHttpInfo(String loanId, String currency) throws ApiException
loanId - Loan ID (required)currency - Retrieved specified currency related data (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Order cancelled | - |
public okhttp3.Call cancelLoanAsync(String loanId, String currency, ApiCallback<Loan> _callback) throws ApiException
loanId - Loan ID (required)currency - Retrieved specified currency related data (required)_callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body object| Status Code | Description | Response Headers |
| 200 | Order cancelled | - |
public okhttp3.Call updateLoanCall(String loanId, LoanPatch loanPatch, ApiCallback _callback) throws ApiException
loanId - Loan ID (required)loanPatch - (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | Updated | - |
public Loan updateLoan(String loanId, LoanPatch loanPatch) throws ApiException
loanId - Loan ID (required)loanPatch - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Updated | - |
public ApiResponse<Loan> updateLoanWithHttpInfo(String loanId, LoanPatch loanPatch) throws ApiException
loanId - Loan ID (required)loanPatch - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Updated | - |
public okhttp3.Call updateLoanAsync(String loanId, LoanPatch loanPatch, ApiCallback<Loan> _callback) throws ApiException
loanId - Loan ID (required)loanPatch - (required)_callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body object| Status Code | Description | Response Headers |
| 200 | Updated | - |
public okhttp3.Call listLoanRepaymentsCall(String loanId, ApiCallback _callback) throws ApiException
loanId - Loan ID (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | List retrieved | - |
public List<Repayment> listLoanRepayments(String loanId) throws ApiException
loanId - Loan ID (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | List retrieved | - |
public ApiResponse<List<Repayment>> listLoanRepaymentsWithHttpInfo(String loanId) throws ApiException
loanId - Loan ID (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | List retrieved | - |
public okhttp3.Call listLoanRepaymentsAsync(String loanId, ApiCallback<List<Repayment>> _callback) throws ApiException
loanId - Loan ID (required)_callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body object| Status Code | Description | Response Headers |
| 200 | List retrieved | - |
public okhttp3.Call repayLoanCall(String loanId, RepayRequest repayRequest, ApiCallback _callback) throws ApiException
loanId - Loan ID (required)repayRequest - (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | Loan repaid | - |
public Loan repayLoan(String loanId, RepayRequest repayRequest) throws ApiException
loanId - Loan ID (required)repayRequest - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Loan repaid | - |
public ApiResponse<Loan> repayLoanWithHttpInfo(String loanId, RepayRequest repayRequest) throws ApiException
loanId - Loan ID (required)repayRequest - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Loan repaid | - |
public okhttp3.Call repayLoanAsync(String loanId, RepayRequest repayRequest, ApiCallback<Loan> _callback) throws ApiException
loanId - Loan ID (required)repayRequest - (required)_callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body object| Status Code | Description | Response Headers |
| 200 | Loan repaid | - |
public MarginApi.APIlistLoanRecordsRequest listLoanRecords(String loanId)
loanId - Loan ID (required)| Status Code | Description | Response Headers |
| 200 | List retrieved | - |
public okhttp3.Call getLoanRecordCall(String loanRecordId, String loanId, ApiCallback _callback) throws ApiException
loanRecordId - Loan record ID (required)loanId - Loan ID (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | Detail retrieved | - |
public LoanRecord getLoanRecord(String loanRecordId, String loanId) throws ApiException
loanRecordId - Loan record ID (required)loanId - Loan ID (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Detail retrieved | - |
public ApiResponse<LoanRecord> getLoanRecordWithHttpInfo(String loanRecordId, String loanId) throws ApiException
loanRecordId - Loan record ID (required)loanId - Loan ID (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Detail retrieved | - |
public okhttp3.Call getLoanRecordAsync(String loanRecordId, String loanId, ApiCallback<LoanRecord> _callback) throws ApiException
loanRecordId - Loan record ID (required)loanId - Loan ID (required)_callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body object| Status Code | Description | Response Headers |
| 200 | Detail retrieved | - |
public okhttp3.Call updateLoanRecordCall(String loanRecordId, LoanPatch loanPatch, ApiCallback _callback) throws ApiException
loanRecordId - Loan record ID (required)loanPatch - (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | Loan record updated | - |
public LoanRecord updateLoanRecord(String loanRecordId, LoanPatch loanPatch) throws ApiException
loanRecordId - Loan record ID (required)loanPatch - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Loan record updated | - |
public ApiResponse<LoanRecord> updateLoanRecordWithHttpInfo(String loanRecordId, LoanPatch loanPatch) throws ApiException
loanRecordId - Loan record ID (required)loanPatch - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Loan record updated | - |
public okhttp3.Call updateLoanRecordAsync(String loanRecordId, LoanPatch loanPatch, ApiCallback<LoanRecord> _callback) throws ApiException
loanRecordId - Loan record ID (required)loanPatch - (required)_callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body object| Status Code | Description | Response Headers |
| 200 | Loan record updated | - |
public okhttp3.Call getAutoRepayStatusCall(ApiCallback _callback) throws ApiException
_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | Current auto repayment setting | - |
public AutoRepaySetting getAutoRepayStatus() throws ApiException
ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Current auto repayment setting | - |
public ApiResponse<AutoRepaySetting> getAutoRepayStatusWithHttpInfo() throws ApiException
ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Current auto repayment setting | - |
public okhttp3.Call getAutoRepayStatusAsync(ApiCallback<AutoRepaySetting> _callback) throws ApiException
_callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body object| Status Code | Description | Response Headers |
| 200 | Current auto repayment setting | - |
public okhttp3.Call setAutoRepayCall(String status, ApiCallback _callback) throws ApiException
status - New auto repayment status. `on` - enabled, `off` - disabled (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | Current auto repayment setting | - |
public AutoRepaySetting setAutoRepay(String status) throws ApiException
status - New auto repayment status. `on` - enabled, `off` - disabled (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Current auto repayment setting | - |
public ApiResponse<AutoRepaySetting> setAutoRepayWithHttpInfo(String status) throws ApiException
status - New auto repayment status. `on` - enabled, `off` - disabled (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Current auto repayment setting | - |
public okhttp3.Call setAutoRepayAsync(String status, ApiCallback<AutoRepaySetting> _callback) throws ApiException
status - New auto repayment status. `on` - enabled, `off` - disabled (required)_callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body object| Status Code | Description | Response Headers |
| 200 | Current auto repayment setting | - |
public MarginApi.APIgetMarginTransferableRequest getMarginTransferable(String currency)
currency - Retrieved specified currency related data (required)| Status Code | Description | Response Headers |
| 200 | Successfully retrieved | - |
public okhttp3.Call listCrossMarginCurrenciesCall(ApiCallback _callback) throws ApiException
_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | List retrieved | - |
public List<CrossMarginCurrency> listCrossMarginCurrencies() throws ApiException
ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | List retrieved | - |
public ApiResponse<List<CrossMarginCurrency>> listCrossMarginCurrenciesWithHttpInfo() throws ApiException
ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | List retrieved | - |
public okhttp3.Call listCrossMarginCurrenciesAsync(ApiCallback<List<CrossMarginCurrency>> _callback) throws ApiException
_callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body object| Status Code | Description | Response Headers |
| 200 | List retrieved | - |
public okhttp3.Call getCrossMarginCurrencyCall(String currency, ApiCallback _callback) throws ApiException
currency - Currency name (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | Successfully retrieved | - |
public CrossMarginCurrency getCrossMarginCurrency(String currency) throws ApiException
currency - Currency name (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Successfully retrieved | - |
public ApiResponse<CrossMarginCurrency> getCrossMarginCurrencyWithHttpInfo(String currency) throws ApiException
currency - Currency name (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Successfully retrieved | - |
public okhttp3.Call getCrossMarginCurrencyAsync(String currency, ApiCallback<CrossMarginCurrency> _callback) throws ApiException
currency - Currency name (required)_callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body object| Status Code | Description | Response Headers |
| 200 | Successfully retrieved | - |
public okhttp3.Call getCrossMarginAccountCall(ApiCallback _callback) throws ApiException
_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | Successfully retrieved | - |
public CrossMarginAccount getCrossMarginAccount() throws ApiException
ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Successfully retrieved | - |
public ApiResponse<CrossMarginAccount> getCrossMarginAccountWithHttpInfo() throws ApiException
ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Successfully retrieved | - |
public okhttp3.Call getCrossMarginAccountAsync(ApiCallback<CrossMarginAccount> _callback) throws ApiException
_callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body object| Status Code | Description | Response Headers |
| 200 | Successfully retrieved | - |
public MarginApi.APIlistCrossMarginAccountBookRequest listCrossMarginAccountBook()
| Status Code | Description | Response Headers |
| 200 | List retrieved | - |
public MarginApi.APIlistCrossMarginLoansRequest listCrossMarginLoans(Integer status)
status - Filter by status. Supported values are 2 and 3. (required)| Status Code | Description | Response Headers |
| 200 | Successfully retrieved | - |
public okhttp3.Call createCrossMarginLoanCall(CrossMarginLoan crossMarginLoan, ApiCallback _callback) throws ApiException
crossMarginLoan - (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | Successfully borrowed | - |
public CrossMarginLoan createCrossMarginLoan(CrossMarginLoan crossMarginLoan) throws ApiException
crossMarginLoan - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Successfully borrowed | - |
public ApiResponse<CrossMarginLoan> createCrossMarginLoanWithHttpInfo(CrossMarginLoan crossMarginLoan) throws ApiException
crossMarginLoan - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Successfully borrowed | - |
public okhttp3.Call createCrossMarginLoanAsync(CrossMarginLoan crossMarginLoan, ApiCallback<CrossMarginLoan> _callback) throws ApiException
crossMarginLoan - (required)_callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body object| Status Code | Description | Response Headers |
| 200 | Successfully borrowed | - |
public okhttp3.Call getCrossMarginLoanCall(String loanId, ApiCallback _callback) throws ApiException
loanId - Borrow loan ID (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | Successfully retrieved | - |
public CrossMarginLoan getCrossMarginLoan(String loanId) throws ApiException
loanId - Borrow loan ID (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Successfully retrieved | - |
public ApiResponse<CrossMarginLoan> getCrossMarginLoanWithHttpInfo(String loanId) throws ApiException
loanId - Borrow loan ID (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Successfully retrieved | - |
public okhttp3.Call getCrossMarginLoanAsync(String loanId, ApiCallback<CrossMarginLoan> _callback) throws ApiException
loanId - Borrow loan ID (required)_callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body object| Status Code | Description | Response Headers |
| 200 | Successfully retrieved | - |
public MarginApi.APIlistCrossMarginRepaymentsRequest listCrossMarginRepayments()
| Status Code | Description | Response Headers |
| 200 | List retrieved | - |
public okhttp3.Call repayCrossMarginLoanCall(CrossMarginRepayRequest crossMarginRepayRequest, ApiCallback _callback) throws ApiException
crossMarginRepayRequest - (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | Loan repaid | - |
public List<CrossMarginLoan> repayCrossMarginLoan(CrossMarginRepayRequest crossMarginRepayRequest) throws ApiException
crossMarginRepayRequest - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Loan repaid | - |
public ApiResponse<List<CrossMarginLoan>> repayCrossMarginLoanWithHttpInfo(CrossMarginRepayRequest crossMarginRepayRequest) throws ApiException
crossMarginRepayRequest - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Loan repaid | - |
public okhttp3.Call repayCrossMarginLoanAsync(CrossMarginRepayRequest crossMarginRepayRequest, ApiCallback<List<CrossMarginLoan>> _callback) throws ApiException
crossMarginRepayRequest - (required)_callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body object| Status Code | Description | Response Headers |
| 200 | Loan repaid | - |
public okhttp3.Call getCrossMarginTransferableCall(String currency, ApiCallback _callback) throws ApiException
currency - Retrieved specified currency related data (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | Successfully retrieved | - |
public CrossMarginTransferable getCrossMarginTransferable(String currency) throws ApiException
currency - Retrieved specified currency related data (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Successfully retrieved | - |
public ApiResponse<CrossMarginTransferable> getCrossMarginTransferableWithHttpInfo(String currency) throws ApiException
currency - Retrieved specified currency related data (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Successfully retrieved | - |
public okhttp3.Call getCrossMarginTransferableAsync(String currency, ApiCallback<CrossMarginTransferable> _callback) throws ApiException
currency - Retrieved specified currency related data (required)_callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body object| Status Code | Description | Response Headers |
| 200 | Successfully retrieved | - |
Copyright © 2021. All rights reserved.