raptor.trade

ohlcv

Open / high / low / close / volume candles for a window.

Candlestick aggregates per window, with native and USD-denominated price and volume. The workhorse for charts and indicators.

Try it

Sign in to run live

Connect your wallet to send this request against the live API and see the response inline.

Parameters

baseoptional
string

Filter to a base token mint (base58). Omit to return every pair on the market.

quoteoptional
string

Filter to a quote token mint (base58).

windowrequired
enum

Aggregation window. One of: 1s, 10s, 30s, 1m, 5m, 30m, 1h, 2h, 4h, 6h, 8h, 12h, 24h.

fromoptional
datetime

Inclusive start bound, unix epoch seconds or ISO-8601. Query only; ignored when streaming.

tooptional
datetime

Exclusive end bound, unix epoch seconds or ISO-8601. Query only; ignored when streaming.

limitoptional
integer

Maximum data points (1-5000, default 5000). Query only; ignored when streaming.

Request

Transport
curl -X POST https://rpc.raptor.trade \
  -H "Authorization: Bearer $RAPTOR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "solana::market::ohlcv",
  "params": {
    "base": "DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263",
    "window": "1m",
    "limit": 10
  }
}'

Response

Responses are always a JSON array - one entry per request - and each entry's result holds the array of data. The shape is identical over HTTP and WebSocket.

[
  {
    "jsonrpc": "2.0",
    "id": 1,
    "result": [
      {
        "id": 1024,
        "base": "DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263",
        "quote": "So11111111111111111111111111111111111111112",
        "timestamp": "2026-06-01T02:16:22.000000000Z",
        "window_duration": "PT1M",
        "open": "0.00001901",
        "high": "0.00001955",
        "low": "0.00001888",
        "close": "0.00001942",
        "base_volume": "48210.7531",
        "quote_volume": "48210.7531",
        "open_usd": "0.000019",
        "high_usd": "0.000019",
        "low_usd": "0.000019",
        "close_usd": "0.000019",
        "volume_usd": "48210.7531",
        "data_points": "37",
        "window_start": "2026-06-01T02:16:22.000000000Z",
        "window_end": "2026-06-01T02:16:22.000000000Z"
      }
    ]
  }
]

Fields

Numbers come back as strings and timestamps as ISO-8601 strings; every data point carries a stable id. See Data model.

baseUtf8

Base token mint.

quoteUtf8

Quote token mint.

timestampDateTime

Candle open time.

window_durationDuration

Window length, e.g. 1m.

openFloat8

Open price (quote per base).

highFloat8

High price.

lowFloat8

Low price.

closeFloat8

Close price.

base_volumeFloat8

Base volume in the window.

quote_volumeFloat8

Quote volume in the window.

open_usdFloat8

Open price in USD.

high_usdFloat8

High price in USD.

low_usdFloat8

Low price in USD.

close_usdFloat8

Close price in USD.

volume_usdFloat8

Traded volume in USD.

data_pointsUint4

Trades folded into the candle.

window_startDateTime

Window start (inclusive).

window_endDateTime

Window end (exclusive).

Errors

Invalid parameters return -32602; an unknown method returns -32601. See Errors for the full table.