跳至主要内容

查詢借貸訂單

覆蓋範圍: 全倉槓桿 (經典帳戶)

HTTP 請求

GET /v5/spot-cross-margin-trade/orders

請求參數

參數是否必需類型說明
startTimefalselong開始時間戳 (毫秒)
endTimefalselong結束時間戳 (毫秒)
coinfalsestring幣種名稱
statusfalseinteger訂單狀態
  • 0(默認):查詢所有狀態
  • 1:查詢未還清
  • 2:查詢已還清
limitfalseinteger每頁數量限制. [1, 500]. 默認: 500

響應參數

參數類型說明
listarrayObject
> accountIdstring帳戶ID
> coinstring幣種名稱
> createdTimenumber借貸訂單創建時間戳 (毫秒)
> idstring借貸交易ID
> interestAmountstring總利息
> interestBalancestring未還利息
> loanAmountstring借貸金額
> loanBalancestring未還本金
> remainAmountstring未還金額總和=未還利息+未還本金
> statusinteger訂單狀態 1:未還清, 2:已還清
> typeinteger訂單類型 1: 手動借貸, 2: 自動借貸

請求示例

GET /v5/spot-cross-margin-trade/orders?coin=ETH&limit=1&status=2 HTTP/1.1
Host: api-testnet.bybit.com
X-BAPI-API-KEY: XXXXXX
X-BAPI-TIMESTAMP: 1677754328650
X-BAPI-RECV-WINDOW: 5000
X-BAPI-SIGN: XXXXXX

響應示例

{
"retCode": 0,
"retMsg": "success",
"result": {
"list": [
{
"accountId": "592335",
"coin": "ETH",
"createdTime": 1677751839000,
"id": "21005",
"interestAmount": "0.0001",
"interestBalance": "0",
"loanAmount": "10",
"loanBalance": "0",
"remainAmount": "0",
"status": 2,
"type": 1
}
]
},
"retExtInfo": {},
"time": 1677754329096
}