Skip to main content
Per-token aggregate from the v2 orderbook-validator subgraph (sgd9.orderbookv2.orderbook). Returns lifetime counters maintained by the subgraph itself rather than re-aggregated from individual fills — a separate, cheaper path than /clobv2/markets/{token_id}/volume, which does the GROUP BY on fills. v2-exclusive: the subgraph maintains this rollup only for v2 markets.

Request

Authentication

Paid tier required. See /clobv2/trades for auth formats.

Path parameters

No query parameters.

Parameter validation

  • token_id: 1-78 digits, ^[0-9]+$.

Response

When the token has a v2 orderbook row (found):
When the token has no v2 orderbook row (never traded on v2):

Response fields

Numeric counters come back as strings to preserve exactness from the subgraph’s BigInt type.

Examples

Error responses

Notes

  • Values may be slightly behind the per-fill aggregation at /clobv2/markets/{token_id}/volume because the subgraph has a small processing lag after a new fill; for most tokens they reconcile within a second or two.
  • scaled_notional_usdc is the subgraph’s own parallel counter and is divided by an extra 1e6 compared to notional_usdc. It’s present for feature parity with the raw subgraph; most integrators should ignore it.
  • found: false is a valid response (not a 404). It means the v2 subgraph hasn’t observed any fills touching this token yet.