Intraday Quote BETA
取得期權即時報價(依商品代碼查詢)
GET /intraday/quote/{symbol}
Parameters
Name | Type | Description |
---|---|---|
symbol * | string | 商品代碼 |
session | string | 交易時段,可選 afterhours 盤後交易 |
Response
Name | Type | Description |
---|---|---|
date * | string | 日期 |
type * | string | 期權類型 |
exchange * | string | 交易所 |
symbol * | string | 商品代碼 |
name * | string | 商品名稱 |
previousClose | number | 昨日收盤價 |
openPrice | number | 開盤價 |
openTime | number | 開盤價成交時間 |
highPrice | number | 最高價 |
highTime | number | 最高價成交時間 |
lowPrice | number | 最低價 |
lowTime | number | 最低價成交時間 |
closePrice | number | 收盤價(最後成交價) |
closeTime | number | 收盤價(最後成交價)成交時間 |
avgPrice | number | 當日成交均價 |
change | number | 最後成交價漲跌 |
changePercnet | number | 最後成交價漲跌幅 |
amplitude | number | 當日振幅 |
lastPrice | number | 最後一筆成交價(含試撮) |
lastSize | number | 最後一筆成交數量(含試撮) |
total | object | 統計時間 |
total.tradeVolume | number | 累計成交量 |
total.totalBidMatch | number | 累計委買成交筆數 |
total.totalAskMatch | number | 累計委賣成交筆數 |
lastTrade | object | 最後一筆成交資訊 |
lastTrade.bid | object | 最後一筆成交買價 |
lastTrade.ask | object | 最後一筆成交賣價 |
lastTrade.price | number | 最後一筆成交價格 |
lastTrade.size | number | 最後一筆成交數量 |
lastTrade.time | number | 最後一筆成交時間 |
lastTrade.serial | number | 最後一筆成交流水號 |
serial | number | 流水號 |
lastUpdated | number | 最後異動時間 |
Example
- cURL
- Python
- Node.js
curl -X 'GET' \
'https://api.fugle.tw/marketdata/v1.0/futopt/intraday/quote/TXFC5' \
-H 'X-API-KEY: <YOUR_API_KEY>'
from fugle_marketdata import RestClient
client = RestClient(api_key = 'YOUR_API_KEY')
futopt = client.futopt
futopt.intraday.quote(symbol='TXFC5')
const { RestClient } = require("@fugle/marketdata");
const client = new RestClient({ apiKey: "YOUR_API_KEY" });
client.futopt.intraday
.quote({ symbol:"TXFC5" })
.then((data) => console.log(data));
Response Body:
{
"date": "2024-10-22",
"type": "FUTURE",
"exchange": "TAIFEX",
"symbol": "TXFC5",
"name": "臺股期貨035",
"previousClose": 23640,
"openPrice": 23631,
"openTime": 1729557900100000,
"highPrice": 23655,
"highTime": 1729574996621000,
"lowPrice": 23480,
"lowTime": 1729559107582000,
"closePrice": 23655,
"closeTime": 1729574996621000,
"avgPrice": 23597.5,
"change": 15,
"changePercent": 0.06,
"amplitude": 0.74,
"lastPrice": 23655,
"lastSize": 1,
"total": {
"tradeVolume": 28,
"totalBidMatch": 22,
"totalAskMatch": 27,
"time": 1729574996621000
},
"lastTrade": {
"bid": 23622,
"ask": 23655,
"price": 23655,
"size": 1,
"time": 1729574996621000,
"serial": "00218421"
},
"serial": 218421,
"lastUpdated": 1729574996621000
}