Midprice History
Pools
Midprice History
Returns sampled midprice history for a pool over a time range.
GET
Midprice History
Path Parameters
The pool config PDA address.
Query Parameters
Sample interval. One of:
1m, 5m, 30m, 1h, 2h, 4h, 12h, 24h, raw.When set to raw, every recorded midprice point is returned without bucketing/sampling. Results are paginated via cursor.Start of the time range as a Unix timestamp in seconds (inclusive). Defaults to
end_time - 86400 (24 hours ago).End of the time range as a Unix timestamp in seconds (inclusive). Defaults to current time.
Number of records per page (1–1000). Only applicable when
timeframe=raw.Unix timestamp in seconds. Fetch records before this timestamp (newest first). Use the
next_cursor value from a previous response to paginate backwards through history. Only applicable when timeframe=raw.Solana cluster —
mainnet-beta or devnet.Response
Start of the requested range (Unix seconds).
End of the requested range (Unix seconds).
The sample interval used.
Timestamp of the oldest record in the current page (Unix seconds). Pass as
cursor to fetch the next (older) page. null when there are no more records. Only present when timeframe=raw.Array of midprice samples. One entry per time bucket that contains data (sampled modes), or every recorded point (
raw mode)..png?fit=max&auto=format&n=pH37fL0GL14scVCH&q=85&s=5749b485c8c5b2386a4cca404e97d6be)