查詢還款信息
提示
- 默認查詢過去2年的數據
- 最多支持查詢過去2年的數據
HTTP 請求
GET /v5/ins-loan/repaid-history
請求參數
參數 | 是否必須 | 類型 | 說明 |
---|---|---|---|
startTime | false | integer | 開始時間戳 (毫秒) |
endTime | false | integer | 結束時間戳 (毫秒) |
limit | false | integer | 返回數量限制. [1 , 100 ]. 默認: 100 |
返回參數
參數 | 類型 | 說明 |
---|---|---|
repayInfo | array | Object |
> repayOrderId | string | 還款訂單號 |
> repaidTime | string | 還款時間(毫秒) |
> token | string | 還款幣種 |
> quantity | string | 還款本金 |
> interest | string | 還款利息 |
> businessType | string | 還款類型. 1 :正常還款; 2 :系統強平還款 |
> status | string | 1 :還款成功; 2 :還款失敗 |
Request Example
- HTTP
- Python
- Node.js
GET /v5/ins-loan/repaid-history HTTP/1.1
Host: api-testnet.bybit.com
X-BAPI-SIGN-TYPE: 2
X-BAPI-API-KEY: XXXXX
X-BAPI-TIMESTAMP: 1678687944725
X-BAPI-RECV-WINDOW: 5000
X-BAPI-SIGN: XXXXX
const { RestClientV5 } = require('bybit-api');
const client = new RestClientV5({
testnet: true,
key: 'apikey',
secret: 'apisecret',
});
client
.getInstitutionalLendingRepayOrders({
limit: 100,
})
.then((response) => {
console.log(response);
})
.catch((error) => {
console.error(error);
});
Response Example
{
"retCode": 0,
"retMsg": "",
"result": {
"repayInfo": [
{
"repayOrderId": "8189",
"repaidTime": "1663126393000",
"token": "USDT",
"quantity": "30000",
"interest": "0",
"businessType": "1",
"status": "1"
}
]
},
"retExtInfo": {},
"time": 1669366648366
}