get_foreign_investment_by_industry
Retrieve foreign ownership statistics by industry, showing shareholding ratios and net buy/sell amounts, to track foreign investors' sector preferences and capital flows.
Instructions
取得外資持股(按產業別)。
提供外資在各產業的持股狀況統計,包括持股比重、買賣超金額等, 可用於觀察外資對不同產業的偏好與資金流向。
使用範例: get_foreign_investment_by_industry() # 查詢外資前10個產業持股(預設) get_foreign_investment_by_industry(count=5) # 查詢外資前5個產業持股 get_foreign_investment_by_industry(count=20) # 查詢外資前20個產業持股
Args: count (int): 限制返回的產業數量,預設為10個產業
Returns: MCPToolResponse[ForeignInvestmentByIndustryData]: 統一格式的回應,包含: - success (bool): 操作是否成功 - data: 外資產業持股資訊,包含: * industry_foreign_investment: 產業列表,每項包含: - 產業別: 產業名稱 - 外資持股: 外資持股相關數據 - 買賣超: 買賣超金額等資訊 * total_industries: 總產業數量 * displayed_industries: 顯示的產業數量 - error (str): 錯誤訊息(失敗時) - tool (str): 工具名稱
Raises: 查詢失敗時返回錯誤回應,可能的原因: - 非交易日無資料 - 資料來源暫時無法存取 - 服務暫時異常
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No |