Skip to main content

Collateral Repayment

Permission: "Spot trade"
UID rate limit: 1 req / second

info

fixed currency offset logic

    1. 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.
    1. From Order Perspective
      • Interest will be repaid first, followed by principal.

HTTP Request

POST /v5/crypto-loan-fixed/repay-collateral

Request Parameters

ParameterRequiredTypeComments
loanIdfalsestringLoan contract ID. If not passed, the fixed currency offset logic will apply.
loanCurrencytruestringLoan currency
collateralCointruestringCollateral currencies: Use commas to separate multiple collateral currencies
amounttruestringRepay amount

Response Parameters

ParameterTypeComments

None

Request Example

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
}