{"uid":"cap_kmydIliTt3Uq5V1ZReQoa","slug":"crypto-ohlcv-chart-technical-indicators-api-x402-ee0aa4be","name":"Crypto OHLCV Chart & Technical Indicators API (x402)","description":"Pay-per-call crypto microdata for trading/onchain AI agents via x402 (USDC on Base): Base gas, token risk, balances, multi-venue prices, Hyperliquid book/funding, kimchi premium. No API keys.","url":"https://kr-x402-mvp.kgy5612.workers.dev/v1/crypto/chart?utm_source=zero.xyz","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"],"type":"string"},"queryParams":{"type":"object","properties":{"limit":{"type":"integer","maximum":500,"minimum":10,"description":"Number of candles (default 100)"},"symbol":{"type":"string","examples":["BTC","ETH","SOLUSDT"],"description":"Base asset or pair (default BTC); quote is USDT"},"interval":{"enum":["1m","5m","15m","1h","4h","1d"],"type":"string","description":"Candle size (default 1h)"}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"n":100,"last":80436.6,"source":"binance","symbol":"BTCUSDT","candles":[{"c":80305.21,"h":80418.67,"l":79916,"o":80058.01,"t":"2026-10-29T13:00:00Z","v":792.98}],"interval":"1h","change_pct":1.8,"indicators":{"zone":{"low":79900.9,"high":80519.9,"in_zone":true},"atr14":412.7,"ema20":80210.4,"ema50":79880.1,"rsi14":58.3,"trend":"up","atr14_pct":0.51},"updated_at":"2026-10-29T14:20:00Z"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_CwTU7bi6fzMLY1bTac6-z","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches OHLCV candlestick chart data with technical indicators (RSI, EMA, ATR, trend zone) for a given crypto symbol and interval, paid per-call via x402 USDC on Base.","exampleAgentPrompt":"Pull the last 100 hourly candles for BTC and give me the RSI, EMA-20, EMA-50, ATR, and current trend direction so I can decide whether to enter a trade.","exampleUseCases":[{"title":"Momentum check before trade entry","prompt":"Fetch the last 50 four-hour candles for ETH and tell me if it's trending up, what the RSI-14 is, and whether price is inside the support/resistance zone right now."},{"title":"Daily crypto briefing for trading bot","prompt":"Get me today's 1-day candle for BTC with EMA-20, EMA-50, RSI, and ATR so my trading agent can decide whether to hold or rebalance."},{"title":"Short-term scalp setup on SOL","prompt":"Pull 100 five-minute candles for SOL and tell me the current ATR, RSI, and trend direction — I'm looking for a scalp entry."}],"resultDescription":"Returns an array of OHLCV candles (open, high, low, close, volume, timestamp) for the requested symbol and interval, plus computed technical indicators including RSI-14, EMA-20, EMA-50, ATR-14 (absolute and percentage), trend direction (up/down/sideways), price zone bounds and whether price is currently in-zone, last price, percentage change, total candle count, data source, and update timestamp.","failureModes":["Invalid symbol returns error or empty candles array","Unsupported interval value returns validation error","Limit outside 10-500 range returns schema validation error","Payment not received via x402 returns 402 Payment Required","Binance data source unavailable causes delayed or stale data","Missing required query param defaults applied (BTC, 1h, 100 candles)"],"whenToPreferThis":"Choose this endpoint when an AI trading or onchain agent needs ready-computed technical indicators (RSI, EMA, ATR, trend zone) alongside raw OHLCV data without building the calculations itself. It is ideal for agents operating without API keys, paying micro-amounts per call via x402 USDC on Base. Prefer this over raw exchange APIs when you need pre-aggregated indicator signals in a single call, especially for low-frequency decision loops where $0.002/call is acceptable.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:42:21.648Z","isFirstParty":false,"canonicalSlug":"crypto-ohlcv-chart-technical-indicators-api-x402-ee0aa4be"}