[Integrations](https://spiral.ai/integrations) › [n8n](https://spiral.ai/integrations/n8n) › [Coinbase Exchange price candles](https://spiral.ai/integrations/n8n/coinbase-exchange-price-candles)

# How to Use Coinbase Exchange price candles in n8n

Returns historical open, high, low, close, and volume buckets for a Coinbase Exchange trading pair. Use it for price charts and historical comparisons, allowing for missing intervals when no trades occurred.

|  |  |
| --- | --- |
| Model | Coinbase Exchange price candles |
| Available through | Alexandria |
| Category | Finance |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, with a Spiral API key |

## Prompts to try with Coinbase Exchange price candles in n8n

- Each morning, use Coinbase Exchange price candles to summarize the previous UTC day's BTC-USD open, high, low, close, and volume, showing any missing interval.
- Every Monday at 9am: use Coinbase Exchange price candles to look this up and give me the result as a table.
- Pull the latest numbers from Coinbase Exchange price candles and tell me what changed since last week.
- Check Coinbase Exchange price candles and summarize what you find in three bullet points.
- Pull the newest data from Coinbase Exchange price candles and give me the result as a table.

## How to set up Coinbase Exchange price candles in n8n

Pick the way that suits you. Each takes about two minutes.

### Use the Spiral skill

1. **Send n8n this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use Spiral's MCP server

1. **Create a key**: Create a key under API keys in the console.

2. **Add an MCP Client node**: In a workflow, add an MCP Client node (or, under an AI Agent node, an MCP Client Tool) and set:

```text
https://api.spiral.ai/mcp
```

3. **Pick a tool**: The node lists Spiral's tools. In an MCP Client node pick one, such as `run`, and give it its arguments:

```json
{
  "provider": "fal",
  "model": "fal-ai/flux/schnell",
  "input": { "prompt": "a lighthouse at dawn" },
  "wait": true
}
```

4. **Run Coinbase Exchange price candles in a workflow step**: Give the step an instruction like the ones below and run it on your trigger or schedule. Spiral finds Coinbase Exchange price candles, prices it and runs it each time the step fires.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run Coinbase Exchange price candles**: One request; the result comes back by polling or a webhook.

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "alexandria",
    "model": "api-exchange-coinbase-com/markets/get_candles",
    "input": {
      "product_id": "<product_id>"
    }
  }'
```

Then paste one of the prompts above: n8n finds Coinbase Exchange price candles on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/n8n

## Coinbase Exchange price candles tools and prices

- [Coinbase Exchange · Get candles](https://spiral.ai/tools/alexandria/api-exchange-coinbase-com/markets/get_candles) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| end |  | — | Inclusive range end, same forms as `start`. Defaults to now. |
| start |  | — | Inclusive range start: RFC 3339 (`2026-07-24T00:00:00Z`) or a date (`2026-07-24`, midnight UTC). Defaults to `end` minus `max_candles` buckets. |
| granularity | 60, 300, 900, 3600, 21600, 86400 | 60 | Bucket length in seconds: 60, 300, 900, 3600, 21600 or 86400. |
| max_candles | 1 to 3000 | 300 | Upper bound on buckets fetched in this call (300 per upstream request; requests are made sequentially to respect the 10 req/s public limit). |

## What can you do with Coinbase Exchange price candles in n8n?

Keep an internal Coinbase watchlist current with market observations, catalog changes, and cbETH staking updates. With Coinbase's written consent for AI use, compare successive observations and report changes on a schedule.

### Internal ETH market research brief

Combine ETH market history, recent executions, spreads, displayed depth, and volume with currency and pair metadata. Add cbETH conversion, supply, and APY to give the staking data its own context.

### cbETH historical research worksheet

Build an internal worksheet of cbETH candles and market volume, with pair definitions and the current conversion, supply, and APY shown separately. Keep current staking figures distinct from historical observations.

### Candle aggregation audit

For a bounded BTC-USD interval, compare candle OHLC and volume with the executions retrieved for the same interval. Use the pair's precision rules when checking numerical differences.

### Internal morning market report

Summarize BTC and ETH daily candles, current tickers, and market volume for colleagues. Resolve currency identities and available pairs before assembling the report.

### Market data normalization checks

Check an internal data pipeline's handling of decimal amounts, timestamps, trade IDs, aggregated sizes, currency codes, and pair definitions. Check wrapped-asset conversion and supply records separately from exchange prices and volumes.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All n8n guides](https://spiral.ai/integrations/n8n)

## Coinbase Exchange price candles in other agents

- [Amp](https://spiral.ai/integrations/amp/coinbase-exchange-price-candles)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/coinbase-exchange-price-candles)
- [Claude](https://spiral.ai/integrations/claude-desktop/coinbase-exchange-price-candles)
- [Claude Code](https://spiral.ai/integrations/claude-code/coinbase-exchange-price-candles)
- [Cline](https://spiral.ai/integrations/cline/coinbase-exchange-price-candles)
- [Codex](https://spiral.ai/integrations/codex/coinbase-exchange-price-candles)
- [Cursor](https://spiral.ai/integrations/cursor/coinbase-exchange-price-candles)
- [Devin](https://spiral.ai/integrations/devin/coinbase-exchange-price-candles)
- [dots](https://spiral.ai/integrations/dots/coinbase-exchange-price-candles)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/coinbase-exchange-price-candles)
- [Gemini](https://spiral.ai/integrations/gemini/coinbase-exchange-price-candles)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/coinbase-exchange-price-candles)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/coinbase-exchange-price-candles)
- [goose](https://spiral.ai/integrations/goose/coinbase-exchange-price-candles)
- [Grok](https://spiral.ai/integrations/grok/coinbase-exchange-price-candles)
- [Grok Build](https://spiral.ai/integrations/grok-build/coinbase-exchange-price-candles)
- [Hermes](https://spiral.ai/integrations/hermes/coinbase-exchange-price-candles)
- [Instinct](https://spiral.ai/integrations/instinct/coinbase-exchange-price-candles)
- [Manus](https://spiral.ai/integrations/manus/coinbase-exchange-price-candles)
- [Muse](https://spiral.ai/integrations/muse/coinbase-exchange-price-candles)
- [Muse Code](https://spiral.ai/integrations/muse-code/coinbase-exchange-price-candles)
- [Notion](https://spiral.ai/integrations/notion/coinbase-exchange-price-candles)
- [OpenClaw](https://spiral.ai/integrations/openclaw/coinbase-exchange-price-candles)
- [opencode](https://spiral.ai/integrations/opencode/coinbase-exchange-price-candles)
- [Perplexity](https://spiral.ai/integrations/perplexity/coinbase-exchange-price-candles)
- [Raycast](https://spiral.ai/integrations/raycast/coinbase-exchange-price-candles)
- [VS Code](https://spiral.ai/integrations/vscode/coinbase-exchange-price-candles)
- [Windsurf](https://spiral.ai/integrations/windsurf/coinbase-exchange-price-candles)
- [Zapier](https://spiral.ai/integrations/zapier/coinbase-exchange-price-candles)

## More n8n guides

- [Coinbase Exchange order book](https://spiral.ai/integrations/n8n/coinbase-exchange-order-book)
- [Coinbase Exchange recent trades](https://spiral.ai/integrations/n8n/coinbase-exchange-recent-trades)
- [Coinbase Exchange currency list](https://spiral.ai/integrations/n8n/coinbase-exchange-currency-list)
- [Coinbase Exchange ticker](https://spiral.ai/integrations/n8n/coinbase-exchange-ticker)
- [Coinbase Exchange currency details](https://spiral.ai/integrations/n8n/coinbase-exchange-currency-details)
- [Coinbase Exchange trading pair details](https://spiral.ai/integrations/n8n/coinbase-exchange-trading-pair-details)

## Questions about Coinbase Exchange price candles in n8n

**Can n8n use Coinbase Exchange price candles?**

Yes. Add Spiral to n8n as an MCP server, and n8n can find and run Coinbase Exchange price candles like any built-in tool.

**How much does Coinbase Exchange price candles cost in n8n?**

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your n8n plan is separate.

**Do I need an Alexandria account to use Coinbase Exchange price candles in n8n?**

You need no Alexandria account. n8n uses one Spiral API key for every tool, and Spiral runs Coinbase Exchange price candles on its own Alexandria account.

**How long does it take to set up Coinbase Exchange price candles in n8n?**

About two minutes: create a key, then add an MCP Client node, then pick a tool.

**Does n8n wait while Coinbase Exchange price candles runs?**

Coinbase Exchange price candles runs in the background. n8n starts the run, checks on it and gives you the json when it's ready.

**Does this cover the whole crypto market?**

The data comes from Coinbase Exchange. Its prices, executions, and displayed liquidity describe that venue, rather than a consolidated view across crypto exchanges.

**Does a currency appearing in Coinbase's catalog mean it currently trades?**

Coinbase explicitly says some known currencies may not currently be used for trading. The currency catalog and trading pair catalog describe different things: assets and markets.

**Is REST intended to capture every market change?**

Coinbase describes REST as suitable for lower-frequency requests and provides a WebSocket feed for market data. A REST snapshot should not be treated as a continuous record of every intervening change.

**Can Coinbase change a trading pair's details?**

Yes. Coinbase says a product ID stays fixed once assigned, while the other product fields can change.

**Do Coinbase's terms permit AI agent use?**

Coinbase's current terms require prior express written consent for uses related to operating AI technologies. The restriction extends beyond model training.

