Skip to main content
POST
Get Price History

Authorizations

x-api-key
string
header
required

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

Body

application/json
from
string<date-time>
required

Start of the history range, as a date-time RFC3339 string.

interval
integer
required

Sampling interval between data points, in seconds.

tokens
string[]

Token addresses to retrieve price history for.

Required array length: 1 - 100 elements
pools
string[]

Pool addresses to retrieve price history for.

Required array length: 1 - 1000 elements
to
string<date-time>

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

Response

Price history for the specified tokens.

token_address
string
pool_address
string
prices
object[]