---
title: "All-markets trade-volume and swap-fee series."
method: GET
path: "/v1/analytics/markets/volume/snapshots"
tags: ["markets"]
---

# All-markets trade-volume and swap-fee series.

`GET /v1/analytics/markets/volume/snapshots`

USD × 1e18. Sparse — no row for a bucket a market did not trade in. Fees are the total cryptopool trade fee. `includeLegacy=true` for protocol-wide totals; the default omits legacy markets, ~14% of all-time swap volume.

## Query parameters

- `chainId` string
- `includeLegacy` string
- `windowSeconds` string
- `window` string
- `timeframeSeconds` string

## Response `200`

All-markets volume snapshots

- object
  - `success` true, required
  - `data` object[], required
    - `bucketStart` number, required
    - `marketId` string, required
    - `swapVolumeUsdRaw` string, required
    - `ammVolumeUsdRaw` string, required
    - `swapFeesUsdRaw` string, required
  - `timestamp` string, required

## Other responses

- `400` — Invalid request
- `500` — Internal error
- `502` — Upstream data/schema error

---

[API](https://skmtc.dev/yieldbasis/apis/yieldbasis-api.md) · [All operations](https://skmtc.dev/yieldbasis/apis/yieldbasis-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/yieldbasis/yieldbasis-api/revisions/b5b24c7435c8/schema)
