{"uid":"cap_3Ubp489r74t2ad3cIerhz","slug":"crypto-ohlcv-candles-with-technical-indicators-x402-74b02efd","name":"Crypto OHLCV Candles with Technical Indicators (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/history?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_Kjbu1zJwBQPYb-k-yqm3U","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":"Returns OHLCV candle history with pre-computed 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 200 hourly BTC candles with RSI, EMA, ATR, and trend zone info so I can decide whether to enter a long position.","exampleUseCases":[{"title":"Pre-trade momentum check for BTC","prompt":"Before I buy BTC, grab me the last 100 four-hour candles including RSI, EMA-20, EMA-50, and whether we're inside the support zone right now."},{"title":"Automated SOL trend scanner","prompt":"Fetch 500 one-hour candles for SOLUSDT with trend direction, ATR, and RSI so my trading bot can decide if the momentum is strong enough to open a position."},{"title":"Daily ETH technical report","prompt":"Give me ETH's last 100 daily candles with EMA crossover data, ATR percentage, and the current trend label so I can write a morning market summary."}],"resultDescription":"Returns a JSON object containing: array of OHLCV candles (open, high, low, close, volume, timestamp), the number of candles returned, last price, interval, symbol, data source (e.g. Binance), percent change, and a pre-computed indicators block with RSI-14, EMA-20, EMA-50, ATR-14, ATR as percent of price, trend direction (up/down/sideways), and a support/resistance zone (low, high, in_zone boolean), plus an updated_at timestamp.","failureModes":["Invalid symbol returns an error or empty candle array","Unsupported interval value (not in enum) causes a 400-level error","limit out of range (below 10 or above 500) rejected by schema validation","Payment failure (x402 USDC on Base not completed) results in 402 response blocking data","Stale data if upstream Binance feed is delayed","Unknown pair with non-USDT quote may default or error"],"whenToPreferThis":"Choose this endpoint when an AI trading agent needs OHLCV candle history bundled with pre-computed technical indicators (RSI, EMA, ATR, trend, zone) in a single pay-per-call request with no API key setup. It is ideal for lightweight agents that want to avoid managing separate TA libraries or paying for a full data subscription. Prefer it over raw exchange APIs when you need indicators pre-computed server-side and can pay $0.002 USDC per call via x402 on Base.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-04T13:11:56.350Z","isFirstParty":false,"canonicalSlug":"crypto-ohlcv-candles-with-technical-indicators-x402-319b8d4b"}