{"uid":"cap_-32R5FdFiiAqPNqJeq0n3","slug":"ozmium-ohlc-candle-history-api-ecdafafc","name":"Ozmium OHLC Candle History API","description":"OHLC history with window extremes (highest high / lowest low over the window). Crypto via Coinbase (GET /v1/candles?product=ETH-USD&days=30; hourly bars <= 7d, six-hour <= 31d, daily <= 350d). Metals / indices / forex / stocks via ?sym=XAU&cls=Commodities[&quote=USD]. Returns { productId, days, high, low, candles, series: [[startSec, open, high, low, close], ...] } oldest first. Full details: GET /v1.","url":"https://ozmium.org/v1/candles","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":{"days":{"type":"string"},"product":{"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"data":{"type":"object","properties":{"low":{"type":"number"},"days":{"type":"number"},"high":{"type":"number"},"candles":{"type":"number"},"productId":{"type":"string"}}},"network":{"type":"string"}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_WVPqyReBxofijAZNY8cRD","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns OHLC candlestick history with window high/low extremes for crypto, metals, forex, indices, and stocks","exampleAgentPrompt":"Can you pull the OHLC candle history for ETH-USD over the last 30 days from Ozmium, including the highest high and lowest low across the whole window?","exampleUseCases":null,"resultDescription":"Returns a JSON object with productId, days, window-level high and low extremes, total candle count, and a time series array of [startSec, open, high, low, close] tuples ordered oldest-first. Bar resolution is hourly for up to 7 days, six-hourly for up to 31 days, and daily for up to 350 days.","failureModes":["Invalid product symbol returns error or empty candles array","days parameter exceeding 350 results in unsupported range error","Missing required query parameters returns 400 or malformed response","Unknown asset class or unsupported sym/cls combination returns error","x402 payment failure (insufficient USDC balance) blocks the request"],"whenToPreferThis":"Use this endpoint when you need historical OHLC price data with windowed high/low extremes across crypto (via Coinbase), metals, forex, indices, or stocks in a single unified API. Prefer it over raw Coinbase candles when you also need non-crypto assets or want the pre-computed window extremes without post-processing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:53:17.799Z","isFirstParty":false}