查詢還款訂單信息
覆蓋範圍: 全倉槓桿 (經典帳戶)
HTTP 請求
GET /v5/spot-cross-margin-trade/repay-history
請求參數
參數 | 是否必需 | 類型 | 說明 |
---|---|---|---|
startTime | false | long | 開始時間戳 (毫秒) |
endTime | false | long | 結束時間戳 (毫秒) |
coin | false | string | 幣種信息 |
limit | false | integer | 每頁數量限制. [1 , 500 ], 默認: 500 |
響應參數
參數 | 類型 | 說明 |
---|---|---|
list | array | Object |
> accountId | string | 帳戶ID |
> coin | string | 幣種信息 |
> repaidAmount | string | 還款金額 |
> repayId | string | 還款交易ID |
> repayMarginOrderId | string | 還款單號 |
> repayTime | string | 還款交易時間戳 (毫秒) |
> transactIds | array | Object |
>> repaidInterest | string | 該筆還款訂單的利息還款金額 |
>> repaidPrincipal | string | 該筆還款訂單的本金還款金額 |
>> repaidSerialNumber | string | 借貸訂單的還款單號 |
>> transactId | string | 原始借貸交易ID |
請求示例
- HTTP
- Python
GET /v5/spot-cross-margin-trade/repay-history?coin=ETH&limit=1 HTTP/1.1
Host: api-testnet.bybit.com
X-BAPI-API-KEY: XXXXXXX
X-BAPI-TIMESTAMP: 1677755884678
X-BAPI-RECV-WINDOW: 5000
X-BAPI-SIGN: XXXXXXX
from pybit.unified_trading import HTTP
session = HTTP(
testnet=True,
api_key="XXXXX",
api_secret="XXXXX",
)
print(session.spot_margin_trade_normal_get_repayment_order_detail(
coin="ETH",
limit=1,
))
響應示例
{
"retCode": 0,
"retMsg": "success",
"result": {
"list": [
{
"accountId": "592335",
"coin": "ETH",
"repaidAmount": "10.0001",
"repayId": "19070",
"repayMarginOrderId": "1367476828218072576",
"repayTime": "1677751941000",
"transactIds": [
{
"repaidAmount": "10.0001",
"repaidInterest": "0.0001",
"repaidPrincipal": "10",
"repaidSerialNumber": "1367475973544746496",
"transactId": "21005"
}
]
}
]
},
"retExtInfo": {},
"time": 1677755885169
}