{"uid":"cap_cBu2qxSBe5Z9Z37wfz74b","slug":"crypto-ohlc-candles-with-technical-indicators-x402-e0202508","name":"Crypto OHLC 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/crypto/ohlc?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_mt4Ips2Og4avMjZrmOGRI","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 OHLC candlestick data with technical indicators (RSI, EMA, ATR, trend zone) for a given crypto asset, paid per-call via x402 USDC microtransaction.","exampleAgentPrompt":"Can you pull the last 100 hourly candles for BTC and tell me what the RSI, EMA20, EMA50, and current trend zone look like?","exampleUseCases":[{"title":"Trading bot momentum check","prompt":"Fetch the last 200 1-hour OHLC candles for ETH and tell me whether RSI is above 60 and if the price is currently inside the trend zone — I want to decide whether to enter a long position."},{"title":"Daily crypto trend briefing","prompt":"Get me the last 100 daily candles for SOL with technical indicators — I want to know the trend direction, current ATR percentage, and whether we're near support or resistance today."},{"title":"Short-term scalping signal","prompt":"Pull 5-minute candles for BTCUSDT, limit to 50 candles, and tell me the current RSI14 and EMA20 so I can decide if there's a scalping opportunity right now."}],"resultDescription":"Returns a JSON object with an array of OHLCV candles (open, high, low, close, volume, timestamp), the last price, overall price change percentage, interval, number of candles, data source, and a computed indicators block containing RSI14, EMA20, EMA50, ATR14, ATR14 as a percentage of price, trend direction (up/down/sideways), and a support/resistance zone with high/low bounds and a boolean for whether price is currently inside that zone.","failureModes":["Invalid symbol returns error or empty candles","Interval enum value not matching allowed values (1m, 5m, 15m, 1h, 4h, 1d) returns 400","Limit outside 10-500 range returns validation error","Payment not provided or insufficient USDC causes 402 response requiring x402 payment","Binance upstream outage may cause stale or missing data","Unknown or illiquid pair may return no candles"],"whenToPreferThis":"Use this endpoint when an AI trading agent needs both raw OHLCV price history AND pre-computed technical indicators (RSI, EMA, ATR, trend zone) in a single call, without managing API keys — especially when operating with a USDC wallet on Base and wanting pay-per-call pricing via x402. Prefer this over free exchange APIs when you need indicators already computed, and over heavier analytics platforms when you want minimal setup and microtransaction billing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:42:14.333Z","isFirstParty":false,"canonicalSlug":"crypto-ohlc-candles-with-technical-indicators-x402-b1a6f7f0"}