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

# Fee tracking

> Subscribe to fee tracking for a token (Global fees)



## AsyncAPI

````yaml datastream/asyncapi.json feeTracking
id: feeTracking
title: Fee tracking
description: Subscribe to fee tracking for a token (Global fees)
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: subscribeToFees
    title: Subscribe to fees
    description: Subscribe to fee tracking
    type: receive
    messages:
      - &ref_5
        id: joinFees
        payload:
          - name: joinFees
            description: Subscribe to fee tracking
            type: object
            properties:
              - name: type
                type: string
                description: join
                required: true
              - name: room
                type: string
                description: Fees room (fees:{tokenAddress})
                required: true
        headers: []
        jsonPayloadSchema:
          type: object
          required:
            - type
            - room
          properties:
            type:
              type: string
              const: join
              default: join
              x-parser-schema-id: <anonymous-schema-650>
            room:
              type: string
              pattern: ^fees:[A-Za-z0-9]{32,44}$
              description: Fees room (fees:{tokenAddress})
              default: fees:6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN
              x-parser-schema-id: <anonymous-schema-651>
          examples:
            - type: join
              room: fees:6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN
          x-parser-schema-id: <anonymous-schema-649>
        title: Join fees
        description: Subscribe to fee tracking
        example: |-
          {
            "type": "join",
            "room": "fees:6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN"
          }
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: joinFees
          - id: x-parser-message-name
            value: joinFees
    bindings: []
    extensions: &ref_0
      - id: x-parser-unique-object-id
        value: feeTracking
  - &ref_3
    id: receiveFeesConfirmation
    title: Receive fees confirmation
    description: Receive fees confirmation
    type: send
    messages:
      - &ref_7
        id: feesJoined
        payload:
          - name: feesJoined
            description: Fee tracking 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-653>
            room:
              type: string
              x-parser-schema-id: <anonymous-schema-654>
          examples:
            - type: joined
              room: fees:6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN
          x-parser-schema-id: <anonymous-schema-652>
        title: Fees joined
        description: Fee tracking subscription confirmed
        example: |-
          {
            "type": "joined",
            "room": "fees:6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN"
          }
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: feesJoined
          - id: x-parser-message-name
            value: feesJoined
    bindings: []
    extensions: *ref_0
  - &ref_4
    id: receiveFeesData
    title: Receive fees data
    description: Receive fee data
    type: send
    messages:
      - &ref_8
        id: feesMessage
        payload:
          - name: feesMessage
            description: Fee tracking 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: tx
                    type: string
                    required: false
                  - name: time
                    type: integer
                    required: false
                  - name: fees
                    type: object
                    required: false
                  - name: total
                    type: object
                    required: false
                    properties:
                      - name: axiom
                        type: number
                        required: false
                      - name: network
                        type: number
                        required: false
                      - name: jito
                        type: number
                        required: false
                      - name: 0slot
                        type: number
                        required: false
                      - name: trojan
                        type: number
                        required: false
                      - name: bullx
                        type: number
                        required: false
                      - name: helius-sender
                        type: number
                        required: false
                      - name: bloom
                        type: number
                        required: false
                      - name: photon
                        type: number
                        required: false
                      - name: padre
                        type: number
                        required: false
                      - name: maestro
                        type: number
                        required: false
                      - name: vector
                        type: number
                        required: false
                      - name: totalTrading
                        type: number
                        required: false
                      - name: totalTips
                        type: number
                        required: false
                      - name: total
                        type: number
                        required: false
        headers: []
        jsonPayloadSchema:
          type: object
          properties:
            type:
              type: string
              const: message
              x-parser-schema-id: <anonymous-schema-656>
            room:
              type: string
              x-parser-schema-id: <anonymous-schema-657>
            data:
              type: object
              properties:
                tx:
                  type: string
                  x-parser-schema-id: <anonymous-schema-658>
                time:
                  type: integer
                  x-parser-schema-id: <anonymous-schema-659>
                fees:
                  type: object
                  additionalProperties:
                    type: number
                    x-parser-schema-id: <anonymous-schema-661>
                  x-parser-schema-id: <anonymous-schema-660>
                total:
                  type: object
                  properties:
                    axiom:
                      type: number
                      x-parser-schema-id: <anonymous-schema-663>
                    network:
                      type: number
                      x-parser-schema-id: <anonymous-schema-664>
                    jito:
                      type: number
                      x-parser-schema-id: <anonymous-schema-665>
                    0slot:
                      type: number
                      x-parser-schema-id: <anonymous-schema-666>
                    trojan:
                      type: number
                      x-parser-schema-id: <anonymous-schema-667>
                    bullx:
                      type: number
                      x-parser-schema-id: <anonymous-schema-668>
                    helius-sender:
                      type: number
                      x-parser-schema-id: <anonymous-schema-669>
                    bloom:
                      type: number
                      x-parser-schema-id: <anonymous-schema-670>
                    photon:
                      type: number
                      x-parser-schema-id: <anonymous-schema-671>
                    padre:
                      type: number
                      x-parser-schema-id: <anonymous-schema-672>
                    maestro:
                      type: number
                      x-parser-schema-id: <anonymous-schema-673>
                    vector:
                      type: number
                      x-parser-schema-id: <anonymous-schema-674>
                    totalTrading:
                      type: number
                      x-parser-schema-id: <anonymous-schema-675>
                    totalTips:
                      type: number
                      x-parser-schema-id: <anonymous-schema-676>
                    total:
                      type: number
                      x-parser-schema-id: <anonymous-schema-677>
                  x-parser-schema-id: <anonymous-schema-662>
              x-parser-schema-id: FeeData
          examples:
            - type: message
              room: fees:6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN
              data:
                tx: >-
                  3EwLcwsS73wDNEW8vaGdyNpXyoxKZdPxuB4tgSaGRcC9vpfUseXjQVBTMLvqVDkF5KprdZteMTN9TGKdq4oKpyPq
                time: 1757871892237
                fees:
                  axiom: 0.676535
                  network: 0.45175
                  jito: 6.681536
                total:
                  axiom: 0.676535
                  network: 0.45175
                  jito: 6.681536
                  0slot: 0.04325
                  trojan: 0.112371
                  bullx: 0.00464
                  helius-sender: 0.086536
                  bloom: 0.002594
                  photon: 0.007489
                  padre: 0.015293
                  maestro: 0.000199
                  vector: 0.002656
                  totalTrading: 1.231
                  totalTips: 8.52312
                  total: 10.23
          x-parser-schema-id: <anonymous-schema-655>
        title: Fees message
        description: Fee tracking notification
        example: |-
          {
            "type": "message",
            "room": "fees:6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN",
            "data": {
              "tx": "3EwLcwsS73wDNEW8vaGdyNpXyoxKZdPxuB4tgSaGRcC9vpfUseXjQVBTMLvqVDkF5KprdZteMTN9TGKdq4oKpyPq",
              "time": 1757871892237,
              "fees": {
                "axiom": 0.676535,
                "network": 0.45175,
                "jito": 6.681536
              },
              "total": {
                "axiom": 0.676535,
                "network": 0.45175,
                "jito": 6.681536,
                "0slot": 0.04325,
                "trojan": 0.112371,
                "bullx": 0.00464,
                "helius-sender": 0.086536,
                "bloom": 0.002594,
                "photon": 0.007489,
                "padre": 0.015293,
                "maestro": 0.000199,
                "vector": 0.002656,
                "totalTrading": 1.231,
                "totalTips": 8.52312,
                "total": 10.23
              }
            }
          }
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: feesMessage
          - id: x-parser-message-name
            value: feesMessage
    bindings: []
    extensions: *ref_0
  - &ref_2
    id: unsubscribeFromFees
    title: Unsubscribe from fees
    description: Unsubscribe from fees
    type: receive
    messages:
      - &ref_6
        id: leaveFees
        payload:
          - name: leaveFees
            description: Unsubscribe from fee tracking
            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-679>
            room:
              type: string
              default: fees:6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN
              x-parser-schema-id: <anonymous-schema-680>
          examples:
            - type: leave
              room: fees:6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN
          x-parser-schema-id: <anonymous-schema-678>
        title: Leave fees
        description: Unsubscribe from fee tracking
        example: |-
          {
            "type": "leave",
            "room": "fees:6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN"
          }
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: leaveFees
          - id: x-parser-message-name
            value: leaveFees
    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: feeTracking
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: []

````