candles (the OHLCV candles of one pool), protocols (the list of protocols) and the swaps roots swaps, swap, swapsBySignature, trader, token, globalStats, whaleSwaps, swapsRange, traderSwaps, tokenSwaps and health, all in one schema, so one request can mix them. It is a subset of the REST surface: holders, PnL, tags and everything else are REST only. Use GraphQL when you want several reads in one round-trip, and REST for everything else.
Endpoint
Authorization: Bearer ohlcv_live_sk_<your_key> works too. There is no hosted query builder: use any GraphQL client (or curl) against this URL with your key header.
Schema
A
GqlCandle has timestamp, pairAddress, tokenAddress, baseMint, timeframe, open, high, low, close, volumeSol, volumeToken, tradeCount, buyCount, sellCount, uniqueTraders, stale and pricedAt: the fields of GET /api/v1/candles, with the same values and units, in GraphQL’s camelCase (volumeSol is REST’s volume_sol).
stale and pricedAt describe the pool’s price, the same on every candle of the answer: stale is true when the pool’s last priced trade is more than 600 seconds old, or there is none in the last hour, and pricedAt is that trade’s time (RFC 3339, null if none in the last hour). Both are null when you pass end. See Stale prices.
A request reads at most about 10,000 candles in total. That’s the sum of limit over every candles in it, aliases included, so two aliases of 6000 are refused as one request. The exact ceiling is 10,500, shared with the request’s other fields. A limit outside 1–10000 is refused with limit must be <= 10000 (or limit must be positive), as it is on REST.
Swaps rows share that ceiling at a higher price: a request may ask for at most 1,500 swaps rows in total (the sum of limit over every swaps list field, aliases included), and each of trader, token, swap, swapsBySignature and globalStats counts as a fixed 25 of the same budget. The REST limits apply as they do there (for example swapsRange windows and the 1,000-row page).
whaleSwaps returns the largest swaps by SOL value. Pass sinceMs (Unix milliseconds, the REST since_ms) to set the start, or sinceMs: 0 for the all-time size ranking. On a free key a sinceMs older than the history window, and 0, are refused with HISTORY_WINDOW_EXCEEDED, as on REST. minSol is in lamports (the default is 10 SOL, 10000000000).
Rate limits
Each top-level field counts as one request against your per-second rate limit, and a request may hold at most 10 top-level fields (aliases included; more is refused withtoo_many_root_fields). If your key cannot cover all of them, the whole request is refused with HTTP 429 and Retry-After: 1, and none of it runs. While the monthly cap is enforced (monthly_enforced in /credits), each top-level field that is served also counts one request against a Free key’s monthly cap; a field that fails is not counted. A JSON array of several operations in one body is not accepted: send one operation per request.
Sample queries
The last hour of 1-minute candles
Two timeframes and the protocol list in one round-trip
Aliases (minute:, hourly:) let one request ask for the same field twice.
The protocol list
Schema introspection
Standard GraphQL introspection works. From the command line:Errors
An error inside a well-formed query comes back as HTTP200 with the GraphQL errors array. A request body that is not valid JSON is rejected before it runs, with HTTP 400 and the REST error envelope (INVALID_PARAM).
trader { stats } reads the same per-wallet copy as GET /stats/trader/{wallet}. When that copy is past its refresh age the HTTP response carries X-Cache: stale; see Stale responses.

