Get OHLC by Date Range logo

Catalog action Blockchain Data

Retrieves OHLC candlestick data for a coin within a specific date range (Pro plan exclusive). Returns [timestamp, open, high, low, close] arrays; daily (180 days max) or hourly (31 days max) intervals. Ideal for: candlestick charts, technical analysis, historical price studies for specific periods.

At a Glance

FieldValue
Action IDcoingecko-get-ohlc-range
CategoryBlockchain Data
ConnectorNot required
Requires gasNo
Funds movementNone declared
Tagscoingecko, ohlc, candlestick, historical, price, chart, cryptocurrency, read

Payload Schema

FieldTypeRequiredDescription
coinIdstringYesCoinGecko coin ID (e.g., 'bitcoin', 'ethereum'). Use the search action to find coin IDs.
vsCurrencystringYesTarget currency for prices (e.g., 'usd', 'eur', 'btc').
fromnumber | stringYesStart date as Unix timestamp (seconds) or ISO date string (YYYY-MM-DD).
tonumber | stringYesEnd date as Unix timestamp (seconds) or ISO date string (YYYY-MM-DD).
intervalstringYesData interval. Daily interval: up to 180 days. Hourly interval: up to 31 days.

Result Schema

FieldTypeRequiredDescription
coinIdstringYesCoin ID that was queried
vsCurrencystringYesTarget currency
candlesarrayYesArray of OHLC candles

Examples

json
{ "type": "coingecko-get-ohlc-range", "payload": { "coinId": "example-coinId", "vsCurrency": "example-vsCurrency", "from": "example-from", "to": "example-to", "interval": "daily" }, "children": []}

Payload fields can use workflow expressions such as {{$trigger.body.amount}}, {{$nodes.fetch.result.price}}, and {{$props.asset}} when the value should come from a trigger, prior node, or reusable workflow prop.

Ask a question... ⌘I