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

# Token trading volume



## OpenAPI

````yaml openapi-spec/history.yaml get /api/sol/trades/volume/{mint}
openapi: 3.0.3
info:
  title: Raze Database API
  description: >
    Paid subscription API for Solana transaction data and history.


    Also hosts write utilities (`/utils/sol/*`): token launch, transfer, burn,

    consolidate, fees claim/config, and agent initialize — previously on

    `router.raze.bot`. Mixer/distribute removed 2026-07-25.


    ## Batch Requests

    All endpoints with path parameters (mint, signer, address, tokenMint,
    ownerAddress) support batch queries

    via comma-separated values. For example:
    `/api/sol/trades/mint/mint1,mint2,mint3?limit=50`


    - Maximum 10 values per batch request

    - Each value must be a valid address (>= 32 characters)

    - Single values behave identically to non-batch requests

    - Batch response format: `{ "success": true, "results": { "value1": {...},
    "value2": {...} }, "count": N, "timestamp": "..." }`

    - Each key in `results` contains the full single-entity response

    - Queries run in parallel for maximum performance
  version: 1.0.0
servers:
  - url: https://api.raze.bot
    description: >-
      Raze global History API — GeoDNS routes to the nearest region
      automatically
security:
  - ApiKeyAuth: []
paths:
  /api/sol/trades/volume/{mint}:
    get:
      summary: Token trading volume
      operationId: getTradingVolume
      parameters:
        - name: mint
          in: path
          required: true
          schema:
            type: string
          example: Fyx78ew4wRY26gPj5CkTyuZ4kvW7CkPff5Jm2vNspump
        - name: hours
          in: query
          schema:
            type: integer
            minimum: 1
            maximum: 168
            default: 24
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VolumeResponse'
        '400':
          description: Invalid mint address
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Database error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    VolumeResponse:
      type: object
      properties:
        success:
          type: boolean
        data:
          type: object
          description: Volume data including buy/sell split and trader counts
          properties:
            trade_count:
              type: integer
            total_sol_volume:
              type: number
            total_token_volume:
              type: number
            buy_count:
              type: integer
            sell_count:
              type: integer
            bundle_trades:
              type: integer
            sniper_trades:
              type: integer
            protrader_trades:
              type: integer
            buySolVolume:
              type: number
              description: Total buy volume in SOL
            sellSolVolume:
              type: number
              description: Total sell volume in SOL
            netFlow:
              type: number
              description: Buy minus sell volume (positive = net buying)
            buySellRatio:
              type: number
              description: Buy/sell volume ratio
            feesTotal:
              type: number
              description: Total fees in SOL
            uniqueTraders:
              type: integer
              description: Number of unique traders
        mint:
          type: string
        hours:
          type: integer
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
        message:
          type: string
        code:
          type: string
        success:
          type: boolean
      example:
        error: Unauthorized
        message: Invalid API key
        code: INVALID_KEY
        success: false
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: query
      name: apiKey

````