> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cryptoquant.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Volume Bubble

> Volume bubble map — daily trading volume in USD and whether it is running hot or cold against its own history.

## What it measures

Volume bubble map — daily trading volume in USD and whether it is running hot or cold against its own history.

The daily trading volume in USD is the volume summed across all exchanges and valued at `price_usd`. The 30-day moving average minus the 365-day moving average of that volume is converted to a z-score using the mean and sample standard deviation of the same difference over the trailing 365 days. The label is assigned from that z-score.

The source data is aggregated across exchanges: spot OHLCV and taker volume for `market=spot`, perpetual-contract OHLCV and taker volume for `market=futures`. Values are daily, recomputed every day at about 01:10 UTC over the full history; the latest row is the previous UTC day.

## Assets and windows

| Market | Assets | Windows |
| - | - | - |
| `spot` (default) | 448 assets, e.g. `btc`, `eth`, `sol`, `xrp`, `bnb`, `doge` | `day` |
| `futures` | 356 assets, e.g. `btc`, `eth`, `sol`, `xrp`, `bnb`, `doge` | `day` |

Pass `asset` as a lowercase symbol; several assets can be requested at once, comma-separated (`asset=btc,eth`). The supported assets differ between the two markets: an asset that is not supported for the requested market returns `400` (`Unsupported asset for spot: x`). The full lists are returned by [`/v2/discovery/endpoints`](https://docs.cryptoquant.com/v2/discovery). `window` accepts only `day`; any other value returns `400`. `limit` applies per asset.

Each call costs 20 credits.

## Response fields

Rows are returned under `result.data`, one per asset per day.

| Field | Type | Description |
| - | - | - |
| `date` | string | Day, `YYYY-MM-DD` (UTC). |
| `asset` | string | Asset symbol, lowercase. |
| `volume_usd` | number | Daily trading volume in USD (volume summed across exchanges × `price_usd`). |
| `price_usd` | number | Price in USD: the median, across exchanges, of the daily close for USD-denominated quote currencies (USD, USDT, USDC, ...). |
| `volume_state` | string | Label derived from the 365-day z-score of the volume moving-average difference. See the table below. |

## Labels

`volume_state` is a label. The label is assigned from `z`, the 365-day z-score of (MA30 − MA365) of `volume_usd`:

| Label | Condition |
| - | - |
| `Overheating` | `z` ≥ 2 |
| `Heating` | 1 ≤ `z` \< 2 |
| `Neutral` | −1 \< `z` \< 1 |
| `Cooling` | `z` ≤ −1 |


## OpenAPI

````yaml openapi/v2-top-indicator.json GET /indicator/top-indicator/volume-bubble
openapi: 3.0.0
info:
  version: 2.0.0-beta
  title: CryptoQuant Data API v2 — Top Indicators
  description: >-
    Top Indicator endpoints of the CryptoQuant Data API v2 — daily market
    indicators (retail activity, average order size, volume bubble, taker CVD)
    for spot and futures markets, computed from exchange OHLCV and taker volume.
    Built on the v1 conventions: the `status`/`result` envelope, Bearer token
    authentication, and the `from`/`to` time parameters.
  termsOfService: https://cryptoquant.com/terms-of-service
  contact:
    name: API Support
    email: contact@cryptoquant.com
servers:
  - url: https://api.cryptoquant.com/v2
    description: Default server
security: []
tags:
  - name: Top Indicators
paths:
  /indicator/top-indicator/volume-bubble:
    get:
      tags:
        - Top Indicators
      summary: Volume Bubble
      description: >-
        Volume bubble map — daily trading volume in USD and whether it is
        running hot or cold against its own history.
      operationId: V2topIndicatorVolumeBubble
      parameters:
        - name: asset
          in: query
          required: true
          description: >-
            Asset symbol, lowercase, e.g. `btc`. Comma-separated for several
            assets (e.g. `btc,eth`). 448 assets are available for `market=spot`
            and 356 for `market=futures`; an unsupported asset returns `400`.
          schema:
            type: string
          example: btc
        - name: market
          in: query
          required: false
          description: 'Market: `spot` (default) or `futures`.'
          schema:
            type: string
            enum:
              - spot
              - futures
            default: spot
        - name: window
          in: query
          required: false
          description: >-
            Aggregation window: `day` only (default). Any other value returns
            `400`.
          schema:
            type: string
            enum:
              - day
            default: day
          example: day
        - name: from
          in: query
          required: false
          description: Inclusive start date, `YYYYMMDD` (UTC).
          schema:
            type: string
        - name: to
          in: query
          required: false
          description: Inclusive end date, `YYYYMMDD` (UTC).
          schema:
            type: string
        - name: limit
          in: query
          required: false
          description: Maximum rows returned per asset (default 100, max 10000).
          schema:
            type: integer
            default: 100
            maximum: 10000
        - name: format
          in: query
          required: false
          description: 'Response format: `json` (default) or `csv`.'
          schema:
            type: string
            enum:
              - json
              - csv
            default: json
      responses:
        '200':
          description: Volume Bubble daily time-series.
          content:
            application/json:
              schema:
                type: object
                required:
                  - status
                  - result
                properties:
                  status:
                    $ref: '#/components/schemas/Status'
                  result:
                    type: object
                    properties:
                      window:
                        type: string
                      data:
                        type: array
                        items:
                          type: object
                          properties:
                            date:
                              type: string
                              description: Day, `YYYY-MM-DD` (UTC).
                            asset:
                              type: string
                              description: Asset symbol, lowercase.
                            volume_usd:
                              type: number
                              description: >-
                                Daily trading volume in USD (volume summed
                                across exchanges × `price_usd`).
                            price_usd:
                              type: number
                              description: >-
                                Price in USD: the median, across exchanges, of
                                the daily close for USD-denominated quote
                                currencies (USD, USDT, USDC, ...).
                            volume_state:
                              type: string
                              description: >-
                                Label derived from the 365-day z-score of the
                                volume moving-average difference. See the table
                                below.
      security:
        - AccessToken: []
      x-codeSamples:
        - lang: Shell
          source: >-
            curl -X GET
            "https://api.cryptoquant.com/v2/indicator/top-indicator/volume-bubble?asset=btc&window=day"
            \

            -H "Authorization: Bearer <YOUR_API_KEY>"
        - lang: JavaScript
          source: >-
            fetch("https://api.cryptoquant.com/v2/indicator/top-indicator/volume-bubble?asset=btc&window=day",
            { headers: { "Authorization": "Bearer <YOUR_API_KEY>"} })
              .then(response => response.json())
              .then(data => console.log(data))
        - lang: NodeJS
          source: |-
            require('axios')
              .get("https://api.cryptoquant.com/v2/indicator/top-indicator/volume-bubble?asset=btc&window=day", { headers: { Authorization: 'Bearer <YOUR_API_KEY>' } })
              .then(response => console.log(response))
        - lang: Ruby
          source: >-
            require 'net/http'

            uri =
            URI("https://api.cryptoquant.com/v2/indicator/top-indicator/volume-bubble?asset=btc&window=day")

            req = Net::HTTP::Get.new(uri)

            req["Authorization"] = "Bearer <YOUR_API_KEY>"

            res = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) {
            |http| http.request(req) }

            puts res.body
        - lang: Python
          source: >-
            import requests

            headers = {'Authorization': 'Bearer <YOUR_API_KEY>'}

            url =
            "https://api.cryptoquant.com/v2/indicator/top-indicator/volume-bubble?asset=btc&window=day"

            print(requests.get(url, headers=headers).json())
components:
  schemas:
    Status:
      type: object
      description: >-
        Returned with every response; indicates whether the request was
        successful.
      required:
        - code
        - message
      properties:
        code:
          type: integer
          format: int32
          description: HTTP status code.
        message:
          type: string
          description: Text description of the error or success.
  securitySchemes:
    AccessToken:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        For each API request, include the `Authorization` HTTP header with
        `Bearer {access_token}`.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.