get_top_foreign_holdings
Get the top 20 stocks with the highest foreign ownership percentage, including shares and daily net buy/sell, to monitor foreign investors' key positions.
Instructions
取得外資持股前20名。
列出外資持股比例最高的前20檔個股,包括持股比例、持股張數、 當日買賣超等資訊,可瞭解外資重點布局標的。
使用範例: get_top_foreign_holdings() # 查詢外資持股前20名
Args: 無參數
Returns: MCPToolResponse[TopForeignHoldingsData]: 統一格式的回應,包含: - success (bool): 操作是否成功 - data: 外資持股前20名資訊列表,每項包含: * rank: 排名 * symbol: 股票代碼 * company_name: 公司名稱 * foreign_holding: 外資持股張數 * percentage: 外資持股比例 (%) * recent_change: 近期買賣超變化 - error (str): 錯誤訊息(失敗時) - tool (str): 工具名稱
Raises: 查詢失敗時返回錯誤回應,可能的原因: - 非交易日無資料 - 資料來源暫時無法存取 - 服務暫時異常
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||