查詢與工具
提供 query 範例模板,幫助快速建立常見查詢模式。
/v2/query/examplesQuery Examples API 提供可重用的查詢範例模板,幫助快速組裝 `/v2/query` 請求。
範例資料用於開發接線,不代表即時行情或投資建議。
可用 `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 | 回傳範例筆數。 |