detect_ytd_high_low_range
Scan year-to-date high/low records across a date range, eliminating repeated one-day queries.
Instructions
Scan year-to-date high/low records (年初来高値/安値) across a date range. All plans.
Use this instead of repeated detect_ytd_high_low calls for multi-day queries. Issue one range call — splitting into parallel range calls defeats the purpose. date_from must be within the past 52 weeks. Data available ~17:15 JST on trading days.
[Supported plans] Free / Light / Standard / Premium (cache-only, no API call)
Args: date_from: Range start inclusive (YYYYMMDD or YYYY-MM-DD). Within past 52 weeks. date_to: Range end inclusive (YYYYMMDD or YYYY-MM-DD). code: Optional stock code (bypasses pre-computed cache when set). min_prior_sessions: See detect_ytd_high_low (default 60). detail: Include full per-stock data array (default False).
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": {
"date_from": "<date_from>",
"date_to": "<date_to>"
},
"name": "detect_ytd_high_low_range"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | ||
| detail | No | ||
| date_to | Yes | ||
| date_from | Yes | ||
| min_prior_sessions | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||