Skip to main content
POST
/
v1
/
solana
/
dex
/
prices
/
get-price-candles
Get Price Candles
curl --request POST \
  --url https://refract.prismapi.io/v1/solana/dex/prices/get-price-candles \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --data '
{
  "token": "Z4d9YXR4pSkdKcu9UBcwxHp7i32buzdDtAR1b1Gbonk",
  "interval": 60,
  "from": "2026-04-27T00:00:00Z",
  "to": "2026-04-27T01:00:00Z"
}
'
[
  {
    "timestamp": 123,
    "open": 123,
    "high": 123,
    "low": 123,
    "close": 123,
    "volume": 123,
    "count": 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
token
string
required

Token address to retrieve price candles for.

interval
integer
required

Sampling interval between data points, in seconds.

from
string<date-time>

Start of the candle range, as a date-time RFC3339 string. Must 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. Must be combined with either from (to define a bounded range) or count (to return the N most recent candles ending at to).

count
integer

Number of candles to return, ending at to. Must be combined with to.

Response

Price candles for the specified token.

timestamp
integer
open
number
high
number
low
number
close
number
volume
number
count
integer