Skip to main content
POST
/
v1
/
solana
/
dex
/
prices
/
get-price
Get Price
curl --request POST \
  --url https://refract.prismapi.io/v1/solana/dex/prices/get-price \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --data '
{
  "tokens": [
    "<string>"
  ]
}
'
[
  {
    "token": "<string>",
    "usd_price": 123,
    "block_slot": 123,
    "block_time": 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
tokens
string[]
required

List of token addresses to retrieve prices for.

Required array length: 1 - 1000 elements

Response

List of token prices for the specified tokens.

token
string

Token mint address.

usd_price
number

Current token price.

block_slot
integer

Solana block slot number.

block_time
integer

Timestamp of the block.