twse_get_dataset
Retrieve TWSE dataset content with filtering by security code, field matching, column projection, and pagination to limit results.
Instructions
取得證交所資料集內容,支援伺服器端過濾、欄位投影與分頁。
證交所每個 endpoint 都是一次回整份資料(可能上千筆),所以務必用 code / match / fields 縮小範圍,不要無條件拉全部。
Args: dataset_id: 資料集代號,例如 "exchangeReport/STOCK_DAY_ALL"。 code: 證券/基金代號,例如 "0050"。會自動偵測該表的代號欄位名稱。 match: 其他欄位的子字串過濾,例如 {"基金類型": "ETF"}。 fields: 只回傳這些欄位,例如 ["Code", "Name", "ClosingPrice"]。 limit: 回傳筆數上限(硬上限 200)。 offset: 分頁位移。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | ||
| limit | No | ||
| match | No | ||
| fields | No | ||
| offset | No | ||
| dataset_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |