Actions34
- Account Actions
- Confirmation Actions
- Market Actions
- Order Actions
- Position Actions
- Session Actions
- Watchlist Actions
Market → Get Prices
AI-generatedSummary
Fetches historical price candles for a Capital.com market EPIC at the selected time resolution, with an optional candle limit and date range.
Inputs
- EPIC (required) — Market EPIC to fetch prices for, such as GOLD.
- Resolution — Candle interval: Day, Hour, Hour 4, Minute, Minute 05, Minute 15, Minute 30, or Week. Defaults to Minute 15.
- Max Candles — Maximum candles requested; defaults to 200.
- From — Optional start datetime, such as 2026-01-01T00:00:00. Omitted when empty.
- To — Optional end datetime, such as 2026-01-02T00:00:00. Omitted when empty.
Output shape
A single response object containing the Capital.com prices response, including its candle data and any response metadata.
The operation passes the selected resolution and maximum as API query parameters, adding from and to only when provided. It returns the raw API response without simplifying it.