Real-time quote
quote.realtimeIntraday quotes, refreshed about every 5 seconds, for up to 50 TWSE-listed (market="tse") or OTC (market="otc") codes; each quote carries the trading date it belongs to. Source: the TWSE Market Information System (mis.twse.com.tw), which is not covered by the Open Government Data License. 取得盤中即時報價(約 5 秒更新一次),每筆帶 date(報價所屬交易日)。OpenAPI 只有前一交易日資料,要當下的價格得走基本市況報導站。ETF 與上市股票用 market="tse",上櫃用 "otc"。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"codes": "<codes>"
},
"name": "quote.realtime"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| codes | Yes | 代號清單,例如 ["0050", "0056", "2330"]。 | |
| market | No | "tse"(上市)或 "otc"(上櫃)。 | tse |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | ||
| units | Yes | ||
| quotes | Yes | ||
| source | Yes | ||
| caveats | Yes |