{"uid":"cap_gUPzcsIEB6Jed0wzx3yPT","slug":"4sec-crypto-market-history-api-986525b9","name":"4SEC Crypto Market 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/api/v1/market/%7Bid%7D/history","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"properties":{"type":"string"}}},"responseSchema":{"type":"object","example":{"id":{"type":"string"},"days":{"type":"integer"},"history":{"type":"array","items":{"type":"object"}},"data_points":{"type":"integer"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.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_WOp6CjjTGDdsScbybD1vh","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 historical price and market data for a specific crypto asset across multiple DEXes, identified by asset ID and number of days","exampleAgentPrompt":"Pull the last 30 days of price history for the token with ID 'uniswap-eth' from the 4SEC multi-DEX aggregated market data API so I can analyze its recent trend.","exampleUseCases":[{"title":"Token price trend analysis","prompt":"Get me the 90-day historical price data for the token ID 'aave-usdc' so I can chart its performance over the last quarter."},{"title":"DeFi portfolio performance review","prompt":"Fetch the past 7 days of market history for token 'curve-3pool' from 4SEC — I want to see how many data points were recorded and what the price movements looked like."},{"title":"Automated trading signal research","prompt":"I need the last 60 days of aggregated DEX price history for token ID 'gmx-arb' — pull it from 4SEC so my trading bot can backtest a moving average strategy."}],"resultDescription":"Returns a JSON object containing the asset ID, number of days requested, an array of historical market data points (each with price and time metadata aggregated across multiple DEXes), and the total count of data points returned.","failureModes":["Invalid or unknown asset ID returns empty or error response","Requesting too many days may exceed available historical data","Malformed request properties result in schema validation errors","Payment failure via x402/USDC on Base blocks the request","Rate limiting or network timeouts on high-frequency calls"],"whenToPreferThis":"Choose this endpoint when you need multi-DEX aggregated historical price data for a specific crypto asset and want pay-per-request pricing via USDC on Base with no subscription required. Ideal for agents performing on-demand backtesting, trend analysis, or portfolio review without committing to a centralized data provider subscription.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T15:27:09.019Z","isFirstParty":false}