{"uid":"cap_fSOp48gGGX57nnwcrmzk1","slug":"x402stock-crypto-fear-greed-index-with-btc-eth-prices-2de0522e","name":"x402stock Crypto Fear & Greed Index with BTC/ETH Prices","description":"The Crypto Fear & Greed index (0–100) with its rating, alongside the US stock Fear & Greed score for comparison, current BTC and ETH prices with 24h change, and ~90 days of crypto sentiment history. Pass `?days=N` to size the history. The crypto-sentiment companion to /api/v1/fear-greed (stocks). From x402stock, a market & economic data API (x402, USDC).","url":"https://x402stock.xyz/api/v1/fear-greed/crypto","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["days"],"properties":{"days":{"type":"integer","default":90,"maximum":3650,"exclusiveMinimum":0}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["source","as_of","crypto","stock","prices","history"],"properties":{"as_of":{"type":"string"},"stock":{"type":"object","required":["score"],"properties":{"score":{"anyOf":[{"type":"number"},{"type":"null"}]}},"additionalProperties":false},"crypto":{"type":"object","required":["score","rating"],"properties":{"score":{"anyOf":[{"type":"number"},{"type":"null"}]},"rating":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":false},"prices":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","required":["price","change","change_percent"],"properties":{"price":{"anyOf":[{"type":"number"},{"type":"null"}]},"change":{"anyOf":[{"type":"number"},{"type":"null"}]},"change_percent":{"anyOf":[{"type":"number"},{"type":"null"}]}},"additionalProperties":false}},"source":{"type":"string","const":"x402stock"},"history":{"type":"array","items":{"type":"object","required":["date","score"],"properties":{"date":{"type":"string"},"score":{"anyOf":[{"type":"number"},{"type":"null"}]}},"additionalProperties":false}}},"additionalProperties":false}}}}},"responseSchema":{"type":"json","example":{"as_of":"2026-06-05T00:00:00.000Z","stock":{"score":69},"crypto":{"score":12,"rating":"Extreme Fear"},"prices":{"BTCUSD":{"price":63632.13,"change":-382.24,"change_percent":-0.6},"ETHUSD":{"price":1766.38,"change":-45.35,"change_percent":-2.5}},"source":"x402stock","history":[{"date":"2025-06-06","score":45}]}},"example":{"request":{"input":{"type":"http","method":"GET","queryParams":{"days":30}}},"response":{"as_of":"2026-06-18T00:00:00.000Z","stock":{"score":51},"crypto":{"score":15,"rating":"Extreme Fear"},"prices":{"BTCUSD":{"price":63867.02,"change":-1733.62,"change_percent":-2.64},"ETHUSD":{"price":1726.7,"change":-63.7,"change_percent":-3.56}},"source":"x402stock","history":[{"date":"2026-05-20","score":27},{"date":"2026-05-21","score":29},{"date":"2026-05-22","score":28},{"date":"2026-05-23","score":28},{"date":"2026-05-24","score":25},{"date":"2026-05-25","score":30},{"date":"2026-05-26","score":34},{"date":"2026-05-27","score":25},{"date":"2026-05-28","score":22},{"date":"2026-05-29","score":23},{"date":"2026-05-30","score":23},{"date":"2026-05-31","score":28},{"date":"2026-06-01","score":29},{"date":"2026-06-02","score":23},{"date":"2026-06-03","score":11},{"date":"2026-06-04","score":12},{"date":"2026-06-05","score":12},{"date":"2026-06-06","score":12},{"date":"2026-06-07","score":12},{"date":"2026-06-08","score":8},{"date":"2026-06-09","score":10},{"date":"2026-06-10","score":9},{"date":"2026-06-11","score":12},{"date":"2026-06-12","score":12},{"date":"2026-06-13","score":13},{"date":"2026-06-14","score":18},{"date":"2026-06-15","score":20},{"date":"2026-06-16","score":23},{"date":"2026-06-17","score":22},{"date":"2026-06-18","score":15}]}},"exampleRequest":{"days":30},"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_fHrVuBrL9GFjWkpnvex_L","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the current Crypto Fear & Greed score (0–100) with rating, US stock Fear & Greed score for comparison, BTC and ETH prices with 24h change, and up to 90+ days of crypto sentiment history.","exampleAgentPrompt":"What's the current crypto fear and greed score and rating, how does it compare to the US stock market sentiment, and can you also pull BTC and ETH prices with their 24-hour change? Give me the last 30 days of crypto sentiment history too.","exampleUseCases":[{"title":"Daily crypto sentiment morning briefing","prompt":"Every morning, pull today's crypto fear and greed score and rating, compare it to the US stock market sentiment, and give me BTC and ETH prices with their 24-hour change so I know how to start the day."},{"title":"Spot crypto buying opportunities in fear","prompt":"Check the current crypto fear and greed index — if we're in extreme fear territory, show me BTC and ETH prices with their 24-hour moves and pull the last 90 days of sentiment history so I can see if this is a prolonged dip or a one-day spike."},{"title":"Compare crypto vs stock market mood","prompt":"I want to see how crypto market sentiment stacks up against US stock market fear and greed right now — grab both scores, today's BTC and ETH prices, and show me 30 days of crypto sentiment history so I can spot any divergence between the two markets."}],"resultDescription":"Returns a JSON object with: `source` (x402stock), `as_of` timestamp, `crypto` object with numeric score (0–100) and text rating (e.g. 'Extreme Fear', 'Greed'), `stock` object with numeric fear & greed score for comparison, `prices` map keyed by symbol (BTC, ETH) each with current price, 24h change, and 24h change percent, and `history` array of {date, score} objects covering the requested number of days.","failureModes":["Invalid `days` value (<=0 or non-integer) returns a 400 or validation error","days exceeding 3650 may be rejected or capped","Payment not provided or insufficient USDC via x402 returns 402 Payment Required","Upstream data source unavailability may return null values for score/price fields","Network timeout for slow upstream data aggregation"],"whenToPreferThis":"Use this endpoint when you need crypto market sentiment (Fear & Greed) alongside current BTC/ETH prices and historical sentiment data in a single call — especially when you also want to compare crypto sentiment to US stock market sentiment. Prefer this over the stock-only /api/v1/fear-greed endpoint when the use case is crypto-focused or requires both markets for comparison.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T13:08:48.863Z","isFirstParty":false}