volume
Volume and trade-count totals over a window.
Per-window volume aggregates split by side, with trade counts, buy/sell ratio, and USD totals.
Try it
Sign in to run live
- Change wallet
Parameters
Filter to a base token mint (base58). Omit to return every pair on the market.
Filter to a quote token mint (base58).
Aggregation window. One of: 1s, 10s, 30s, 1m, 5m, 30m, 1h, 2h, 4h, 6h, 8h, 12h, 24h.
Maximum data points (1-1000, default 100). Query only; ignored when streaming.
Request
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::volume",
"params": {
"base": "DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263",
"window": "24h"
}
}'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": "PT24H",
"base_volume": "48210.7531",
"quote_volume": "48210.7531",
"buy_volume": "48210.7531",
"sell_volume": "48210.7531",
"total_volume": "48210.7531",
"buy_swaps": "37",
"sell_swaps": "37",
"total_swaps": "37",
"buy_sell_ratio": "1.34",
"data_points": "37",
"duration": "PT24H",
"window_start": "2026-06-01T02:16:22.000000000Z",
"window_end": "2026-06-01T02:16:22.000000000Z",
"buy_volume_usd": "48210.7531",
"sell_volume_usd": "48210.7531",
"total_volume_usd": "48210.7531"
}
]
}
]Fields
Numbers come back as strings and timestamps as ISO-8601 strings; every data point carries a stable id. See Data model.
Base token mint.
Quote token mint.
Last update time.
Window length, e.g. 24h.
Base volume.
Quote volume.
Buy-side base volume.
Sell-side base volume.
Total base volume.
Buy trades.
Sell trades.
Total trades.
Buy volume over sell volume.
Samples folded in.
Window length.
Window start.
Window end.
Buy volume in USD.
Sell volume in USD.
Total volume in USD.
Errors
Invalid parameters return -32602; an unknown method returns -32601. See Errors for the full table.
