AI agent?先讀 /llms.txt 取得全站索引。
市場與價格
技術指標——由官方價格預先計算的常用技術訊號(移動平均、RSI、MACD),每檔股票每交易日一列。
GET /v2/datasets/technical-indicators技術指標是台灣市場資料集,來源為 TWSE / TPEx,由 TW Market Data 以 GET /v2/datasets/technical-indicators 提供。
technical-indicators 為推導型資料集:由官方 TWSE/TPEx 日價格計算標準技術訊號,讓 agent 無須自行維護滾動視窗。lineage 欄位回指底層官方價格,每個指標值可重現而非黑箱。
| 欄位 | 型別 | 說明 |
|---|---|---|
market | string | |
indicator_basis | string | |
close | number | |
ma_5 | number | |
ma_20 | number | |
ma_60 | number | |
rsi_14 | null | 14 日相對強弱指標(推導)。 |
macd_signal | null | |
daily_return | number | |
return_5d | number | |
return_20d | number | |
volatility_20d | number | |
volume_avg_20 | number | |
open | null | |
high | null | |
low | null | |
volume | number | |
adjusted_close | null | |
price_source | null | |
symbol | string | 股票代碼。 |
as_of_date | string | |
date | string | 交易日。 |
macd | null | MACD 線(推導)。 |
macd_hist | null |
| 列數 | 9,182,007 |
| 涵蓋起訖 | 1994-01-05 – 2026-08-21 |
| 分級 | 衍生 |
| 量測時間 | 2026-09-01取自資料集登錄表 |
此為本端點的真實回應。資料列位於 "rows" 之下,來源資訊如下方所示;各資料集形狀不盡相同,請以本頁為準。
{
"dataset": "technical_indicators",
"rows": [
{
"market": "TWSE",
"indicator_basis": "close",
"close": 409,
"ma_5": 411.1,
"ma_20": 395.075,
"ma_60": 317.375,
"rsi_14": null,
"macd_signal": null,
"daily_return": 0.02377972,
"return_5d": 0.07208388,
"return_20d": 0.18722787,
"volatility_20d": 0.05136485,
"volume_avg_20": 4582847.1,
"open": null,
"high": null,
"low": null,
"volume": 7057925,
"adjusted_close": null,
"price_source": null,
"provider": "twse",
"source_role": "derived_from_twse_price",
"lineage": {
"market": "TWSE",
"provider": "twse",
"data_gaps": {},
"feature_set": "stage0",
"source_role": "derived_from_twse_price",
"source_table": "normalized_twse_daily_prices",
"target_dates": [
"2026-05-28"
],
"warmup_start": "2026-02-01",
"artifact_only": false,
"tpex_excluded": true,
"formula_version": "stage0_v1",
"indicator_basis": "close",
"controlled_write": true
},
"updated_at": "2026-05-30T12:01:05.575632",
"symbol": "3030",
"as_of_date": "2026-05-28",
"date": "2026-05-28",
"macd": null,
"macd_hist": null
},
{
"market": "TWSE",
"indicator_basis": "close",
"close": 399.5,
"ma_5": 405.6,
"ma_20": 391.85,
"ma_60": 314.65,
"rsi_14": null,
"macd_signal": null,
"daily_return": -0.02442002,
"return_5d": 0.15129683,
"return_20d": 0.21984733,
"volatility_20d": 0.0521054,
"volume_avg_20": 4565880.85,
"open": null,
"high": null,
"low": null,
"volume": 5881676,
"adjusted_close": null,
"price_source": null,
"provider": "twse",
"source_role": "derived_from_twse_price",
"lineage": {
"market": "TWSE",
"provider": "twse",
"data_gaps": {},
"feature_set": "stage0",
"source_role": "derived_from_twse_price",
"source_table": "normalized_twse_daily_prices",
"target_dates": [
"2026-05-12",
"2026-05-13",
"2026-05-14"
],
"warmup_start": "2023-03-01",
"artifact_only": false,
"tpex_excluded": true,
"formula_version": "stage0_v1",
"indicator_basis": "close",
"controlled_write": true
},
"updated_at": "2026-05-28T12:48:44.542130",
"symbol": "3030",
"as_of_date": "2026-05-27",
"date": "2026-05-27",
"macd": null,
"macd_hist": null
}
],
"count": 50
}擷取自 2026-07-20 的線上 API。
以下欄位會隨資料一併回傳,記錄這一列的來源。它們屬於出處而非本資料集要講的事實,因此列在這裡而不進欄位表。
providersource_rolelineageupdated_at本服務部分資料取自政府資料開放平臺(data.gov.tw),依「政府資料開放授權條款-第1版」授權利用。資料提供機關:臺灣證券交易所、證券櫃檯買賣中心、臺灣期貨交易所、臺灣集中保管結算所、國家發展委員會、中央銀行、經濟部統計處、財政部關務署。本服務之加值處理、衍生計算與呈現方式由 TWMD 負責,與各資料提供機關無涉。
TW Market Data. (n.d.). 技術指標 [Data set]. TW Market Data. Retrieved 2026-09-05, from https://twmarketdata.com/zh-TW/docs/api/market-prices/technical-indicators
版本取自資料集自己的 as_of,不是這一頁的產生日期。沒有 as_of 的資料集就不列這個欄位,不會補一個看起來合理的值。 驗證簽章
可與本資料集對齊的其他資料集。每組都標出可用來 join 的欄位,規劃跨表查詢時不必自己猜。
curl "https://api.twmarketdata.com/v2/datasets/technical-indicators?symbol=3030" \
-H "X-API-Key: sk_live_..."| 參數 | 必填 | 型別 | 說明 |
|---|---|---|---|
symbol | 是 | string | 股票代碼,例如 2330。 |
start_date | 否 | string (YYYY-MM-DD) | 查詢起始日期。 |
end_date | 否 | string (YYYY-MM-DD) | 查詢結束日期。 |
limit | 否 | integer | 回傳筆數上限。 |
import requests
resp = requests.get(
"https://api.twmarketdata.com/v2/datasets/technical-indicators",
params={"symbol": "3030"},
headers={"X-API-Key": "sk_live_..."},
)
resp.raise_for_status()
print(resp.json()["rows"])此端點為 GET /v2/datasets/technical-indicators。完整機器可讀 schema(參數、認證、回應封裝)見 OpenAPI spec。