Get Contract Market Chart by Date Range logo

Catalog action Blockchain Data

Retrieves historical price, market cap, and volume for a token by contract within a specific date range. Returns [timestamp, value] arrays with auto-adjusted granularity; specify exact Unix timestamps for custom windows. Ideal for: analyzing specific time periods, event-based analysis, generating custom date range reports.

At a Glance

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

Payload Schema

FieldTypeRequiredDescription
platformstringYesAsset platform ID (e.g., 'ethereum', 'polygon-pos', 'arbitrum-one', 'base'). See /asset_platforms endpoint for full list.
contractAddressstringYesToken contract address on the specified platform.
vsCurrencystringYesTarget currency for price data (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).
intervalstringNoData interval: '5m', 'hourly', or 'daily'. If not specified, auto-selected based on date range.
precisionnumberNoDecimal precision for price values (0-18).

Result Schema

FieldTypeRequiredDescription
coinIdstringYesToken identifier (contract address).
vsCurrencystringYesTarget currency.
pricesarrayYesArray of price data points
marketCapsarrayYesArray of market cap data points
totalVolumesarrayYesArray of volume data points

Examples

json
{ "type": "coingecko-get-contract-market-chart-range", "payload": { "platform": "example-platform", "contractAddress": "0x0000000000000000000000000000000000000000", "vsCurrency": "example-vsCurrency", "from": "example-from", "to": "example-to" }, "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