{"uid":"cap_9lovcXs94xFwnLGg2eIYe","slug":"4sec-crypto-price-history-api-fa0f19aa","name":"4SEC Crypto Price History API","description":"Real-time multi-DEX aggregated crypto market data. Pay per request with USDC on Base via x402 protocol.","url":"https://api.foursec.xyz/price/history/%7Bsymbol%7D","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"properties":{"type":"string"}}},"responseSchema":{"type":"object","example":{"symbol":{"type":"string"},"candles":{"type":"array","items":{"type":"object"}},"interval":{"type":"string"},"total_candles":{"type":"integer"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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":"down","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_r60hGZYHHQsigcZPL_DfW","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns historical OHLC candlestick price data for a given crypto token symbol, aggregated across multiple DEXs","exampleAgentPrompt":"Can you pull the historical price candles for ETH from 4SEC's multi-DEX aggregated market data so I can see how it's been trading?","exampleUseCases":[{"title":"DeFi token price chart analysis","prompt":"Fetch the historical candlestick data for WBTC from the 4SEC market data API so I can chart its price movements across DEXes over time."},{"title":"Trading bot price history ingestion","prompt":"I need the full OHLC candle history for USDC/ETH from 4SEC's multi-DEX feed so my trading bot can backtest a strategy."},{"title":"Crypto portfolio performance review","prompt":"Pull the historical price data candles for SOL from 4SEC so I can see how it's performed and calculate returns over the past period."}],"resultDescription":"Returns a JSON object containing the queried token symbol, an array of OHLC candlestick objects (each representing a time interval of price data aggregated across multiple DEXs), the interval string, and the total number of candles returned.","failureModes":["Invalid or unrecognized token symbol returns an error or empty candle array","Symbol not traded on supported DEXs results in no data","Rate limiting or payment failure via x402 protocol blocks the request","Malformed symbol path parameter causes a 400 or 404 error","Insufficient USDC balance on Base for micropayment causes 402 rejection"],"whenToPreferThis":"Choose this endpoint when you need historical candlestick/OHLC price data for a crypto token aggregated across multiple decentralized exchanges (DEXs), especially when operating in a pay-per-request, on-chain micropayment context using x402 on Base. Prefer it over centralized exchange APIs when you need DEX-native price data without subscription commitments.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T14:29:14.862Z","isFirstParty":false}