Cookie settings
We use essential cookies to keep you signed in and secure, and analytics cookies to improve the product. We never use them for ad tracking.Learn more
Building an AI agent? Start with /llms.txt for the full site index.
查詢與工具
提供 query 範例與常見 pattern,協助快速上手;實際 coverage 以各資料集頁面為準。
/v2/query/examplesQuery Examples API 提供可重用的查詢範例模板,幫助快速組裝 `/v2/query` 請求。
範例資料用於開發接線,不代表即時行情或投資建議。
此端點提供 query pattern 參考,不代表單一資料集本身的 coverage 承諾。
| Instruments | Start year | Update timing | Includes delisted |
|---|---|---|---|
| Not yet available (coming) | Not yet available (coming) | Not yet available (coming) | coming |
Figures are measured from the DB; unlisted fields defer to docs coverage (coming) — we don't fabricate cell by cell.
可用 `entity_type` 先篩選 issuer/index 範例,再依 `id` 套用到查詢流程。
| 欄位 | 型別 | Required | 說明 |
|---|---|---|---|
| entity_type | string | no | issuer 或 index。 |
| limit | integer | no | 回傳範例筆數上限。 |
回應含 examples 陣列,每個項目帶有 query_template,可直接套用到 `/v2/query`。
{ "api_version": "v2", "endpoint": "/v2/query/examples", "request_id": "req_qex_91a2b3c4", "plan_id": "developer", "entity_type": "issuer", "examples": [ { "id": "issuer_profile_basic", "title": "Issuer 基本資料", "description": "查詢公司名稱、交易所與產業欄位。", "query_template": { "entity_type": "issuer", "entity_id": "2330", "fields": [ "company_name", "exchange", "industry" ] } } ], "meta": { "rows_returned": 1 }}| 欄位路徑 | 型別 | 說明 |
|---|---|---|
| examples[].id | string | 範例識別碼。 |
| examples[].title | string | 範例標題。 |
| examples[].description | string | 範例說明。 |
| examples[].query_template | object | 可直接轉為 query 參數的模板。 |
| meta.rows_returned | integer | 回傳範例筆數。 |
此 API 屬於 TW Market Data 資料集目錄。 查看資料集總覽