Crypto Prices Skill
Crypto prices are the most-asked live number after weather, and two services answer keylessly: CoinGecko's public API (thousands of coins, market context, any quote currency) and Coinbase's spot endpoint (fast, reliable, majors only). This skill fetches, adds the 24-hour context that turns a number into information, and carries the caveat every crypto answer owes: this number is already stale, and it is not advice.
What This Skill Produces
- The price — stated first, in the asked currency, with 24h change alongside
- Context — 24h high/low or market-cap rank when the question implies "how's it doing"
- The command — exact curl, rerunnable
- The caveat — timestamped, volatile, informational-only
Required Inputs
Ask for these if not provided:
- The coin(s) — resolve names to CoinGecko ids (bitcoin, ethereum, solana…); for obscure tickers, search first:
https://api.coingecko.com/api/v3/search?query=name — ticker collisions are common and the wrong coin is a real failure mode
- Quote currency — usd default, but honor the user's (CoinGecko quotes in dozens:
vs_currencies=eur,inr,jpy)
- Depth — a number, or market context (change, volume, rank)?
Framework: The Two Sources
- CoinGecko — primary: simple price:
curl -s "https://api.coingecko.com/api/v3/simple/price?ids=bitcoin,ethereum&vs_currencies=usd&include_24hr_change=true&include_24hr_vol=true&include_last_updated_at=true" · richer context: .../api/v3/coins/markets?vs_currency=usd&ids=bitcoin,ethereum (adds rank, high/low, ATH distance) · trending: .../api/v3/search/trending. Public tier rate-limits (~10–30 req/min) — batch ids into one call, never loop.
- Coinbase — fallback for majors:
curl -s "https://api.coinbase.com/v2/prices/BTC-USD/spot" — extremely reliable, majors and USD/EUR/GBP pairs, no market context. Use when CoinGecko rate-limits or for a fast single number.
- Timestamp every answer: include
include_last_updated_at and print it; crypto moves percent-per-hour on bad days, and an undated price is misinformation waiting to age.
- Context is the value-add: "$63,977, down 2.1% in 24h" answers "how's bitcoin"; the bare price doesn't. For "how's the market," compare BTC + ETH + a top-alt rather than editorializing.
- The line that never moves: prices are informational; no buy/sell/hold, no predictions, no portfolio math presented as guidance. "Is now a good time to buy" gets the price, the volatility fact, and a clean refusal to predict.
Output Format
[Coin] Price
[Price] [currency] · 24h: [±x.x%] [· rank/context if asked]
[Multi-coin questions: small table, one row per coin]
Source: [CoinGecko / Coinbase] at [timestamp, UTC] · rerun: [exact curl]
Live snapshot, already aging — informational only, not investment advice.
Quality Checks
Anti-Patterns
Example Trigger Phrases
- "What's bitcoin at?"
- "How's the crypto market today?"
- "Price of some altcoin."
1---2name: crypto-prices3description: "Fetch live cryptocurrency prices with zero API keys — CoinGecko's public endpoints primary, Coinbase spot fallback, via plain curl. Use when asked what's bitcoin at, ETH price in euros, how's the crypto market today, or price of some altcoin. Produces the current price with 24h context, the source and timestamp, the rerunnable command, and the volatility caveat that crypto answers must carry."4disable-model-invocation: true # skill-optimizer5metadata:6 source: https://skillmd.com/skills/slipcast-dev/crypto-prices7---89# Crypto Prices Skill1011Crypto prices are the most-asked live number after weather, and two services answer keylessly: CoinGecko's public API (thousands of coins, market context, any quote currency) and Coinbase's spot endpoint (fast, reliable, majors only). This skill fetches, adds the 24-hour context that turns a number into information, and carries the caveat every crypto answer owes: this number is already stale, and it is not advice.1213## What This Skill Produces1415- **The price** — stated first, in the asked currency, with 24h change alongside16- **Context** — 24h high/low or market-cap rank when the question implies "how's it doing"17- **The command** — exact curl, rerunnable18- **The caveat** — timestamped, volatile, informational-only1920## Required Inputs2122Ask for these if not provided:23- **The coin(s)** — resolve names to CoinGecko ids (bitcoin, ethereum, solana…); for obscure tickers, search first: `https://api.coingecko.com/api/v3/search?query=name` — ticker collisions are common and the wrong coin is a real failure mode24- **Quote currency** — usd default, but honor the user's (CoinGecko quotes in dozens: `vs_currencies=eur,inr,jpy`)25- **Depth** — a number, or market context (change, volume, rank)?2627## Framework: The Two Sources28291. **CoinGecko — primary:** simple price: `curl -s "https://api.coingecko.com/api/v3/simple/price?ids=bitcoin,ethereum&vs_currencies=usd&include_24hr_change=true&include_24hr_vol=true&include_last_updated_at=true"` · richer context: `.../api/v3/coins/markets?vs_currency=usd&ids=bitcoin,ethereum` (adds rank, high/low, ATH distance) · trending: `.../api/v3/search/trending`. Public tier rate-limits (~10–30 req/min) — batch ids into one call, never loop.302. **Coinbase — fallback for majors:** `curl -s "https://api.coinbase.com/v2/prices/BTC-USD/spot"` — extremely reliable, majors and USD/EUR/GBP pairs, no market context. Use when CoinGecko rate-limits or for a fast single number.313. **Timestamp every answer:** include `include_last_updated_at` and print it; crypto moves percent-per-hour on bad days, and an undated price is misinformation waiting to age.324. **Context is the value-add:** "$63,977, down 2.1% in 24h" answers "how's bitcoin"; the bare price doesn't. For "how's the market," compare BTC + ETH + a top-alt rather than editorializing.335. **The line that never moves:** prices are informational; no buy/sell/hold, no predictions, no portfolio math presented as guidance. "Is now a good time to buy" gets the price, the volatility fact, and a clean refusal to predict.3435## Output Format3637# [Coin] Price3839**[Price] [currency]** · 24h: [±x.x%] [· rank/context if asked]4041[Multi-coin questions: small table, one row per coin]4243Source: [CoinGecko / Coinbase] at [timestamp, UTC] · rerun: `[exact curl]`44*Live snapshot, already aging — informational only, not investment advice.*4546## Quality Checks4748- [ ] The coin id was resolved unambiguously (searched when the ticker could collide)49- [ ] 24h change accompanies the price50- [ ] The timestamp appears in the answer51- [ ] Multi-coin requests were batched into one call52- [ ] The not-advice line appears verbatim in spirit — every time5354## Anti-Patterns5556- [ ] Do not answer from memory — a remembered crypto price is fiction; fetch or hand over the command57- [ ] Do not guess which coin a ticker means — search and confirm; $PEPE-class collisions burn people58- [ ] Do not loop per-coin requests against a rate-limited public API — batch59- [ ] Do not predict, recommend, or imply timing — the refusal is part of the skill60- [ ] Do not quote without the timestamp — undated crypto prices are misinformation with confidence6162## Example Trigger Phrases6364- "What's bitcoin at?"65- "How's the crypto market today?"66- "Price of some altcoin."