tushare_get_index_components
Fetch constituent stocks and their weights for a given index code through Tushare to analyze index composition and portfolio exposure.
Instructions
Get constituent stocks of an index (Tushare API: index_weight).
Args:
index_code: Index code (e.g., "000300.SH" for CSI 300)
Returns:
dict: List of constituent stocks with weight
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "tushare_get_index_components"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index_code | No | 000300.SH |