Pyth Price Candles

Solana API endpoint for fetching historical OHLC data from Pyth oracle price feeds. Get open, high, low, close prices for any Pyth price feed account.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Fetch historical OHLC price candles from Pyth oracle price feeds using this API endpoint. Retrieve open, high, low, and close data for any price feed with flexible time resolutions, pagination, and time range filters.

Additional options like gap elimination ensure smooth charting, making this ideal for oracle-based price analysis, trading models, and reliable historical data without DEX noise.

Replaces: GET /price/{priceFeedId}/pyth-price-ohlc

Path Params
string
required

The public key identifying the Pyth price feed account

Query Params
string | null

Resolution of the data. Possible values: 1h, 1d, 1w, 1m, 1y, or a string parseable to seconds

int64 | null
≥ 0

Start time of the data to return (unix timestamp)

int64 | null
≥ 0

End time of the data to return (unix timestamp)

int32 | null
≥ 0

Limit of the number of records to return

int32 | null
≥ 0

Pagination offset

boolean

Eliminate gaps between candles by using previous close as next open. Default is true.

Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json