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": "<string>",
  "interval": 123,
  "from": 123,
  "to": 123,
  "count": 123
}
'
[
  {
    "timestamp": 123,
    "open": 123,
    "high": 123,
    "low": 123,
    "close": 123,
    "volume": 123,
    "count": 123
  }
]

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

Time interval to aggregate candles by.

from
integer

Start time for the candles range. Must be used in conjunction with to.

to
integer

End time for the candles range. Must be used in conjunction with from or count. Defaults to the current time.

count
integer

Number of candles to return. Must be used in conjunction with to.

Response

Price candles for the specified token.

timestamp
integer

Timestamp of candle start.

open
number

Opening price.

high
number

Highest price.

low
number

Lowest price.

close
number

Closing price.

volume
number

Trading volume.

count
integer

Number of trades in the candle.