Get Market Chart

coingecko.market_chart
ActionBusiness appsconnection required

Calls the CoinGecko API with the connection's credentials.

Retrieve a coin's historical price, market cap and 24-hour volume series over a window of days.

Connection

Required
Yes — the node will not save without one
Auth type
API key
Providers
CoinGecko
Secret shape
the CoinGecko API key, or {"api_key": "…"}
Config it needs
plan, base_url
Resolved by
config.connection_id, else node.connection_id

Configuration

5 fields, 1 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.

FieldTypeRequiredDefaultConstraintsExample
coin_id
The coin's CoinGecko API id, as listed by the Coins List node (not its symbol).
stringYes——bitcoin
vs_currency
The currency prices are quoted in, as a supported vs_currency code.
stringNousd—usd
days
How many days back to go, as a whole number, or 'max' for everything.
stringNo1—30
interval
The spacing between points; leave unset to let CoinGecko choose it.
stringNo—one of "5m", "hourly", "daily"—
precision
How many decimal places a price carries; 'full' returns CoinGecko's own precision.
stringNo—one of "full", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18"—

Example configuration

Every value below is the contract’s own example or default — nothing invented.

{
  "coin_id": "bitcoin",
  "days": "30",
  "vs_currency": "usd"
}

Output

One shape.

result

FieldTypeExample
prices
One [unix_ms, price] pair per point.
array—
market_caps
One [unix_ms, market_cap] pair per point.
array—
total_volumes
One [unix_ms, volume] pair per point.
array—
count
How many price points the series held.
number—
coin_id
The coin the series belongs to.
string—
{
  "coin_id": "",
  "count": 0,
  "market_caps": [],
  "prices": [],
  "total_volumes": []
}

See Get Market Chart run in a workflow.

In a technical demo we add the CoinGecko connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.