How to Use Coinbase Exchange price candles in Claude Code
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.
Prompts to try with Coinbase Exchange price candles in Claude Code
Copy an example into Claude Code, or ask in your own words.
Use Coinbase Exchange price candles to fetch BTC-USD daily history for October 2026 and add an internal chart to this project that preserves missing intervals.
Use Coinbase Exchange price candles to look this up and give me the result as a table. Save the result in ./assets.
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 Claude Code
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the hosted server
This adds Spiral to the current project. Add --scope user to use it in every project.
claude mcp add --transport http spiral https://api.spiral.ai/mcp
- Sign in
Start claude, type /mcp, choose spiral and Authenticate. Sign in to Spiral in the browser and click Authorize. No API key.
Use the Spiral skill
- Send Claude Code this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- Install and sign in
Installs the Spiral CLI, signs you in and adds its skill to your coding agents.
npx -y spiral-cli@latest init
Call the Spiral API
- Create an API key
In the console, under API keys.
- Run Coinbase Exchange price candles
One request; the result comes back by polling or a webhook.
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: Claude Code finds Coinbase Exchange price candles on Spiral, shows the price and runs it.
Coinbase Exchange price candles providers and prices
Spiral runs Coinbase Exchange price candles through Alexandria. Open a card for today's price, with every fee included.
Settings you can ask for
Ask Claude Code for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Granularity | 60, 300, 900, 3600, 21600, or 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). |
Every API field of Coinbase Exchange · Get candles is on its tool page: open its card above.
What can you do with Coinbase Exchange price candles in Claude Code?
Build an internal Coinbase research screen with asset metadata, market history, liquidity, and cbETH staking context. With Coinbase's written consent for AI use, connect those records to your project's data models.
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.
More on Coinbase Exchange price candles and Claude Code
Overview
Coinbase Exchange price candles in other agents
Questions about Coinbase Exchange price candles in Claude Code
Can Claude Code use Coinbase Exchange price candles?
Yes. Add Spiral to Claude Code as an MCP server, and Claude Code can find and run Coinbase Exchange price candles like any built-in tool.
How much does Coinbase Exchange price candles cost in Claude Code?
$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Claude Code plan is separate.
Do I need an Alexandria account to use Coinbase Exchange price candles in Claude Code?
No. Spiral runs Coinbase Exchange price candles on its own Alexandria account. You sign in to Spiral once and never paste a key.
How long does it take to set up Coinbase Exchange price candles in Claude Code?
About two minutes: add the hosted server, then sign in.
Does Claude Code wait while Coinbase Exchange price candles runs?
Coinbase Exchange price candles runs in the background. Claude Code 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.
Start using Coinbase Exchange price candles in Claude Code
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into Claude Code:
set up https://spiral.ai/SKILL.md


