公司與事件

公司行動

提供會影響持有人權益與價格序列的公司行動資料,適合用於還原價格、報酬計算與事件調整流程。

GET/v2/datasets/corporate-actions

Overview#

公司行動 API 提供與股東權益、持有部位與價格調整直接相關的事件資料,例如股利、分割、減資、增資或其他需要納入資料處理邏輯的公司行為。

這類資料和一般公告不同。

它的重點不在於文字揭露本身,而在於是否需要影響價格序列、持有報酬、部位計算或研究樣本的解讀方式。

典型用途包括:

  • 建立還原價格與總報酬序列
  • 在回測中處理股利、分割與其他權益事件
  • 將公司行動作為資料清洗與正規化流程的一部分
  • 檢查特定期間內是否有會影響比較基準的公司事件
  • 與歷史價格、股利資料或公司事件資料一起交叉驗證
  • 如果事件日曆偏向發生了什麼,公司行動更偏向這個事件是否需要改變資料處理方式。

Request#

使用此 endpoint 時,建議:

Query Parameters#

欄位型別Required說明
tickerstringyes股票代碼,用於查詢單一公司的公司行動資料。
start_datestringno查詢起始日期。
end_datestringno查詢結束日期。
action_typestringno公司行動類型(若目前 schema 有正式支持)。
limitintegerno回傳筆數限制。
offsetintegerno分頁偏移。

Response Shape#

所有回應遵循一致結構,包含 dataset、source_role、freshness、lineage、data。

{
  "dataset": "corporate_actions",
  "source_role": "canonical",
  "freshness": "2026-04-22T11:00:00+08:00",
  "lineage": {
    "source": "TWSE",
    "ingested_at": "2026-04-22T11:00:05+08:00",
    "trace_id": "corporate_actions_2330_20260422"
  },
  "data": [
    {
      "ticker": "2330",
      "event_date": "2025-06-12",
      "action_type": "cash_dividend",
      "title": "現金股利除息",
      "cash_amount": 3.5
    }
  ]
}

Field 說明#

欄位路徑型別說明
data[].tickerstring股票代碼。
data[].event_datestring公司行動生效或公告日期。
data[].action_typestring公司行動類型。
data[].titlestring事件標題。
data[].cash_amountnumber|null現金配發或相關金額(若目前 schema 有)。
data[].rationumber|string|null配發比例、分割比例或相關比率(若目前 schema 有)。
data[].source_urlstring|null原始來源連結(若目前 schema 有)。
source_rolestring資料來源角色。
freshnessstring資料更新時間。
lineage.trace_idstring可追蹤資料處理鏈路。

Usage Notes / 使用建議#

  • 使用 ticker + event_date + action_type 作為主要識別組合。
  • 若要做還原價格,應與價格資料搭配使用。
  • 若要做總報酬或持有報酬分析,應保留現金與比例類欄位。
  • 對長期研究建議先完整抓取並落地,不要反覆即時查詢。
  • 若只需要一般事件追蹤,應改用事件日曆或公告資訊頁面。

Plan Requirement#

  • Free(限制)
  • Developer
  • Pro
  • Enterprise