Collateral Repayment
Permission: "Spot trade"
UID rate limit: 1 req / second
info
fixed currency offset logic
- From Currency Perspective
- Orders with the closest maturity date will be sorted in descending order.
- If the maturity date is the same, the order with the higher interest rate will be prioritized.
- If the interest rates are the same, the order will be processed randomly.Orders will be processed sequentially. Within an order, interest will be repaid first, followed by principal.
- From Currency Perspective
- From Order Perspective
- Interest will be repaid first, followed by principal.
- From Order Perspective
HTTP Request
POST /v5/crypto-loan-fixed/repay-collateral
Request Parameters
Parameter | Required | Type | Comments |
---|---|---|---|
loanId | false | string | Loan contract ID. If not passed, the fixed currency offset logic will apply. |
loanCurrency | true | string | Loan currency |
collateralCoin | true | string | Collateral currencies: Use commas to separate multiple collateral currencies |
amount | true | string | Repay amount |
Response Parameters
Parameter | Type | Comments |
---|
None
Request Example
- HTTP
- Python
- Node.js
POST /v5/crypto-loan-fixed/repay-collateral HTTP/1.1
Host: api-testnet.bybit.com
X-BAPI-SIGN: XXXXXX
X-BAPI-API-KEY: XXXXXX
X-BAPI-TIMESTAMP: 1752656296791
X-BAPI-RECV-WINDOW: 5000
Content-Type: application/json
Content-Length: 50
{
"loanCurrency": "ETH",
"amount": "0.1",
"collateralCoin":"USDT"
}
Response Example
{
"retCode": 0,
"retMsg": "ok",
"result": {},
"retExtInfo": {},
"time": 1756973819393
}