Intraday Volumes BETA
取得期權分價量表(依代碼查詢)
GET /intraday/volumes/{symbol}
Parameters
| Name | Type | Description | 
|---|---|---|
| symbol* | string | 期權代碼 | 
| session | string | 交易時段,可選 afterhours夜盤 | 
Response
| Name | Type | Description | 
|---|---|---|
| date* | string | 日期 | 
| type* | string | 期權類型 | 
| exchange* | string | 交易所 | 
| symbol* | string | 商品代碼 | 
| data* | object[] | 分價量表 | 
| data[0].price | number | 成交價 | 
| data[0].volume | number | 該成交價之累計成交量 | 
Example
- cURL
- Python
- Node.js
curl -X 'GET' \
  'https://api.fugle.tw/marketdata/v1.0/futopt/intraday/volumes/CDFC5' \
  -H 'X-API-KEY: <YOUR_API_KEY>'
from fugle_marketdata import RestClient
client = RestClient(api_key = 'YOUR_API_KEY')
futopt = client.futopt
futopt.intraday.volumes(symbol='CDFC5')
const { RestClient } = require("@fugle/marketdata");
const client = new RestClient({ apiKey: "YOUR_API_KEY" });
client.futopt.intraday
  .volumes({ symbol:"CDFC5" })
  .then((data) => console.log(data));
Response Body:
{
  "date": "2024-06-18",
  "type": "FUTURE",
  "exchange": "TAIFEX",
  "symbol": "CDFC5",
  "data": [
    {
      "price": 971,
      "volume": 2
    },
    {
      "price": 968,
      "volume": 3
    },
    {
      "price": 967,
      "volume": 1
    }
  ]
}