跳轉到主要內容
GET
/
api
/
market-data
/
quote
/
trades
獲取成交明細
curl --request GET \
  --url https://openapi.fcontext.com/api/market-data/quote/trades \
  --header 'x-api-key: <api-key>'
{
  "trades": [
    {
      "price": "<string>",
      "volume": "<string>",
      "timestamp": "2023-11-07T05:31:56Z",
      "tradeType": "<string>",
      "direction": 123,
      "tradeSession": 123
    }
  ]
}

授權

x-api-key
string
header
必填

在帳戶設置中生成的 Financial Context key。請以 x-api-key: <key> 形式發送。

查詢參數

symbol
string
必填
count
integer
預設值:20

要返回的成交記錄數,預設 20,最大 1000。

必填範圍: 1 <= x <= 1000

回應

成交列表

trades
object[]