How to Use Coinbase Exchange trading pair details in opencode
Returns one trading pair's base and quote currencies, increments, status, and trading restrictions. Use it to interpret market records or check a known pair without searching the trading pair catalog.
Prompts to try with Coinbase Exchange trading pair details in opencode
Copy an example into opencode, or ask in your own words.
Use Coinbase Exchange trading pair details for BTC-USD and update the project's internal market inspector to show its increments, status, and trading restrictions.
Use Coinbase Exchange trading pair details to look this up and give me the result as a table. Save the result in ./assets.
Pull the latest numbers from Coinbase Exchange trading pair details and tell me what changed since last week.
Check Coinbase Exchange trading pair details and summarize what you find in three bullet points.
Pull the newest data from Coinbase Exchange trading pair details and give me the result as a table.
How to set up Coinbase Exchange trading pair details in opencode
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the server
Leave out --global to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.
opencode mcp add spiral --global --url https://api.spiral.ai/mcp
- Sign in
Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, /mcps starts the same sign-in.
opencode mcp auth spiral
- Check it
Spiral shows as connected.
opencode mcp list
Use the Spiral skill
- Send opencode 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 trading pair details
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_product", "input": { "product_id": "<product_id>" } }'
Then paste one of the prompts above: opencode finds Coinbase Exchange trading pair details on Spiral, shows the price and runs it.
Coinbase Exchange trading pair details providers and prices
Spiral runs Coinbase Exchange trading pair details through Alexandria. Open a card for today's price, with every fee included.
What can you do with Coinbase Exchange trading pair details in opencode?
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 market and conversion comparison
Find available cbETH pairs and compare their quoted market activity with Coinbase's staking conversion rate. Include recent trades and displayed bids and asks to explain what the exchange is showing.
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.
Displayed liquidity comparison
Compare BTC-USD and ETH-USD spreads, aggregated depth, recent trade sizes, and market volume. Include trading restrictions and increments so the comparison retains each pair's market context.
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.
Exchange catalog change audit
Compare saved currency and trading pair catalogs to find additions and changes. Inspect the affected currency and pair records for precision, network, status, and trading restriction changes.
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 trading pair details and opencode
Overview
Coinbase Exchange trading pair details in other agents
Questions about Coinbase Exchange trading pair details in opencode
Can opencode use Coinbase Exchange trading pair details?
Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Coinbase Exchange trading pair details like any built-in tool.
How much does Coinbase Exchange trading pair details cost in opencode?
$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your opencode plan is separate.
Do I need an Alexandria account to use Coinbase Exchange trading pair details in opencode?
No. Spiral runs Coinbase Exchange trading pair details 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 trading pair details in opencode?
About two minutes: add the server, then sign in, then check it.
Does opencode wait while Coinbase Exchange trading pair details runs?
Coinbase Exchange trading pair details runs in the background. opencode 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 trading pair details in opencode
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into opencode:
set up https://spiral.ai/SKILL.md


