Cohort Compare (deprecated → use cohort(depth='compare'))
cohort_compareCompare historical returns of two stock cohorts defined by symbol and date to identify which performed better over specified horizons.
Instructions
[DEPRECATED in v5 — use cohort(depth="compare", compare_with=...)]
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": {
"symbol_a": "<symbol_a>",
"date_a": "<date_a>",
"symbol_b": "<symbol_b>",
"date_b": "<date_b>"
},
"name": "cohort_compare"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol_a | Yes | ||
| date_a | Yes | ||
| symbol_b | Yes | ||
| date_b | Yes | ||
| timeframe | No | 1h | |
| cohort_size | No | ||
| horizons | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |