public interface IsolatedAPI
| 限定符和类型 | 方法和说明 |
|---|---|
IsolatedBorrowResponse |
borrow(String symbol,
String currency,
BigDecimal size,
String borrowStrategy,
BigDecimal maxRate,
String period)
This API endpoint returns the info on a single isolated margin account of the current user.
|
IsolatedAssetResponse |
getAccount(String symbol)
This API endpoint returns the info on a single isolated margin account of the current user.
|
IsolatedAccountResponse |
getAccounts(String balanceCurrency)
This API endpoint returns all isolated margin accounts of the current user.
|
List<IsolatedSymbolResponse> |
getSymbols()
This API endpoint returns the current isolated margin trading pair configuration.
|
Pagination<IsolatedBorrowOutstandingResponse> |
queryBorrowOutstanding(String symbol,
String currency,
int pageSize,
int currentPage)
This API endpoint is used to query the outstanding repayment records of isolated margin positions.
|
Pagination<IsolatedBorrowRepaidResponse> |
queryBorrowRepaid(String symbol,
String currency,
int pageSize,
int currentPage)
This API endpoint is used to query the repayment records of isolated margin positions.
|
void |
repayAll(String symbol,
String currency,
BigDecimal size,
String seqStrategy)
This API endpoint is used to initiate quick repayment for isolated margin accounts
|
void |
repaySingle(String symbol,
String currency,
BigDecimal size,
String loanId)
This API endpoint is used to initiate quick repayment for single margin accounts
|
List<IsolatedSymbolResponse> getSymbols() throws IOException
IOExceptionIsolatedAccountResponse getAccounts(String balanceCurrency) throws IOException
balanceCurrency - [Optional] The pricing coin, currently only supports USDT, KCS, and BTC. Defaults to BTC if no value is passed.IOExceptionIsolatedAssetResponse getAccount(@Path(value="symbol") String symbol) throws IOException
symbol - Trading pair, e.g.: BTC-USDTIOExceptionIsolatedBorrowResponse borrow(String symbol, String currency, BigDecimal size, String borrowStrategy, BigDecimal maxRate, String period) throws IOException
symbol - Trading pair, e.g.: BTC-USDTcurrency - Borrowed coin typesize - Borrowed amountborrowStrategy - Borrowing strategy: FOK, IOCmaxRate - [Optional] Max interest rate, defaults to all interest rates if left blankperiod - [Optional] The term in days. Defaults to all terms if left blank. 7,14,28IOExceptionPagination<IsolatedBorrowOutstandingResponse> queryBorrowOutstanding(String symbol, String currency, int pageSize, int currentPage) throws IOException
symbol - [Optional] Trading pair, e.g.: BTC-USDTcurrency - [Optional] Coin typepageSize - [Optional] Page size [10-50]currentPage - [Optional] Current page number [1-100]IOExceptionPagination<IsolatedBorrowRepaidResponse> queryBorrowRepaid(String symbol, String currency, int pageSize, int currentPage) throws IOException
symbol - [Optional] Trading pair, e.g.: BTC-USDTcurrency - [Optional] Coin typepageSize - [Optional] Page size [10-50]currentPage - [Optional] Current page number [1-100]IOExceptionvoid repayAll(String symbol, String currency, BigDecimal size, String seqStrategy) throws IOException
symbol - Trading pair, e.g.: BTC-USDTcurrency - Repayment coin typesize - Repayment amountseqStrategy - Repayment sequence strategy, RECENTLY_EXPIRE_FIRST: Maturity date priority (the loan with the closest maturity is repaid first), HIGHEST_RATE_FIRST: Interest rate priority (the loan with the highest interest rate is repaid first)IOExceptionvoid repaySingle(String symbol, String currency, BigDecimal size, String loanId) throws IOException
symbol - Trading pair, e.g.: BTC-USDTcurrency - Repayment coin typesize - Repayment amountloanId - Trade order number; when this field is configured, the sequence strategy is invalidatedIOExceptionCopyright © 2023. All rights reserved.