Margin & Borrow/Repay
Margin & Borrow/Repay
Get Repayable Coins
Rate limit: 10/sec/UID
Query repayable coins.
Permission: UTA mgt. (read)
Get Repayable Coins › Response Parameters
Successful response
codemsgrequestTimeRepayable coin list
maxSelectionMaximum number of coins that can be selected for repayment
Repay
Rate limit: 5/sec/UID
This endpoint enables manual repayment in the Unified Trading Account.
Permission: UTA mgt. (read & write)
Repay › Request Parameters
repayableCoinListRepayable coin list
paymentCoinListPayment coin list
Repay › Response Parameters
Successful response
codemsgrequestTimeresultRepayment result
YES/NO
repayAmountRepayment amount
Get Convert Records
Rate limit: 20/sec/UID
Query convert records within the last 90 days.
Permission: UTA mgt. (read)
Request Parameters
fromCoinFrom coin (source coin)
It refers to the coin being converted
toCoinTo coin (target coin)
It refers to the coin being converted into (received)
startTimeStart timestamp
A Unix timestamp in milliseconds e.g.,1597026383085
The access window is 90 days
endTimeEnd timestamp
A Unix timestamp in milliseconds e.g.,1597026383185
The time range between startTime and endTime must not exceed 30 days
limitLimit per page
Default:100. Maximum:100
cursorCursor
Pagination is implemented by omitting the cursor in the first query and applying the cursor from the previous query for subsequent pages
Get Convert Records › Response Parameters
Successful response
codemsgrequestTimeList
cursorCursor
Borrow
Rate limit: 1/sec/UID
Manually borrow a specified amount of a specified coin. Only applicable to the advanced mode or delta-neutral mode, and only available when the manual repayment mode is enabled.
Permission: UTA trade
Borrow › Request Parameters
coinCoin to borrow
Must be a coin supported for borrowing under UTA
amountAmount to borrow
clientOidCustom borrow order ID
Borrow › Response Parameters
Successful response
codemsgrequestTimeorderIdBorrow order ID
clientOidCustom borrow order ID
Get Max Borrowable
Rate limit: 10/sec/UID
Query the maximum borrowable amount for each coin.
Permission: UTA mgt. (read)
Request Parameters
coinCoin
Get Max Borrowable › Response Parameters
Successful response
codemsgrequestTimemaxBorrowableMaximum manual borrowable
Set Repay Mode
Rate limit: 1/sec/UID
Set the repayment mode for manual borrowing. Supports both manual and automatic repayment.
Permission: UTA mgt. (read & write)
Set Repay Mode › Request Parameters
repayModeRepayment mode
auto Automatic repayment
manual Manual repayment
Account (UID)-level setting, not coin-specific; the master account and each sub-account maintain this setting independently, with no inheritance or linkage between them
Set Repay Mode › Response Parameters
Successful response
codemsgrequestTimedataNo response fields
