{"uid":"cap_XobQQw27A-bEjTWwlxtmq","slug":"crypto-market-sentiment-history-percentile-context-window-7ceed0c8","name":"Crypto Market Sentiment History – Percentile Context Window","description":"Whether the current reading is actually high or low, from a series captured every ~10 minutes: funding, open interest, Fear & Greed and BTC dominance, each as current, median, min, max and percentile over the window. A funding rate of 0.006% means nothing on its own; at the 89th percentile of the last 24 hours it means something. This is the question a snapshot endpoint cannot answer, whoever you buy it from.","url":"https://asistent-crypto.vercel.app/api/x402/data/market-history","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"required":[],"properties":{}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"pathParams":{"type":"object"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"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":"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_v2DDblpQV51m6heql_yLK","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 funding rates, open interest, Fear & Greed index, and BTC dominance as current/median/min/max/percentile snapshots over a rolling window of ~10-minute readings, giving statistical context to raw values.","exampleAgentPrompt":"Pull the market history context window for crypto right now — I want to know what percentile the current funding rate, open interest, Fear & Greed, and BTC dominance are each sitting at relative to recent readings, so I can tell if anything is at an extreme.","exampleUseCases":[{"title":"Detecting overheated funding before a trade","prompt":"Before I open a long on BTC, check whether the current funding rate is unusually high — like above the 80th percentile of the last 24 hours — so I know if I'm walking into crowded longs."},{"title":"Sentiment regime check for strategy switching","prompt":"I want to know if Fear & Greed and BTC dominance are both at extremes right now compared to recent history — give me the percentile ranks so I can decide whether to switch my portfolio to risk-off."},{"title":"Automated market condition alert","prompt":"Every hour, check the rolling percentile context for funding rate and open interest and alert me if either one crosses into the 90th percentile — I want to catch unusual leverage buildup early."}],"resultDescription":"A structured response containing, for each of funding rate, open interest, Fear & Greed index, and BTC dominance: the current reading, rolling median, rolling minimum, rolling maximum, and the current value's percentile rank within the captured window of ~10-minute snapshots. This allows an agent to assess whether any metric is at an extreme relative to recent history.","failureModes":["Insufficient history in rolling window if the service is newly started — percentile values may be less meaningful","Upstream data source unavailability causing stale or missing readings","Payment failure via x402 protocol resulting in 402 response and no data","Network timeout on Vercel serverless cold start"],"whenToPreferThis":"Choose this endpoint when you need statistical context for raw market metrics rather than just a snapshot value. It is uniquely valuable when you want to know not just what funding rate or Fear & Greed is, but whether that value is historically high or low within a recent window — enabling regime detection, alerting on extremes, and position-sizing decisions based on crowd positioning.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:42:34.272Z","isFirstParty":false}