get_candlestick_data
Retrieve Japanese stock candlestick OHLCV data with indicators for charting. Supports adjustable date range and overlays like moving averages.
Instructions
Return candlestick OHLCV + indicator data as JSON (ローソク足データJSON). All plans.
Use for ローソク足・株価チャート・React artifact チャート queries (JSON format). Returns parallel arrays for Plotly/Recharts React artifact rendering. For multi-stock comparison use sibling get_comparison_chart_data.
[Supported plans] Free / Light / Standard / Premium (cache-only, no API call)
Args: code: Stock code (e.g. "7203" or "72030"). from_date: Range start (YYYYMMDD or YYYY-MM-DD). Default: 91 days before to_date. to_date: Range end (YYYYMMDD or YYYY-MM-DD). Default: today. indicators: Overlays list. Default ["volume","sma5","sma25"]. Options: volume, sma5, sma20, sma25, sma60, sma75, sma200, bb20. adjusted: Use split-adjusted prices (default True).
Returns: dict with keys: code — normalised 5-char code display_code — 4-char display code (e.g. "7203") company — brief company name or null from_date — YYYY-MM-DD display start to_date — YYYY-MM-DD display end adjusted — bool dates — list[str] YYYY-MM-DD ohlcv — {open, high, low, close, volume} each list[float] indicators — {sma5, ..., bb20_upper, bb20_mid, bb20_lower} list[float|null] lock_days — list[{date, direction, price}] earnings_dates — list[str] YYYY-MM-DD within the display window On error: {"error": ""}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| from_date | No | ||
| to_date | No | ||
| indicators | No | ||
| adjusted | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||