GET /data/charts/{mint}

Auth X-Hub-Key from API_HUB_KEYExecute GET /run/jupiter_portfolio/data/charts/{mint}Cache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing free

OHLCV price/mcap candlestick chart for a Solana token mint (datapi v2).

Parameters

nameintypedescription
mintpathstrrequiredSolana token mint address
example: JUPyiwrYJFskUPiHa7hkeR8VUtAeFoSYbKedZNsDvCN
intervalquerystrrequiredCandle interval: 1_MINUTE, 5_MINUTE, 15_MINUTE, 1_HOUR, 4_HOUR, 1_DAY
default: 1_HOUR
example: 1_HOUR
baseAssetquerystrrequiredBase asset mint address
example: JUPyiwrYJFskUPiHa7hkeR8VUtAeFoSYbKedZNsDvCN
candlesqueryintrequiredNumber of candles
default: 50
example: 10
typequerystrrequiredChart series type: price or mcap
default: price
example: price
toqueryintrequiredEnd timestamp in Unix milliseconds
example: 1795555000000

Response

type: object
data key: candles
pagination: none
sample: {
  "candles": "array[10]"
}

Safe request

Reads the credential from API_HUB_KEY; it never appears in the URL.

curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/jupiter_portfolio/data/charts/JUPyiwrYJFskUPiHa7hkeR8VUtAeFoSYbKedZNsDvCN?interval=1_HOUR&baseAsset=JUPyiwrYJFskUPiHa7hkeR8VUtAeFoSYbKedZNsDvCN&candles=10&type=price&to=1795555000000"