Skip to main content

Don't have an API key yet?

Sign-up to Moralis to get your free API key and start building today.

Get Your Free API Key

Get OHLCV by Pair Address Mainnet Only

Need a candlestick chart for your website?

Embed our free chart widget directly on your site in just a few clicks

Embed Chart
Ethereum Logo

Looking for OHLCV data on EVM?

Access OHLCV data by pair address on EVM using our API.

Explore EVM API
GEThttps://solana-gateway.moralis.io/token/:network/pairs/:address/ohlcv

Gets the candlesticks for a specific pair address

PATH PARAMS
networkstringrequired
The network to query
addressstringrequired
The address to query
QUERY PARAMS
cursorstring
The cursor to the next page
fromDatestringrequired
The starting date (format in seconds or datestring accepted by momentjs)
toDatestringrequired
The ending date (format in seconds or datestring accepted by momentjs)
timeframestringrequired
The interval of the candle stick
currencystringrequired
The currency format
limitnumber
The limit per page
Responses
200
400Bad Request
404Not Found
429Too Many Requests
500Internal Server Error
API KEY
curl --request GET \
--url 'https://solana-gateway.moralis.io/token/mainnet/pairs/9d9mb8kooFfaD3SctgZtkxQypkshx6ezhbKio89ixyy2/ohlcv?fromDate=2025-08-01T00%3A00%3A00Z&toDate=2025-08-10T00%3A00%3A00Z&timeframe=1h&currency=usd&limit=5' \
--header 'accept: application/json' \
--header 'X-API-Key: YOUR_API_KEY'
Response Example
{
"cursor": "",
"page": "",
"pairAddress": "",
"tokenAddress": "",
"timeframe": "",
"currency": "",
"result": {
"timestamp": "",
"open": "",
"close": "",
"high": "",
"low": "",
"volume": "",
"trades": ""
}
}