跳至主要内容

查詢還款紀錄

權限: "現貨交易"

信息
  • 支持查詢過去6個月的還款紀錄
  • 僅返還交易成功的還款紀錄

HTTP 請求

GET /v5/crypto-loan/repayment-history

請求參數

參數是否必需類型說明
orderIdfalsestring借貸訂單ID
repayIdfalsestring還款交易ID
loanCurrencyfalsestring借貸幣種
limitfalsestring每頁數量限制. [1, 100]. 默認: 10
cursorfalsestring游標,用於分頁

響應參數

參數類型說明
listarrayObject
> collateralCurrencystring質押幣種
> collateralReturnstring因次還款而返還的質押金額. 如果本次還款操作沒有全部還清借貸, 那麼系統不會主動返還質押金
> loanCurrencystring借貸幣種
> loanTermstring借貸期限, 7, 14, 30, 90, 180天, 活期總是""
> orderIdstring借貸訂單ID
> repayAmountstring本次還款金額
> repayIdstring還款交易ID
> repayStatusinteger還款狀態, 1: 成功; 2: 進行中
> repayTimestring還款時間
> repayTypestring還款類型, 1: 用戶主動還款; 2: 強平導致的還款
nextPageCursorstring下一頁游標

請求示例

GET /v5/crypto-loan/repayment-history?repayId=1794271131730737664 HTTP/1.1
Host: api-testnet.bybit.com
X-BAPI-SIGN: XXXXXX
X-BAPI-API-KEY: XXXXXX
X-BAPI-TIMESTAMP: 1728633716794
X-BAPI-RECV-WINDOW: 5000

響應示例

{
"retCode": 0,
"retMsg": "request.success",
"result": {
"list": [
{
"collateralCurrency": "BTC",
"collateralReturn": "0",
"loanCurrency": "USDT",
"loanTerm": "",
"orderId": "1794267532472646144",
"repayAmount": "100",
"repayId": "1794271131730737664",
"repayStatus": 1,
"repayTime": "1728629786875",
"repayType": "1"
}
],
"nextPageCursor": ""
},
"retExtInfo": {},
"time": 1728633717935
}