{"uid":"cap_yFlibNRayCVclMbtH9gJp","slug":"crypto-ohlcv-candlesticks-with-precomputed-technical-indicators-84716947","name":"Crypto OHLCV Candlesticks with Precomputed Technical Indicators","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/api/v1/crypto/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_e6zaOWpMGA6FjKzVuuetc","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 candlestick data for major USDT crypto pairs with precomputed technical indicators (EMA20, EMA50, RSI14, ATR14, trend, pullback zone) so trading agents skip the math.","exampleAgentPrompt":"Fetch the last 100 hourly candles for BTC with all indicators precomputed — I need the EMA20, EMA50, RSI14, ATR14, current trend, and whether it's in a pullback zone right now.","exampleUseCases":[{"title":"BTC trend check before trade entry","prompt":"Is BTC currently in an uptrend on the 4-hour chart, and is it pulling back into the EMA20 zone? Give me the RSI14 and ATR as well — I want the last 200 candles."},{"title":"ETH momentum scan on 15-minute chart","prompt":"Pull the last 50 fifteen-minute candles for ETH and tell me the current RSI14, EMA20, EMA50, and trend direction so I can decide if momentum is building."},{"title":"Daily swing setup for altcoins","prompt":"Get me 100 daily candles for SOL with EMA20, EMA50, RSI14, ATR, and the pullback zone — I'm looking for a swing trade setup and need to know the trend and whether price is in the zone."}],"resultDescription":"Returns a JSON object containing: an array of OHLCV candles (timestamp, open, high, low, close, volume) ordered oldest to newest; the last close price; percentage change over the requested window; EMA20 and EMA50 values; RSI14 value; ATR14 in both absolute and percentage terms; a trend label ('up', 'down', or 'range'); the pullback zone bounds (EMA20 ± 0.75×ATR); and an in_zone boolean indicating whether the current price is within the pullback zone.","failureModes":["Invalid or unsupported symbol returns an error — only major USDT pairs (BTC, ETH, SOL, BNB, XRP, DOGE, ADA, AVAX, LINK, SUI, etc.) are supported","Limit out of range (below 10 or above 500) returns a validation error","Invalid interval string returns an error — must be one of 1m, 5m, 15m, 1h, 4h, 1d","Payment failure (x402) if USDC micropayment of $0.002 is not completed","Upstream data source (Binance) downtime may cause 5xx or stale data responses"],"whenToPreferThis":"Choose this endpoint when a trading agent needs OHLCV candlestick data AND precomputed indicators (EMA, RSI, ATR, trend, pullback zone) in a single call, avoiding the need to pull raw candles and compute indicators separately. Ideal for autonomous trading bots, signal generators, and research agents that need a fast, low-cost snapshot of a crypto asset's technical state. Prefer over raw exchange APIs when you want all math done server-side and the response immediately actionable. Best for USDT-quoted major pairs across multiple timeframes.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-01T06:38:24.439Z","isFirstParty":false,"canonicalSlug":"crypto-ohlcv-candlesticks-with-precomputed-technical-indicators-7c259e78"}