Get realtime Taiwan stock quotes
get_quoteFetch near-realtime Taiwan stock and ETF quotes by code or exact Chinese name, with automatic TWSE/TPEx market detection and unresolved-symbol suggestions.
Instructions
Near-realtime quotes for Taiwan stocks and ETFs from TWSE MIS, covering both TWSE (上市) and TPEx (上櫃). Accepts codes ("2330", "2330.TW", "6488.TWO") or exact Traditional Chinese names ("台積電"); the market is detected automatically. Prices are TWD. volume is the day's accumulated volume in lots (1 lot = 1,000 shares), or shares when odd_lot is true, for the regular session only: end-of-day tools such as get_history report the exchange's daily total, which also includes odd-lot, after-hours fixed-price and other trades, so it is usually a few percent higher. price is null when there has been no trade yet; check status and the best bid/ask instead. Inputs that cannot be resolved are listed in unresolved with suggestions rather than failing the whole call. Outside trading hours (09:00-13:30 Asia/Taipei, weekdays) the last session's values are returned with status "previous_session".
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": {
"symbols": "<symbols>"
},
"name": "get_quote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| market | No | Only query one market. Omit to auto-detect (recommended). | |
| odd_lot | No | Return odd-lot (零股) quotes instead of regular board lots. | |
| symbols | Yes | Codes or exact names, e.g. ["2330", "0050", "鴻海"]. Up to 50. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| quotes | Yes | ||
| warnings | Yes | ||
| unresolved | Yes | ||
| retrieved_at | Yes | ISO 8601 timestamp of this call |