public class MarginApi extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
MarginApi.APIgetCrossMarginInterestRecordsRequest |
class |
MarginApi.APIgetMarginBorrowableRequest |
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(Deprecated)
Only lent loans can be cancelled
|
okhttp3.Call |
cancelLoanAsync(String loanId,
String currency,
ApiCallback<Loan> _callback)
Cancel lending loan(Deprecated) (asynchronously)
Only lent 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(Deprecated)
Only lent 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(Deprecated)
|
okhttp3.Call |
createLoanAsync(Loan loan,
ApiCallback<Loan> _callback)
Lend or borrow(Deprecated) (asynchronously)
|
okhttp3.Call |
createLoanCall(Loan loan,
ApiCallback _callback)
Build call for createLoan
|
ApiResponse<Loan> |
createLoanWithHttpInfo(Loan loan)
Lend or borrow(Deprecated)
|
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
|
CrossMarginBorrowable |
getCrossMarginBorrowable(String currency)
Get the max borrowable amount for a specific cross margin currency
|
okhttp3.Call |
getCrossMarginBorrowableAsync(String currency,
ApiCallback<CrossMarginBorrowable> _callback)
Get the max borrowable amount for a specific cross margin currency (asynchronously)
|
okhttp3.Call |
getCrossMarginBorrowableCall(String currency,
ApiCallback _callback)
Build call for getCrossMarginBorrowable
|
ApiResponse<CrossMarginBorrowable> |
getCrossMarginBorrowableWithHttpInfo(String currency)
Get the max borrowable amount for a specific cross margin currency
|
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
|
MarginApi.APIgetCrossMarginInterestRecordsRequest |
getCrossMarginInterestRecords()
Interest records for the cross margin account
|
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)
Get the max transferable amount for a specific cross margin currency
|
okhttp3.Call |
getCrossMarginTransferableAsync(String currency,
ApiCallback<CrossMarginTransferable> _callback)
Get the max transferable amount for a specific cross margin currency (asynchronously)
|
okhttp3.Call |
getCrossMarginTransferableCall(String currency,
ApiCallback _callback)
Build call for getCrossMarginTransferable
|
ApiResponse<CrossMarginTransferable> |
getCrossMarginTransferableWithHttpInfo(String currency)
Get the max transferable amount for a specific cross margin currency
|
Loan |
getLoan(String loanId,
String side)
Retrieve one single loan detail(Deprecated)
|
okhttp3.Call |
getLoanAsync(String loanId,
String side,
ApiCallback<Loan> _callback)
Retrieve one single loan detail(Deprecated) (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(Deprecated)
|
okhttp3.Call |
getLoanRecordAsync(String loanRecordId,
String loanId,
ApiCallback<LoanRecord> _callback)
Get one single loan record(Deprecated) (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(Deprecated)
|
ApiResponse<Loan> |
getLoanWithHttpInfo(String loanId,
String side)
Retrieve one single loan detail(Deprecated)
|
MarginApi.APIgetMarginBorrowableRequest |
getMarginBorrowable(String currency)
Get the max borrowable amount for a specific margin currency(Deprecated)
|
MarginCurrencyPair |
getMarginCurrencyPair(String currencyPair)
Query one single margin currency pair(Deprecated)
|
okhttp3.Call |
getMarginCurrencyPairAsync(String currencyPair,
ApiCallback<MarginCurrencyPair> _callback)
Query one single margin currency pair(Deprecated) (asynchronously)
|
okhttp3.Call |
getMarginCurrencyPairCall(String currencyPair,
ApiCallback _callback)
Build call for getMarginCurrencyPair
|
ApiResponse<MarginCurrencyPair> |
getMarginCurrencyPairWithHttpInfo(String currencyPair)
Query one single margin currency pair(Deprecated)
|
MarginApi.APIgetMarginTransferableRequest |
getMarginTransferable(String currency)
Get the max transferable amount for a specific 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(Deprecated)
|
okhttp3.Call |
listFundingBookAsync(String currency,
ApiCallback<List<FundingBookItem>> _callback)
Order book of lending loans(Deprecated) (asynchronously)
|
okhttp3.Call |
listFundingBookCall(String currency,
ApiCallback _callback)
Build call for listFundingBook
|
ApiResponse<List<FundingBookItem>> |
listFundingBookWithHttpInfo(String currency)
Order book of lending loans(Deprecated)
|
MarginApi.APIlistLoanRecordsRequest |
listLoanRecords(String loanId)
List repayment records of a specific loan(Deprecated)
|
List<Repayment> |
listLoanRepayments(String loanId)
List loan repayment records(Deprecated)
|
okhttp3.Call |
listLoanRepaymentsAsync(String loanId,
ApiCallback<List<Repayment>> _callback)
List loan repayment records(Deprecated) (asynchronously)
|
okhttp3.Call |
listLoanRepaymentsCall(String loanId,
ApiCallback _callback)
Build call for listLoanRepayments
|
ApiResponse<List<Repayment>> |
listLoanRepaymentsWithHttpInfo(String loanId)
List loan repayment records(Deprecated)
|
MarginApi.APIlistLoansRequest |
listLoans(String status,
String side)
List all loans(Deprecated)
|
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(Deprecated)
|
okhttp3.Call |
listMarginCurrencyPairsAsync(ApiCallback<List<MarginCurrencyPair>> _callback)
List all supported currency pairs supported in margin trading(Deprecated) (asynchronously)
|
okhttp3.Call |
listMarginCurrencyPairsCall(ApiCallback _callback)
Build call for listMarginCurrencyPairs
|
ApiResponse<List<MarginCurrencyPair>> |
listMarginCurrencyPairsWithHttpInfo()
List all supported currency pairs supported in margin trading(Deprecated)
|
Loan |
mergeLoans(String currency,
String ids)
Merge multiple lending loans(Deprecated)
|
okhttp3.Call |
mergeLoansAsync(String currency,
String ids,
ApiCallback<Loan> _callback)
Merge multiple lending loans(Deprecated) (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(Deprecated)
|
List<CrossMarginLoan> |
repayCrossMarginLoan(CrossMarginRepayRequest crossMarginRepayRequest)
Cross margin repayments
When the liquidity of the currency is insufficient and the transaction risk is high, the currency will be disabled, and funds cannot be transferred.When the available balance of cross-margin is insufficient, the balance of the spot account can be used for repayment.
|
okhttp3.Call |
repayCrossMarginLoanAsync(CrossMarginRepayRequest crossMarginRepayRequest,
ApiCallback<List<CrossMarginLoan>> _callback)
Cross margin repayments (asynchronously)
When the liquidity of the currency is insufficient and the transaction risk is high, the currency will be disabled, and funds cannot be transferred.When the available balance of cross-margin is insufficient, the balance of the spot account can be used for repayment.
|
okhttp3.Call |
repayCrossMarginLoanCall(CrossMarginRepayRequest crossMarginRepayRequest,
ApiCallback _callback)
Build call for repayCrossMarginLoan
|
ApiResponse<List<CrossMarginLoan>> |
repayCrossMarginLoanWithHttpInfo(CrossMarginRepayRequest crossMarginRepayRequest)
Cross margin repayments
When the liquidity of the currency is insufficient and the transaction risk is high, the currency will be disabled, and funds cannot be transferred.When the available balance of cross-margin is insufficient, the balance of the spot account can be used for repayment.
|
Loan |
repayLoan(String loanId,
RepayRequest repayRequest)
Repay a loan(Deprecated)
|
okhttp3.Call |
repayLoanAsync(String loanId,
RepayRequest repayRequest,
ApiCallback<Loan> _callback)
Repay a loan(Deprecated) (asynchronously)
|
okhttp3.Call |
repayLoanCall(String loanId,
RepayRequest repayRequest,
ApiCallback _callback)
Build call for repayLoan
|
ApiResponse<Loan> |
repayLoanWithHttpInfo(String loanId,
RepayRequest repayRequest)
Repay a loan(Deprecated)
|
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(Deprecated)
Only `auto_renew` modification is supported currently
|
okhttp3.Call |
updateLoanAsync(String loanId,
LoanPatch loanPatch,
ApiCallback<Loan> _callback)
Modify a loan(Deprecated) (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(Deprecated)
Only `auto_renew` modification is supported currently
|
okhttp3.Call |
updateLoanRecordAsync(String loanRecordId,
LoanPatch loanPatch,
ApiCallback<LoanRecord> _callback)
Modify a loan record(Deprecated) (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(Deprecated)
Only `auto_renew` modification is supported currently
|
ApiResponse<Loan> |
updateLoanWithHttpInfo(String loanId,
LoanPatch loanPatch)
Modify a loan(Deprecated)
Only `auto_renew` modification is supported currently
|
public MarginApi()
public MarginApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
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 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 - Retrieve data of the specified currency (required)| Status Code | Description | Response Headers |
| 200 | Successfully retrieved | - |
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 - Retrieve data of the specified currency (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 - Retrieve data of the specified currency (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 - Retrieve data of the specified currency (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 - Retrieve data of the specified currency (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.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 - Retrieve data of the specified currency (required)ids - A comma-separated (,) list of IDs of the loans lent. Maximum of 20 IDs are allowed in a 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 - Retrieve data of the specified currency (required)ids - A comma-separated (,) list of IDs of the loans lent. Maximum of 20 IDs are allowed in a 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 - Retrieve data of the specified currency (required)ids - A comma-separated (,) list of IDs of the loans lent. Maximum of 20 IDs are allowed in a 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 - Retrieve data of the specified currency (required)ids - A comma-separated (,) list of IDs of the loans lent. Maximum of 20 IDs are allowed in a 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 - Retrieve data of the specified currency (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 - Retrieve data of the specified currency (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 - Retrieve data of the specified currency (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 - Retrieve data of the specified currency (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 MarginApi.APIgetMarginBorrowableRequest getMarginBorrowable(String currency)
currency - Retrieve data of the specified currency (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 MarginApi.APIgetCrossMarginInterestRecordsRequest getCrossMarginInterestRecords()
| Status Code | Description | Response Headers |
| 200 | Successfully retrieved | - |
public okhttp3.Call getCrossMarginTransferableCall(String currency, ApiCallback _callback) throws ApiException
currency - Retrieve data of the specified currency (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 - Retrieve data of the specified currency (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 - Retrieve data of the specified currency (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 - Retrieve data of the specified currency (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 getCrossMarginBorrowableCall(String currency, ApiCallback _callback) throws ApiException
currency - Retrieve data of the specified currency (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | Successfully retrieved | - |
public CrossMarginBorrowable getCrossMarginBorrowable(String currency) throws ApiException
currency - Retrieve data of the specified currency (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<CrossMarginBorrowable> getCrossMarginBorrowableWithHttpInfo(String currency) throws ApiException
currency - Retrieve data of the specified currency (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 getCrossMarginBorrowableAsync(String currency, ApiCallback<CrossMarginBorrowable> _callback) throws ApiException
currency - Retrieve data of the specified currency (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 © 2023. All rights reserved.