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

# Volumes

> This endpoint returns the rolling 24h volume for both futures and perpetuals of the underlying asset. The endpoint returns the USD volume in millions of dollars and the volume in units of underlying coins.



## OpenAPI

````yaml get /analytics/futures-perpetuals/volumes
openapi: 3.1.0
info:
  title: derivatives-api
  version: '2'
servers:
  - url: https://api.amberdata.com/markets/derivatives
security:
  - sec0: []
paths:
  /analytics/futures-perpetuals/volumes:
    get:
      summary: Volumes
      description: >-
        This endpoint returns the rolling 24h volume for both futures and
        perpetuals of the underlying asset. The endpoint returns the USD volume
        in millions of dollars and the volume in units of underlying coins.
      operationId: derivatives-futures-perpetuals-volumes
      parameters:
        - name: asset
          in: query
          description: >-
            **[Required]** The underlying currency for which there are futures
            contracts/instruments. 

            **[Examples]** ` BTC | ETH `
          required: true
          schema:
            type: string
            default: BTC
        - name: startDate
          in: query
          description: >-
            **[Required]** Payload only includes data after this date
            (inclusive). 

            **[Formats]** `seconds | milliseconds | iso8601`

            **[Examples]** `1578531600 | 1578531600000 | 2020-09-01T01:00:00`
          required: true
          schema:
            type: string
            format: date-time
            default: '2024-05-21'
        - name: endDate
          in: query
          description: >-
            **[Required]** Payload only includes data before this date
            (exclusive). 

            **[Formats]** `seconds | milliseconds | iso8601`

            **[Examples]** `1578531600 | 1578531600000 | 2020-09-01T01:00:00`
          required: true
          schema:
            type: string
            default: '2024-06-01'
        - name: timeFormat
          in: query
          description: >-
            **[Optional]** Time format of the timestamps in the return payload.

            **[Defaults]** `milliseconds | ms* | iso | iso8601 | hr |
            human_readable`
          schema:
            type: string
      responses:
        '200':
          description: '200'
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: integer
                    example: 200
                  title:
                    type: string
                    example: OK
                  description:
                    type: string
                    example: Successful request
                  payload:
                    type: object
                    properties:
                      data:
                        type: array
                        items:
                          type: object
                          properties:
                            timestamp:
                              type: string
                              example: 1706659200000
                              description: The timestamp for the volume data point
                            exchange:
                              type: string
                              example: binance
                              description: The exchange where the volume data is from
                            underlying:
                              type: string
                              example: BTC
                              description: >-
                                The underlying asset for the futures/perpetuals
                                contracts
                            totalDailyVolume:
                              type: string
                              example: '370916.7'
                              description: The total daily volume in contract units
                            totalDailyVolumeMilUSD:
                              type: string
                              example: '15800.9'
                              description: The total daily volume in millions of USD
                            totalDailyVolumeNative:
                              type: string
                              example: '370916.7'
                              description: The total daily volume in native coin units
              examples:
                Result:
                  value:
                    status: 200
                    title: OK
                    description: Successful request
                    payload:
                      data:
                        - timestamp: 1706659200000
                          exchange: binance
                          underlying: BTC
                          totalDailyVolume: '370916.7'
                          totalDailyVolumeMilUSD: '15800.9'
                          totalDailyVolumeNative: '370916.7'
                        - timestamp: 1706659200000
                          exchange: bitmex
                          underlying: BTC
                          totalDailyVolume: '1128347366.9'
                          totalDailyVolumeMilUSD: '421.1'
                          totalDailyVolumeNative: '9901.8'
                        - timestamp: 1706659200000
                          exchange: bybit
                          underlying: BTC
                          totalDailyVolume: '168972.8'
                          totalDailyVolumeMilUSD: '7196.2'
                          totalDailyVolumeNative: '168972.8'
                        - timestamp: 1706659200000
                          exchange: deribit
                          underlying: BTC
                          totalDailyVolume: '13917.3'
                          totalDailyVolumeMilUSD: '593.7'
                          totalDailyVolumeNative: '13917.3'
                        - timestamp: 1706659200000
                          exchange: ftxus
                          underlying: BTC
                          totalDailyVolume: null
                          totalDailyVolumeMilUSD: null
                          totalDailyVolumeNative: null
                        - timestamp: 1706659200000
                          exchange: huobi
                          underlying: BTC
                          totalDailyVolume: '15451.3'
                          totalDailyVolumeMilUSD: '658.8'
                          totalDailyVolumeNative: '15451.3'
                        - timestamp: 1706659200000
                          exchange: kraken
                          underlying: BTC
                          totalDailyVolume: '3908651.8'
                          totalDailyVolumeMilUSD: '174.9'
                          totalDailyVolumeNative: '4107.2'
                        - timestamp: 1706659200000
                          exchange: okex
                          underlying: BTC
                          totalDailyVolume: '40064594.0'
                          totalDailyVolumeMilUSD: '6700.6'
                          totalDailyVolumeNative: '157175.2'
                        - timestamp: 1706572800000
                          exchange: binance
                          underlying: BTC
                          totalDailyVolume: '301377.0'
                          totalDailyVolumeMilUSD: '12927.0'
                          totalDailyVolumeNative: '301377.0'
                        - timestamp: 1706572800000
                          exchange: bitmex
                          underlying: BTC
                          totalDailyVolume: '1052392849.8'
                          totalDailyVolumeMilUSD: '400.2'
                          totalDailyVolumeNative: '9332.4'
                        - timestamp: 1706572800000
                          exchange: bybit
                          underlying: BTC
                          totalDailyVolume: '136513.9'
                          totalDailyVolumeMilUSD: '5853.9'
                          totalDailyVolumeNative: '136513.9'
                        - timestamp: 1706572800000
                          exchange: deribit
                          underlying: BTC
                          totalDailyVolume: '12887.8'
                          totalDailyVolumeMilUSD: '554.2'
                          totalDailyVolumeNative: '12887.8'
                        - timestamp: 1706572800000
                          exchange: ftxus
                          underlying: BTC
                          totalDailyVolume: null
                          totalDailyVolumeMilUSD: null
                          totalDailyVolumeNative: null
                        - timestamp: 1706572800000
                          exchange: huobi
                          underlying: BTC
                          totalDailyVolume: '12169.3'
                          totalDailyVolumeMilUSD: '522.3'
                          totalDailyVolumeNative: '12169.3'
                        - timestamp: 1706572800000
                          exchange: kraken
                          underlying: BTC
                          totalDailyVolume: '6986109.9'
                          totalDailyVolumeMilUSD: '186.8'
                          totalDailyVolumeNative: '4352.7'
                        - timestamp: 1706572800000
                          exchange: okex
                          underlying: BTC
                          totalDailyVolume: '32367069.0'
                          totalDailyVolumeMilUSD: '5660.8'
                          totalDailyVolumeNative: '131876.6'
                        - timestamp: 1706486400000
                          exchange: binance
                          underlying: BTC
                          totalDailyVolume: '290724.5'
                          totalDailyVolumeMilUSD: '12567.6'
                          totalDailyVolumeNative: '290724.5'
                        - timestamp: 1706486400000
                          exchange: bitmex
                          underlying: BTC
                          totalDailyVolume: '854470564.6'
                          totalDailyVolumeMilUSD: '262.2'
                          totalDailyVolumeNative: '6127.6'
        '400':
          description: '400'
          content:
            application/json:
              examples:
                Result:
                  value: {}
              schema:
                type: object
                properties: {}
      deprecated: false
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````