get_company_income_statement
Fetch a company's income statement by stock symbol, including revenue, operating income, net income, EPS, and industry-specific items. Adapts to the company's industry automatically.
Instructions
取得上市公司綜合損益表。
自動偵測公司所屬行業並使用相應的財務報表格式。 支援不同行業的特殊會計科目和計算方式。
支援行業別:
一般業:製造業、科技業等傳統產業
金融業:銀行、證券、期貨等金融機構
金控業:金融控股公司
保險業:壽險、產險等保險公司
異業:其他特殊行業
使用範例: get_company_income_statement("2330") # 查詢台積電(一般業) get_company_income_statement("2884") # 查詢玉山金(金控業) get_company_income_statement("2886") # 查詢兆豐金(金控業)
Args: symbol: 公司股票代碼 (例如: "2330")
Returns: MCPToolResponse[dict]: 統一格式的回應,包含: - success (bool): 操作是否成功 - data (dict): 綜合損益表資訊,包含: * report_period: 報告期間 * revenue: 營業收入 * operating_cost: 營業成本 * gross_profit: 毛利 * operating_expense: 營業費用 * operating_income: 營業利益 * non_operating_income: 營業外收入 * pre_tax_income: 稅前淨利 * net_income: 稅後淨利 * eps: 每股盈餘 * industry_specific_items: 行業特有科目 - error (str): 錯誤訊息(失敗時) - tool (str): 工具名稱
Raises: 查詢失敗時返回錯誤回應,可能的原因: - 公司代碼不存在 - 財報資料尚未公布 - OpenAPI 服務異常 - 行業別偵測失敗
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes |