get_stock_yearly_trading
Get annual trading statistics for any Taiwan stock to analyze long-term performance. View yearly volume, value, average price, high/low prices, trading days, and percentage change.
Instructions
取得股票年交易資訊。
提供股票每年的交易統計資料,包括年成交量、年成交金額、 年均價、年度漲跌幅等,適合長期投資分析與歷史回顧。
使用範例: get_stock_yearly_trading("2330") # 查詢台積電年交易資訊 get_stock_yearly_trading("2454") # 查詢聯發科年交易資訊
Args: symbol: 股票代碼 (例如: "2330")
Returns: MCPToolResponse[YearlyTradingData]: 統一格式的回應,包含: - success (bool): 操作是否成功 - data (YearlyTradingData): 年交易資訊,包含: * symbol: 股票代碼 * yearly_data: 年交易列表,每項包含: - year: 年度 - total_volume: 年成交量 - total_value: 年成交金額 - average_price: 年均價 - highest_price: 年最高價 - lowest_price: 年最低價 - trading_days: 交易日數 - year_change_percent: 年度漲跌幅 (%) - error (str): 錯誤訊息(失敗時) - tool (str): 工具名稱
Raises: 查詢失敗時返回錯誤回應,可能的原因: - 股票代碼不存在 - 年交易資料尚未彙整 - 資料來源暫時無法存取
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes |