--- name: Crypto & Stock Market (Clean) description: Real-time crypto prices, historical charts, trending coins, and stock quotes using official public APIs (CoinGecko + Yahoo Finance + Stooq). No API key required. Zero dependencies. Built from scratch as a safe replacement for the VirusTotal-flagged crypto-market-data skill. ---
Crypto & Stock Market (Clean)
A transparent, auditable replacement for crypto-market-data. Uses only well-known public APIs:
- CoinGecko (crypto prices, charts, trending, search) — https://api.coingecko.com
- Yahoo Finance (stock quotes, charts) — https://query1.finance.yahoo.com
- Stooq (stock historical CSV fallback) — https://stooq.com
When to Use
- User asks about crypto price, market cap, or historical chart
- User has a Binance/crypto portfolio and wants price/news monitoring
- User asks about a stock ticker (e.g., AAPL, TSLA, ARMK)
- Portfolio valuation, % change, top gainers, trending coins
Scripts
All scripts live in scripts/ and take CLI args. Output is JSON on stdout.
| Script | Purpose | Example |
|---|---|---|
| crypto_price.js | Current price for one or many coins in any fiat | node scripts/crypto_price.js bitcoin,ethereum usd |
| crypto_search.js | Find a coin's id by name/symbol | node scripts/crypto_search.js bitcoin |
| crypto_chart.js | Historical OHLC/price chart | node scripts/crypto_chart.js bitcoin usd 30 |
| crypto_top.js | Top N coins by market cap | node scripts/crypto_top.js 20 usd |
| crypto_trending.js | 24h trending coins on CoinGecko | node scripts/crypto_trending.js |
| crypto_global.js | Global market stats (total cap, BTC dominance) | node scripts/crypto_global.js |
| stock_quote.js | Real-time stock quote via Yahoo | node scripts/stock_quote.js AAPL MSFT |
| stock_chart.js | Stock historical chart via Yahoo | node scripts/stock_chart.js AAPL 1mo 1d |
| portfolio_value.js | Value a crypto portfolio from holdings JSON | echo '{"bitcoin":0.5,"ethereum":2}' \| node scripts/portfolio_value.js usd |
CoinGecko Rate Limits
Free tier: ~10–30 req/min. If you hit 429, wait a minute or batch symbols. All scripts accept comma-separated ids to batch.
Binance Integration Note
This skill only reads public market data. To query a private Binance account balance, you need API keys — handle that in a separate authenticated script. Ask the user before adding.
Safety
- No eval, no child_process, no shell.
- No token storage, no write to disk.
- All requests are GET to documented public endpoints.
- Reviewable in under 10 minutes end-to-end.