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 freeOHLCV price/mcap candlestick chart for a Solana token mint (datapi v2).
Parameters
| name | in | type | description | |
|---|---|---|---|---|
mint | path | str | required | Solana token mint address example: JUPyiwrYJFskUPiHa7hkeR8VUtAeFoSYbKedZNsDvCN |
interval | query | str | required | Candle interval: 1_MINUTE, 5_MINUTE, 15_MINUTE, 1_HOUR, 4_HOUR, 1_DAY default: 1_HOURexample: 1_HOUR |
baseAsset | query | str | required | Base asset mint address example: JUPyiwrYJFskUPiHa7hkeR8VUtAeFoSYbKedZNsDvCN |
candles | query | int | required | Number of candles default: 50example: 10 |
type | query | str | required | Chart series type: price or mcap default: priceexample: price |
to | query | int | required | End 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"