Renew Fixed-Rate Borrow
HTTP Request
POST/v5/spot-margin-trade/fixedborrow-renewRequest Parameters
| Parameter | Required | Type | Comments |
|---|---|---|---|
| loanId | true | string | Loan ID |
| qty | false | string | Renewal quantity. If not specified, the entire remaining amount will be renewed; if specified, the renewal will be based on the entered quantity |
Response Parameters
| Parameter | Type | Comments |
|---|---|---|
| result | string | Success / Failure |
Request Example
- HTTP
- Python
- Node.js
POST /v5/spot-margin-trade/fixedborrow-renew HTTP/1.1
Host: api.bybit.com
X-BAPI-SIGN: XXXXX
X-BAPI-API-KEY: xxxxxxxxxxxxxxxxxx
X-BAPI-TIMESTAMP: 1692696840996
X-BAPI-RECV-WINDOW: 5000
Content-Type: application/json
{
"loanId": "2092341042506646784"
}
from pybit.unified_trading import HTTP
session = HTTP(
testnet=True,
api_key="xxxxxxxxxxxxxxxxxx",
api_secret="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
)
print(session.spot_margin_trade_fixed_borrow_renew(
loanId="2092341042506646784"
))
Response Example
{
"retCode": 0,
"retMsg": "success",
"result": "Success",
"retExtInfo": {},
"time": 1775617874744
}