查詢固定利率借款合約信息
信息
- 結果按
borrowTime時間倒序返回。
HTTP 請求
GET/v5/spot-margin-trade/fixedborrow-contract-info請求參數
| 參數 | 是否必需 | 類型 | 說明 |
|---|---|---|---|
| orderId | false | string | 借款訂單 ID |
| orderCurrency | false | string | 借款幣種 |
| term | false | string | 借款期限。7:7天;14:14天;30:30天;90:90天;180:180天 |
| limit | false | string | 每頁返回數量,[1, 100],默認:10 |
| cursor | false | string | 翻頁游標,使用上一次響應中的 nextPageCursor 獲取下一頁數據 |
響應參數
| 參數 | 類型 | 說明 |
|---|---|---|
| list | array | Object |
| > annualRate | string | 借款年化利率 |
| > borrowCurrency | string | 借款幣種 |
| > borrowTime | string | 借款時間戳 |
| > interestPaid | string | 已還利息 |
| > loanId | string | 借款合約 ID |
| > orderId | string | 借款訂單 ID |
| > repaymentTime | string | 還款時間 |
| > residualPenaltyInterest | string | 未還利息 |
| > residualPrincipal | string | 未還本金 |
| > status | integer | 借款合約狀態。1:未還款;2:已全部還款;3:已逾期 |
| > term | string | 借款期限。7:7天;14:14天;30:30天;90:90天;180:180天 |
| > repayType | string | 1:自動還款;2:轉為活期借款;0:不自動還款(兼容舊訂單) |
| > strategyType | string | PARTIAL:允許部分成交;FULL:僅允許全部成交 |
| nextPageCursor | string | 參考請求參數 cursor |
請求示例
- HTTP
- Python
- Node.js
GET /v5/spot-margin-trade/fixedborrow-contract-info?orderCurrency=USDT&limit=10 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
響應示例
{
"retCode": 0,
"retMsg": "success",
"result": {
"list": [
{
"annualRate": "1.000000000000000000",
"borrowCurrency": "USDT",
"borrowTime": "1764162490000",
"interestPaid": "1.065753424657534247",
"loanId": "2092341042506646784",
"orderId": "FIXED_BORROW_a17089fc526441faa52eb99b0b9feb69185",
"repaymentTime": "1764288000000",
"residualPenaltyInterest": "0",
"residualPrincipal": "0.000000000000000000",
"status": 3,
"term": "1",
"repayType": "1",
"strategyType": "PARTIAL"
},
{
"annualRate": "1.000000000000000000",
"borrowCurrency": "USDT",
"borrowTime": "1764149170000",
"interestPaid": "0.030136986301369864",
"loanId": "2092229306860452864",
"orderId": "FIXED_BORROW_a17089fc526441faa52eb99b0b9feb69185",
"repaymentTime": "1764244800000",
"residualPenaltyInterest": "0",
"residualPrincipal": "0.000000000000000000",
"status": 3,
"term": "1",
"repayType": "1",
"strategyType": "PARTIAL"
},
{
"annualRate": "1.000000000000000000",
"borrowCurrency": "USDT",
"borrowTime": "1764120790000",
"interestPaid": "1.643835616438356165",
"loanId": "2091991237922142464",
"orderId": "FIXED_BORROW_a17089fc526441faa52eb99b0b9feb69185",
"repaymentTime": "1764244800000",
"residualPenaltyInterest": "0",
"residualPrincipal": "0.000000000000000000",
"status": 3,
"term": "1",
"repayType": "1",
"strategyType": "PARTIAL"
}
],
"nextPageCursor": "0"
},
"retExtInfo": {},
"time": 1775617311081
}