compare_etf
Compare ETF price returns across multiple funds for any period. Set custom dates or use a months lookback to analyze relative performance.
Instructions
Compare price returns of specific ETFs over one shared period.
Args: codes: 6-digit short codes to compare. months: Lookback when start_date is omitted. start_date: YYYYMMDD override for the period start. end_date: YYYYMMDD override for the period end.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"codes": "<codes>"
},
"name": "compare_etf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| codes | Yes | ||
| months | No | ||
| end_date | No | ||
| start_date | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||