Historical OHLC bars
get_chart_dataGet historical OHLC price bars using a Saxo UIC and asset type. Supports minute to monthly intervals, volume where available, and up to 1200 bars per call with time-based paging.
Instructions
Historical price bars (open/high/low/close, volume where available; FX returns bid/ask OHLC). horizon is the bar size in minutes: 1, 5, 10, 15, 30, 60, 120, 240, 360, 480, 1440, 10080, 43200 (1440 = daily, 10080 = weekly, 43200 = monthly). Up to 1200 bars per call; pass time + mode to page further back.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uic | Yes | Saxo UIC (universal instrument code) from search_instruments. | |
| mode | No | Bars From or UpTo `time` (default UpTo). | |
| time | No | ISO-8601 timestamp anchor, e.g. 2024-01-31T00:00:00Z. | |
| count | No | Number of bars (default Saxo: 1200). | |
| horizon | Yes | ||
| assetType | Yes | Saxo AssetType exactly as returned by search_instruments, e.g. "Stock", "FxSpot", "Etf", "CfdOnStock", "ContractFutures". |