Skip to main content
POST
Get Price Candles

Authorizations

x-api-key
string
header
required

Your Prism API key. You can get one for free in the Prism Dashboard.

Body

application/json
interval
integer
required

Sampling interval between data points, in seconds.

token
string

Token address to filter by.

pool
string

Pool address to filter by.

from
string<date-time>

Start of the candle range, as a date-time RFC3339 string. Can be combined with to to define a bounded range.

to
string<date-time>

End of the candle range, as a date-time RFC3339 string. Defaults to the current time.

count
integer

Number of candles to return. Must be combined with from or to.

Response

Price candles for the specified token.

timestamp
string<date-time>
open
number
high
number
low
number
close
number
volume
number
count
integer