get_stock_chart
Fetch raw stock OHLC price points for an Avanza order-book ID over a chosen period, paginated by offset and limit without aggregation.
Instructions
Get a page of raw stock OHLC points in source order, without aggregation.
Offset/limit slice the selected period, not a date range. Metadata describes the full upstream period. Upstream fields live under data, isolated from wrapper pagination keys. Latest available data is not guaranteed real-time.
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": {
"order_book_id": "<order_book_id>"
},
"name": "get_stock_chart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| offset | No | ||
| time_period | No | one_year | |
| order_book_id | Yes | Avanza order-book ID from discovery; not the separate instrumentId. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Stock price chart data with OHLC values. | |
| pagination | Yes |