{"uid":"cap_Csf4-l6GhFIkPImH6zSns","slug":"binance-klines-ohlcv-candles-via-x402-3d6a5776","name":"Binance Klines (OHLCV Candles) via 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/api/binance/klines?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_YmrO3TWce76gTZn7CwNK6","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 Binance OHLCV candlestick data with technical indicators (RSI, EMA, ATR, trend, support/resistance zone) for a given crypto pair and interval, paid per-call in USDC on Base via x402.","exampleAgentPrompt":"Pull the last 100 hourly candles for BTC from Binance and tell me the RSI, EMA20, EMA50, trend direction, and whether it's currently in a support/resistance zone.","exampleUseCases":[{"title":"Trading bot momentum check","prompt":"Get the last 50 four-hour candles for ETH and tell me the RSI14, trend, and ATR so I can decide whether to enter a long position."},{"title":"Daily crypto market review","prompt":"Fetch the past 30 daily candles for SOLUSDT and summarize the trend, EMA20 vs EMA50 crossover status, and percent change over that period."},{"title":"Intraday scalping signal","prompt":"Give me the last 20 five-minute candles for BTC and tell me whether it's inside a support/resistance zone and what the short-term trend looks like."}],"resultDescription":"Returns a JSON object containing: the requested number of OHLCV candles (open, high, low, close, volume, timestamp), the latest close price, percent change, source exchange, symbol, interval, and a computed indicators block with RSI14, EMA20, EMA50, ATR14, ATR14 as a percent, trend direction (up/down/sideways), and a support/resistance zone with low/high bounds and an in-zone boolean flag. Also includes an updated_at timestamp.","failureModes":["Invalid symbol returns error or empty candle array","Unsupported interval value returns validation error","Limit outside 10–500 range returns 400 bad request","Payment not made or insufficient USDC balance triggers 402 Payment Required","Binance upstream outage may return 502 or stale data","Missing required query params defaults silently (symbol=BTC, interval=1h, limit=100)"],"whenToPreferThis":"Choose this endpoint when an AI trading agent needs structured OHLCV candlestick data with pre-computed technical indicators (RSI, EMA, ATR, trend, zone) from Binance without managing API keys — ideal for lightweight per-call usage paid in USDC via x402. Prefer over raw exchange APIs when you want indicators bundled with candles in a single call, and over subscription APIs when cost-per-use matters more than a flat rate.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-02T18:33:35.172Z","isFirstParty":false,"canonicalSlug":"binance-klines-ohlcv-candles-via-x402-3d6a5776"}