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

# Token statistics total

> Subscribe to total token statistics



## AsyncAPI

````yaml datastream/statistics.json tokenStatisticsTotal
id: tokenStatisticsTotal
title: Token statistics total
description: Subscribe to total token 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: subscribeToTokenTotalStats
    title: Subscribe to token total stats
    description: Subscribe to token total statistics
    type: receive
    messages:
      - &ref_5
        id: joinTokenStatsTotal
        payload:
          - name: joinTokenStatsTotal
            description: Subscribe to total token statistics
            type: object
            properties:
              - name: type
                type: string
                description: join
                required: true
              - name: room
                type: string
                description: Token total stats room (stats:token:{tokenAddress}:total)
                required: true
        headers: []
        jsonPayloadSchema:
          type: object
          required:
            - type
            - room
          properties:
            type:
              type: string
              const: join
              default: join
              x-parser-schema-id: <anonymous-schema-38>
            room:
              type: string
              pattern: ^stats:token:[A-Za-z0-9]{32,44}:total$
              description: Token total stats room (stats:token:{tokenAddress}:total)
              default: stats:token:6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN:total
              x-parser-schema-id: <anonymous-schema-39>
          examples:
            - type: join
              room: stats:token:6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN:total
          x-parser-schema-id: <anonymous-schema-37>
        title: Join token stats total
        description: Subscribe to total token statistics
        example: |-
          {
            "type": "join",
            "room": "stats:token:6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN:total"
          }
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: joinTokenStatsTotal
          - id: x-parser-message-name
            value: joinTokenStatsTotal
    bindings: []
    extensions: &ref_0
      - id: x-parser-unique-object-id
        value: tokenStatisticsTotal
  - &ref_3
    id: receiveTokenTotalStatsConfirmation
    title: Receive token total stats confirmation
    description: Receive token total stats confirmation
    type: send
    messages:
      - &ref_7
        id: tokenStatsTotalJoined
        payload:
          - name: tokenStatsTotalJoined
            description: Total token 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-41>
            room:
              type: string
              x-parser-schema-id: <anonymous-schema-42>
          examples:
            - type: joined
              room: stats:token:6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN:total
          x-parser-schema-id: <anonymous-schema-40>
        title: Token stats total joined
        description: Total token stats subscription confirmed
        example: |-
          {
            "type": "joined",
            "room": "stats:token:6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN:total"
          }
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: tokenStatsTotalJoined
          - id: x-parser-message-name
            value: tokenStatsTotalJoined
    bindings: []
    extensions: *ref_0
  - &ref_4
    id: receiveTokenTotalStatsData
    title: Receive token total stats data
    description: Receive token total statistics
    type: send
    messages:
      - &ref_8
        id: tokenStatsTotalMessage
        payload:
          - name: tokenStatsTotalMessage
            description: Total token 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-44>
            room:
              type: string
              x-parser-schema-id: <anonymous-schema-45>
            data:
              type: object
              properties:
                buys:
                  type: integer
                  x-parser-schema-id: <anonymous-schema-46>
                sells:
                  type: integer
                  x-parser-schema-id: <anonymous-schema-47>
                total:
                  type: integer
                  x-parser-schema-id: <anonymous-schema-48>
                volume:
                  type: number
                  x-parser-schema-id: <anonymous-schema-49>
              x-parser-schema-id: TokenStatsTotal
          examples:
            - type: message
              room: stats:token:6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN:total
              data:
                buys: 37210
                sells: 31243
                total: 68453
                volume: 28146104.46
          x-parser-schema-id: <anonymous-schema-43>
        title: Token stats total message
        description: Total token statistics notification
        example: |-
          {
            "type": "message",
            "room": "stats:token:6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN:total",
            "data": {
              "buys": 37210,
              "sells": 31243,
              "total": 68453,
              "volume": 28146104.46
            }
          }
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: tokenStatsTotalMessage
          - id: x-parser-message-name
            value: tokenStatsTotalMessage
    bindings: []
    extensions: *ref_0
  - &ref_2
    id: unsubscribeFromTokenTotalStats
    title: Unsubscribe from token total stats
    description: Unsubscribe from token total stats
    type: receive
    messages:
      - &ref_6
        id: leaveTokenStatsTotal
        payload:
          - name: leaveTokenStatsTotal
            description: Unsubscribe from total token 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-51>
            room:
              type: string
              default: stats:token:6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN:total
              x-parser-schema-id: <anonymous-schema-52>
          examples:
            - type: leave
              room: stats:token:6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN:total
          x-parser-schema-id: <anonymous-schema-50>
        title: Leave token stats total
        description: Unsubscribe from total token statistics
        example: |-
          {
            "type": "leave",
            "room": "stats:token:6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN:total"
          }
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: leaveTokenStatsTotal
          - id: x-parser-message-name
            value: leaveTokenStatsTotal
    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: tokenStatisticsTotal
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: []

````