{"uid":"cap_ZwdcoYzbdHLtlQ2X8Q1aF","slug":"synapse-crypto-ohlc-candlestick-data-9e2be7b1","name":"Synapse Crypto OHLC Candlestick Data","description":"Public data and utility APIs paid per call in USDC on Base (x402). No accounts, no API keys. 174 routes: crypto/equity data, onchain reads, DNS/email/security intel, geo/weather, x402 payment diagnostics, dev utilities and more.","url":"https://anibalb.duckdns.org/x402/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","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","properties":{}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"candles":[[1792612800000,84416,84541,84416,84465]]}},"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_tQWaId47bONApd395Pb5M","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 (open, high, low, close) candlestick data for a cryptocurrency pair, paid per call in USDC via x402 with no API key required.","exampleAgentPrompt":"Can you fetch the OHLC candlestick data for Bitcoin right now from Synapse — I need the open, high, low, and close prices for the latest candle?","exampleUseCases":[{"title":"Crypto trading bot price feed","prompt":"Pull the latest OHLC candlestick data for ETH so my trading strategy can check whether the current close is above the open before placing a trade."},{"title":"Technical analysis chart builder","prompt":"Get me hourly OHLC candles for Bitcoin so I can plot a candlestick chart and run some technical indicators on recent price action."},{"title":"Crypto price monitoring alert","prompt":"Fetch the most recent OHLC bar for Solana and tell me if the high exceeded $200 in the last candle — I want to set an alert if it did."}],"resultDescription":"Returns a JSON object containing a 'candles' array where each element is a tuple of [timestamp (ms), open, high, low, close] representing one OHLC candlestick period for the requested cryptocurrency.","failureModes":["Missing or invalid cryptocurrency symbol returns an error or empty candles array","Payment failure via x402 returns a 402 Payment Required response","Unsupported trading pair may return no data or an error","Network timeout if the upstream price data source is unavailable","Invalid query parameters result in a 400-level error"],"whenToPreferThis":"Choose this endpoint when you need raw OHLC candlestick price data for a cryptocurrency with no API key signup, paying only per call in USDC on Base. Ideal for agents operating in a trustless, account-free environment or when integrating micro-payment workflows via x402. Not suited for streaming tick data or order book depth.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:41:56.998Z","isFirstParty":false,"canonicalSlug":"synapse-crypto-ohlc-candlestick-data-9e2be7b1"}