查詢交割紀錄 (期權)
查詢期權交割紀錄, 返回結果按照deliveryTime降序排列
HTTP 請求
GET /unified/v3/private/delivery-record
請求參數
| 參數 | 是否必需 | 類型 | 說明 |
|---|---|---|---|
| category | true | string | 產品類型. option |
| symbol | false | string | 合約名稱 |
| expDate | false | string | 到期日. 格式: 25MAR22. 默認: 返回所有 |
| direction | false | string | prev: 前一頁, next: 後一頁. 默認: next |
| limit | false | integer | 每頁數量限制. [1, 50]. 默認: 20 |
| cursor | false | string | 游標,用於翻頁 |
響應參數
| 參數 | 類型 | 說明 |
|---|---|---|
| nextPageCursor | string | 游標,用於翻頁 |
| category | string | 產品類型 |
| list | array | Object |
| > symbol | string | 合約名稱 |
| > side | string | 方向. Buy,Sell |
| > strike | string | 行權價 |
| > fee | string | 手續費,正數表支出,負數表收取 |
| > position | string | 交割數量 |
| > deliveryTime | number | 交割時間戳 (毫秒) |
| > deliveryPrice | string | 交割價格 |
| > deliveryRpl | string | 交割已實現盈虧 |
Request Example
GET /unified/v3/private/delivery-record?category=option&limit=5 HTTP/1.1
Host: api-testnet.bybit.com
X-BAPI-SIGN: XXXXX
X-BAPI-API-KEY: XXXXX
X-BAPI-TIMESTAMP: 1672020598623
X-BAPI-RECV-WINDOW: 5000
Response Example
{
"retCode": 0,
"retMsg": "Success",
"result": {
"nextPageCursor": "45%3A0%2C45%3A0",
"category": "option",
"list": [
{
"symbol": "BTC-29JUL22-27000-C",
"side": "Sell",
"deliveryTime": 1659081601928,
"strike": "27000",
"fee": "0.00000000",
"position": "0.0300",
"deliveryPrice": "23927.85304688",
"deliveryRpl": "0.00000000"
}
]
},
"retExtInfo": {},
"time": 1672020600013
}