Pyth Price Candles
get-pyth-price-candlesPyth Price Candles. Calls only GET /v4/oracle/pyth/pricefeeds/{priceFeedAddress}/candles and returns that response. 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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"priceFeedAddress": "<priceFeedAddress>"
},
"name": "get-pyth-price-candles"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Pagination offset | |
| limit | No | Limit of the number of records to return | |
| timeEnd | No | End time of the data to return (unix timestamp) | |
| timeStart | No | Start time of the data to return (unix timestamp) | |
| resolution | No | Enumeration of supported resolution deprecated values for time range or aggregation configuration. | |
| priceFeedAddress | Yes | Typed Solana public key identifier used across request parameters and response fields. Path parameter for /v4/oracle/pyth/pricefeeds/{priceFeedAddress}/candles. | |
| eliminateCloseToOpenGaps | No | Eliminate gaps between candles by using previous close as next open. Default is true. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | ||
| status | No |