> ## 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.

# Block Volumes

> This endpoint returns the total block traded options volume for a selected exchange and a selected underlying currency. The volume is broken out by instruments for 3rd party "blockTrades" (venues such as Paradigm, GreeksLive, etc).




## OpenAPI

````yaml get /analytics/trades-flow/block-volumes
openapi: 3.1.0
info:
  title: derivatives-api
  version: '2'
servers:
  - url: https://api.amberdata.com/markets/derivatives
security:
  - sec0: []
paths:
  /analytics/trades-flow/block-volumes:
    get:
      summary: Block Volumes
      description: >
        This endpoint returns the total block traded options volume for a
        selected exchange and a selected underlying currency. The volume is
        broken out by instruments for 3rd party "blockTrades" (venues such as
        Paradigm, GreeksLive, etc).
      operationId: derivatives-trades-flow-block-volumes
      parameters:
        - name: exchange
          in: query
          description: >
            **[Required]** The exchange for which to retrieve the listed option
            level 1 quotes. **[Examples]** `deribit | okex | bybit`
          required: true
          schema:
            type: string
            default: deribit
        - name: currency
          in: query
          description: >
            **[Required]** The underlying currency for which there are listed
            option instruments. **[Examples]** `BTC | SOL_USDC` Note: inverse
            options have underlying currencies formatted as (BTC, ETH) while
            linear option currency formats include the stable coin in the same
            (SOL_USDC)
          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: Successful request
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: integer
                    example: 200
                    default: 0
                  title:
                    type: string
                    example: OK
                  description:
                    type: string
                    example: Successful request
                  payload:
                    type: object
                    properties:
                      data:
                        type: array
                        items:
                          type: object
                          properties:
                            exchange:
                              type: string
                              example: deribit
                            currency:
                              type: string
                              example: BTC
                            expirationTimestamp:
                              type: integer
                              example: 1717142400000
                              default: 0
                            strike:
                              type: integer
                              example: 63000
                              default: 0
                            putCall:
                              type: string
                              example: C
                            contractVolume:
                              type: number
                              example: 19.7
                              default: 0
                            premiumVolume:
                              type: number
                              example: 107198.425665
                              default: 0
                      metadata:
                        type: object
                        properties:
                          api-version:
                            type: string
                            example: '2023-09-30'
              examples:
                success_response:
                  summary: Successful block volumes response
                  value:
                    status: 200
                    title: OK
                    description: Successful request
                    payload:
                      data:
                        - exchange: deribit
                          currency: BTC
                          expirationTimestamp: 1717142400000
                          strike: 63000
                          putCall: C
                          contractVolume: 19.7
                          premiumVolume: 107198.425665
                        - exchange: deribit
                          currency: BTC
                          expirationTimestamp: 1717142400000
                          strike: 70500
                          putCall: P
                          contractVolume: 12.5
                          premiumVolume: 28250.494175
                        - exchange: deribit
                          currency: BTC
                          expirationTimestamp: 1717315200000
                          strike: 66500
                          putCall: C
                          contractVolume: 12.6
                          premiumVolume: 17001.496270647003
                      metadata:
                        api-version: '2023-09-30'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                type: object
                properties: {}
              examples:
                error_response:
                  summary: Bad request example
                  value: {}
      deprecated: false
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````