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

# Get user trade volume and fees, broken down by exchange



## OpenAPI

````yaml https://vooi-api-app.fly.dev/swagger/json get /broker-statistics/user-volume
openapi: 3.1.0
info:
  title: VOOI API
  description: Unified perps API
  version: '1.0'
  contact: {}
servers:
  - url: https://perps-api.vooi.io
security: []
tags: []
paths:
  /broker-statistics/user-volume:
    get:
      tags:
        - Broker Statistics
      summary: Get user trade volume and fees, broken down by exchange
      operationId: BrokerStatisticsController_getUserVolume
      parameters:
        - name: X-Broker-Key
          in: header
          description: Broker API key
          required: true
          schema:
            type: string
        - name: from
          required: false
          in: query
          schema:
            example: 1767225600000
            type: integer
            exclusiveMinimum: 0
            maximum: 9007199254740991
          description: >-
            Start of the period as unix timestamp in milliseconds (inclusive).
            Defaults to now - 30 days (1 day for hour resolution).
        - name: resolution
          required: false
          in: query
          schema:
            default: day
            type: string
            enum:
              - day
              - hour
          description: >-
            Aggregation interval: day (UTC calendar day) or hour (UTC clock
            hour). from/to snap to interval boundaries. On series endpoints,
            items span one interval and hour limits the range to 7 days.
            Defaults to day.
        - name: to
          required: false
          in: query
          schema:
            example: 1769903999000
            type: integer
            exclusiveMinimum: 0
            maximum: 9007199254740991
          description: >-
            End of the period as unix timestamp in milliseconds (inclusive).
            Defaults to now.
        - name: totalAccountStats
          required: false
          in: query
          schema:
            type: string
          description: >-
            Count the whole exchange account volume instead of only the volume
            produced by orders created through this API.
        - name: userId
          required: true
          in: query
          schema:
            type: string
            format: uuid
            pattern: >-
              ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
          description: User id to compute stats for.
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetBrokerUserVolumeDTO'
components:
  schemas:
    GetBrokerUserVolumeDTO:
      type: object
      properties:
        exchanges:
          type: object
          properties:
            fees:
              $ref: '#/components/schemas/BrokerUserVolumeExchangeAmounts'
              description: >-
                Produced fees per exchange of fiat tokens. Covers the whole
                exchange account when totalAccountStats is enabled.
            volume:
              $ref: '#/components/schemas/BrokerUserVolumeExchangeAmounts'
              description: >-
                Executed notional per exchange. Covers the whole exchange
                account when totalAccountStats is enabled.
          required:
            - fees
            - volume
          description: Per-exchange breakdown of volume and fees.
        totalVolume:
          type: string
          description: Total executed notional across all exchanges.
          example: '103000.00'
      required:
        - exchanges
        - totalVolume
      title: BrokerUserVolumeResult
    BrokerUserVolumeExchangeAmounts:
      type: object
      properties:
        aster:
          type: string
          description: Amount on Aster in quote currency.
        binance:
          type: string
          description: Amount on Binance in quote currency.
        bybit:
          type: string
          description: Amount on Bybit in quote currency.
        extended:
          type: string
          description: Amount on Extended in quote currency.
        gate:
          type: string
          description: Amount on Gate in quote currency.
        hyperliquid:
          type: string
          description: Amount on Hyperliquid in quote currency.
        lighter:
          type: string
          description: Amount on Lighter in quote currency.
        mexc:
          type: string
          description: Amount on Mexc in quote currency.
        ondo:
          type: string
          description: Amount on Ondo in quote currency.
        robinhood:
          type: string
          description: Amount on Robinhood in quote currency.
      required:
        - aster
        - binance
        - bybit
        - extended
        - gate
        - hyperliquid
        - lighter
        - mexc
        - ondo
        - robinhood
      title: BrokerUserVolumeExchangeAmounts

````

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