{"uid":"cap_F8bFBHkT0e8WO7xM0a7uB","slug":"2s-io-crypto-coin-historical-market-chart-f794c0e4","name":"2s.io Crypto Coin Historical Market Chart","description":"Historical market chart for a coin by CoinGecko id: time-series of price, market cap, and volume over the last N days (1-365) in USD or another vs-currency. Granularity is auto-selected by range (hourly for short windows, daily for long). For backtests, charts, and trend analysis.","url":"https://2s.io/api/crypto/coin-history","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","queryParams"],"properties":{"type":{"const":"http"},"method":{"const":"GET"},"queryParams":{"type":"object","required":["id"],"properties":{"id":{"type":"string","maxLength":80,"minLength":1,"description":"CoinGecko coin id, e.g. bitcoin."},"vs":{"type":"string","maxLength":10,"description":"vs-currency (default usd)."},"days":{"type":"integer","maximum":365,"minimum":1,"description":"Lookback in days (default 7)."}},"additionalProperties":false}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0036","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","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.0036/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0036","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0036","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_xC1ST5eWhgWJCXw0x9mnS","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0036","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns a time-series of price, market cap, and volume for a cryptocurrency over a specified number of days (1–365), auto-granulated by range, powered by CoinGecko data.","exampleAgentPrompt":"Pull the historical price, market cap, and volume chart for bitcoin from CoinGecko over the last 90 days in USD so I can run a backtest.","exampleUseCases":null,"resultDescription":"A time-series dataset containing price, market cap, and total volume data points for the requested cryptocurrency over the specified lookback window, denominated in the chosen vs-currency. Granularity is automatically set to hourly for short windows and daily for longer ones.","failureModes":["Invalid or unknown CoinGecko coin ID returns an error or empty result","Days parameter out of range (below 1 or above 365) rejected by schema validation","Unsupported vs-currency code returns an error","Rate limiting or payment failure (x402) prevents data retrieval","CoinGecko upstream outage causes degraded or missing data"],"whenToPreferThis":"Use this endpoint when you need historical cryptocurrency market data (price, market cap, volume) for backtesting, charting, or trend analysis over a flexible lookback window up to 1 year. Prefer it over real-time price endpoints when historical context or time-series analysis is the goal. Ideal when CoinGecko coin IDs are known and granularity auto-selection is acceptable.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T07:10:53.321Z","isFirstParty":false}