平臺交易歷史數據
HTTP 請求
GET /spot/v3/public/quote/trades
請求參數
| 參數 | 是否必須 | 類型 | 說明 |
|---|---|---|---|
| symbol | true | string | 幣對名稱 |
| limit | false | integer | 返回數量限制. [1, 60]. 默認: 60 |
返回參數
| 參數 | 類型 | 說明 |
|---|---|---|
| list | array | Object |
| > price | string | 價格 |
| > time | number | 當前Unix時間戳(毫秒) |
| > qty | string | 交易數量 |
| > isBuyerMaker | integer | 0:賣單或者taker單, 1:買方maker單 |
| > type | string | 0:普通交易, 1:Paradigm 大宗交易 |
請求示例
curl --location --request GET 'https://api-testnet.bybit.com/spot/v3/public/quote/trades?symbol=BTCUSDT&limit=1'
響應示例
{
"retCode": 0,
"retMsg": "OK",
"result": {
"list": [
{
"price": "21170.14",
"time": 1659429793926,
"qty": "0.907276",
"isBuyerMaker": 0,
"type": "0"
}
]
},
"retExtInfo": {},
"time": 1659429835311
}