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

# Pool statistics total

> Subscribe to total pool statistics



## AsyncAPI

````yaml datastream/asyncapi.json poolStatisticsTotal
id: poolStatisticsTotal
title: Pool statistics total
description: Subscribe to total pool statistics
servers:
  - id: production
    protocol: wss
    host: datastream.solanatracker.io
    bindings: []
    variables:
      - id: apiKey
        description: Your unique API key from Data API subscription
        allowedValues: []
        examples: []
address: /
parameters: []
bindings: []
operations:
  - &ref_1
    id: subscribeToPoolTotalStats
    title: Subscribe to pool total stats
    description: Subscribe to pool total statistics
    type: receive
    messages:
      - &ref_5
        id: joinPoolStatsTotal
        payload:
          - name: joinPoolStatsTotal
            description: Subscribe to total pool statistics
            type: object
            properties:
              - name: type
                type: string
                description: join
                required: true
              - name: room
                type: string
                description: Pool total stats room (stats:pool:{poolId}:total)
                required: true
        headers: []
        jsonPayloadSchema:
          type: object
          required:
            - type
            - room
          properties:
            type:
              type: string
              const: join
              default: join
              x-parser-schema-id: <anonymous-schema-605>
            room:
              type: string
              pattern: ^stats:pool:[A-Za-z0-9]{32,44}:total$
              description: Pool total stats room (stats:pool:{poolId}:total)
              default: stats:pool:HCuFjMcDaSNAyT6mXegLXvrYdBZdT4Xh1YajS8vrpump:total
              x-parser-schema-id: <anonymous-schema-606>
          examples:
            - type: join
              room: stats:pool:HCuFjMcDaSNAyT6mXegLXvrYdBZdT4Xh1YajS8vrpump:total
          x-parser-schema-id: <anonymous-schema-604>
        title: Join pool stats total
        description: Subscribe to total pool statistics
        example: |-
          {
            "type": "join",
            "room": "stats:pool:HCuFjMcDaSNAyT6mXegLXvrYdBZdT4Xh1YajS8vrpump:total"
          }
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: joinPoolStatsTotal
          - id: x-parser-message-name
            value: joinPoolStatsTotal
    bindings: []
    extensions: &ref_0
      - id: x-parser-unique-object-id
        value: poolStatisticsTotal
  - &ref_3
    id: receivePoolTotalStatsConfirmation
    title: Receive pool total stats confirmation
    description: Receive pool total stats confirmation
    type: send
    messages:
      - &ref_7
        id: poolStatsTotalJoined
        payload:
          - name: poolStatsTotalJoined
            description: Total pool stats subscription confirmed
            type: object
            properties:
              - name: type
                type: string
                description: joined
                required: false
              - name: room
                type: string
                required: false
        headers: []
        jsonPayloadSchema:
          type: object
          properties:
            type:
              type: string
              const: joined
              x-parser-schema-id: <anonymous-schema-608>
            room:
              type: string
              x-parser-schema-id: <anonymous-schema-609>
          examples:
            - type: joined
              room: stats:pool:HCuFjMcDaSNAyT6mXegLXvrYdBZdT4Xh1YajS8vrpump:total
          x-parser-schema-id: <anonymous-schema-607>
        title: Pool stats total joined
        description: Total pool stats subscription confirmed
        example: |-
          {
            "type": "joined",
            "room": "stats:pool:HCuFjMcDaSNAyT6mXegLXvrYdBZdT4Xh1YajS8vrpump:total"
          }
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: poolStatsTotalJoined
          - id: x-parser-message-name
            value: poolStatsTotalJoined
    bindings: []
    extensions: *ref_0
  - &ref_4
    id: receivePoolTotalStatsData
    title: Receive pool total stats data
    description: Receive pool total statistics
    type: send
    messages:
      - &ref_8
        id: poolStatsTotalMessage
        payload:
          - name: poolStatsTotalMessage
            description: Total pool statistics notification
            type: object
            properties:
              - name: type
                type: string
                description: message
                required: false
              - name: room
                type: string
                required: false
              - name: data
                type: object
                required: false
                properties:
                  - name: buys
                    type: integer
                    required: false
                  - name: sells
                    type: integer
                    required: false
                  - name: total
                    type: integer
                    required: false
                  - name: volume
                    type: number
                    required: false
        headers: []
        jsonPayloadSchema:
          type: object
          properties:
            type:
              type: string
              const: message
              x-parser-schema-id: <anonymous-schema-611>
            room:
              type: string
              x-parser-schema-id: <anonymous-schema-612>
            data:
              type: object
              properties:
                buys:
                  type: integer
                  x-parser-schema-id: <anonymous-schema-597>
                sells:
                  type: integer
                  x-parser-schema-id: <anonymous-schema-598>
                total:
                  type: integer
                  x-parser-schema-id: <anonymous-schema-599>
                volume:
                  type: number
                  x-parser-schema-id: <anonymous-schema-600>
              x-parser-schema-id: TokenStatsTotal
          examples:
            - type: message
              room: stats:pool:HCuFjMcDaSNAyT6mXegLXvrYdBZdT4Xh1YajS8vrpump:total
              data:
                buys: 17793
                sells: 14229
                total: 32022
                volume: 13713204.08
          x-parser-schema-id: <anonymous-schema-610>
        title: Pool stats total message
        description: Total pool statistics notification
        example: |-
          {
            "type": "message",
            "room": "stats:pool:HCuFjMcDaSNAyT6mXegLXvrYdBZdT4Xh1YajS8vrpump:total",
            "data": {
              "buys": 17793,
              "sells": 14229,
              "total": 32022,
              "volume": 13713204.08
            }
          }
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: poolStatsTotalMessage
          - id: x-parser-message-name
            value: poolStatsTotalMessage
    bindings: []
    extensions: *ref_0
  - &ref_2
    id: unsubscribeFromPoolTotalStats
    title: Unsubscribe from pool total stats
    description: Unsubscribe from pool total stats
    type: receive
    messages:
      - &ref_6
        id: leavePoolStatsTotal
        payload:
          - name: leavePoolStatsTotal
            description: Unsubscribe from total pool statistics
            type: object
            properties:
              - name: type
                type: string
                description: leave
                required: true
              - name: room
                type: string
                required: true
        headers: []
        jsonPayloadSchema:
          type: object
          required:
            - type
            - room
          properties:
            type:
              type: string
              const: leave
              default: leave
              x-parser-schema-id: <anonymous-schema-614>
            room:
              type: string
              default: stats:pool:HCuFjMcDaSNAyT6mXegLXvrYdBZdT4Xh1YajS8vrpump:total
              x-parser-schema-id: <anonymous-schema-615>
          examples:
            - type: leave
              room: stats:pool:HCuFjMcDaSNAyT6mXegLXvrYdBZdT4Xh1YajS8vrpump:total
          x-parser-schema-id: <anonymous-schema-613>
        title: Leave pool stats total
        description: Unsubscribe from total pool statistics
        example: |-
          {
            "type": "leave",
            "room": "stats:pool:HCuFjMcDaSNAyT6mXegLXvrYdBZdT4Xh1YajS8vrpump:total"
          }
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: leavePoolStatsTotal
          - id: x-parser-message-name
            value: leavePoolStatsTotal
    bindings: []
    extensions: *ref_0
sendOperations:
  - *ref_1
  - *ref_2
receiveOperations:
  - *ref_3
  - *ref_4
sendMessages:
  - *ref_5
  - *ref_6
receiveMessages:
  - *ref_7
  - *ref_8
extensions:
  - id: x-parser-unique-object-id
    value: poolStatisticsTotal
securitySchemes:
  - id: apiKeyAuth
    name: apiKey
    type: httpApiKey
    description: >-
      API key for authentication. Include your Datastream key in the connection
      URL: wss://datastream.solanatracker.io/{DATASTREAM_KEY}
    in: header
    extensions: []

````