Skip to main content
GET
/
token
/
{network}
/
pairs
/
{address}
/
ohlcv
Get candlesticks for a pair address
curl --request GET \
  --url https://solana-gateway.moralis.io/token/{network}/pairs/{address}/ohlcv \
  --header 'X-Api-Key: <api-key>'
{
  "page": 123,
  "pairAddress": "<string>",
  "tokenAddress": "<string>",
  "timeframe": "1min",
  "currency": "usd",
  "cursor": "<string>",
  "result": [
    {
      "timestamp": "<string>",
      "open": 123,
      "close": 123,
      "high": 123,
      "low": 123,
      "volume": 123,
      "trades": 123
    }
  ]
}
Endpoint cost: CUs. Learn more about compute units.

Authorizations

X-Api-Key
string
header
required

Path Parameters

network
enum<string>
required

The network to query

Available options:
mainnet,
devnet
address
string
required

The address to query

Example:

"So11111111111111111111111111111111111111112"

Query Parameters

cursor
string

The cursor to the next page

fromDate
string
default:2024-10-09
required

The starting date (format in seconds or datestring accepted by momentjs)

toDate
string
default:2024-10-10
required

The ending date (format in seconds or datestring accepted by momentjs)

timeframe
enum<string>
default:1min
required

The interval of the candle stick

Available options:
1s,
10s,
30s,
1min,
5min,
10min,
30min,
1h,
4h,
12h,
1d,
1w,
1M
currency
enum<string>
default:usd
required

The currency format

Available options:
usd,
native
limit
number
default:100

The limit per page

Required range: 1 <= x <= 1000

Response

200 - application/json
page
number
required

The page number

pairAddress
string
required

The pair address

tokenAddress
string | null
required

The token address

timeframe
enum<string>
default:1min
required

The interval of the candle stick

Available options:
1s,
10s,
30s,
1min,
5min,
10min,
30min,
1h,
4h,
12h,
1d,
1w,
1M
currency
enum<string>
default:usd
required

The currency format

Available options:
usd,
native
cursor
string | null

The cursor to the next page

result
object[]

An array of candlesticks