{"uid":"cap_N_L2Ot7D4rUunN1LqrdhY","slug":"vybe-solana-analytics-api-pyth-price-feed-ohlc-candles-dd9de2f2","name":"Vybe Solana Analytics API – Pyth Price Feed OHLC Candles","description":"Read access to Solana on-chain data — tokens, wallets, markets, prices, trades, transfers. No API key, no signup. Pay in USDC per request with the x402 protocol; the per-route price is declared in `x-payment-info`. WebSocket streaming uses prepaid credits.","url":"https://x402-api.vybenetwork.xyz/v4/oracle/pyth/pricefeeds/%7BpriceFeedAddress%7D/candles?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["priceFeedAddress"],"properties":{"page":{"type":"integer","description":"Pagination offset"},"limit":{"type":"integer","description":"Limit of the number of records to return"},"timeEnd":{"type":"integer","description":"End time of the data to return (unix timestamp)"},"timeStart":{"type":"integer","description":"Start time of the data to return (unix timestamp)"},"resolution":{"type":"string","description":"Resolution of the data. Possible values: 1h, 1d, 1w, 1m, 1y, or a string parseable to seconds"},"priceFeedAddress":{"type":"string","description":"The public key identifying the Pyth price feed account"},"eliminateCloseToOpenGaps":{"type":"boolean","description":"Eliminate gaps between candles by using previous close as next open. Default is true."}}},"responseSchema":{"$ref":"#/components/schemas/PythPriceOhlcReturn"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.009","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.009/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.015","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.015","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Krt4hMxY8fimVLP62TaNN","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.015","costPer":"request","priority":0,"asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns OHLC candlestick data for a specified Pyth oracle price feed on Solana, with configurable time range and resolution","exampleAgentPrompt":"Can you pull hourly OHLC candle data for the Pyth SOL/USD price feed (address: H6ARHf6YXhGYeQfUzQNGk6rDNnLBQKrenN712K4AQJEG) from January 1, 2024 to January 31, 2024, using 1h resolution, and return the first 50 candles?","exampleUseCases":null,"resultDescription":"Returns an array of OHLC (open, high, low, close) candlestick records for the specified Pyth price feed, each timestamped and aligned to the requested resolution. Close-to-open gaps can optionally be eliminated for cleaner charting.","failureModes":["Invalid or non-existent priceFeedAddress returns 404 or empty dataset","Malformed resolution string returns 400 bad request","timeStart after timeEnd returns empty or error response","Payment not provided or insufficient USDC results in 402 Payment Required","Requesting too large a time range or limit may result in truncated or paginated results","Invalid unix timestamp format causes 400 error"],"whenToPreferThis":"Use this endpoint when you need structured OHLC candlestick price data sourced from Pyth oracle price feeds on Solana, especially for DeFi charting, backtesting, or price analysis. Prefer this over generic token price APIs when you need high-frequency oracle-grade data with configurable resolution (1h, 1d, 1w, etc.) and gap elimination for continuous charting.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-28T06:37:35.370Z","isFirstParty":false,"canonicalSlug":"vybe-solana-analytics-api-pyth-price-feed-ohlc-candles-dd9de2f2"}