Skip to main content
POST
/
v1
/
solana
/
dex
/
prices
/
get-price-history
Get Price History
curl --request POST \
  --url https://refract.prismapi.io/v1/solana/dex/prices/get-price-history \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --data '
{
  "tokens": [
    "Z4d9YXR4pSkdKcu9UBcwxHp7i32buzdDtAR1b1Gbonk"
  ],
  "from": "2026-04-27T00:00:00Z",
  "to": "2026-04-27T01:00:00Z",
  "interval": 3600
}
'
[
  {
    "token": "<string>",
    "prices": [
      {
        "timestamp": 123,
        "usd_price": 123,
        "usd_volume": 123
      }
    ]
  }
]

Documentation Index

Fetch the complete documentation index at: https://docs.prismapi.io/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

X-Api-Key
string
header
required

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

Body

application/json
tokens
string[]
required

Token addresses to retrieve price history for. Accepts between 1 and 100 tokens per request.

Required array length: 1 - 100 elements
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.

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
string
prices
object[]