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

# Bundlers

> Subscribe to bundler wallet activity changes for a token



## AsyncAPI

````yaml datastream/asyncapi.json bundlers
id: bundlers
title: Bundlers
description: Subscribe to bundler wallet activity changes for a token
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: subscribeToBundler
    title: Subscribe to bundler
    description: Subscribe to bundler tracking
    type: receive
    messages:
      - &ref_5
        id: joinBundler
        payload:
          - name: joinBundler
            description: Subscribe to bundler tracking
            type: object
            properties:
              - name: type
                type: string
                description: join
                required: true
              - name: room
                type: string
                description: Bundlers room (bundlers:{tokenAddress})
                required: true
        headers: []
        jsonPayloadSchema:
          type: object
          required:
            - type
            - room
          properties:
            type:
              type: string
              const: join
              default: join
              x-parser-schema-id: <anonymous-schema-682>
            room:
              type: string
              pattern: ^bundlers:[A-Za-z0-9]{32,44}$
              description: Bundlers room (bundlers:{tokenAddress})
              default: bundlers:5PgftrLTVxQnJ8PgSyoQ3xTkRjMYcCTtmsBhk21x7crH
              x-parser-schema-id: <anonymous-schema-683>
          examples:
            - type: join
              room: bundlers:5PgftrLTVxQnJ8PgSyoQ3xTkRjMYcCTtmsBhk21x7crH
          x-parser-schema-id: <anonymous-schema-681>
        title: Join bundler
        description: Subscribe to bundler tracking
        example: |-
          {
            "type": "join",
            "room": "bundlers:5PgftrLTVxQnJ8PgSyoQ3xTkRjMYcCTtmsBhk21x7crH"
          }
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: joinBundler
          - id: x-parser-message-name
            value: joinBundler
    bindings: []
    extensions: &ref_0
      - id: x-parser-unique-object-id
        value: bundlers
  - &ref_3
    id: receiveBundlerConfirmation
    title: Receive bundler confirmation
    description: Receive bundler confirmation
    type: send
    messages:
      - &ref_7
        id: bundlerJoined
        payload:
          - name: bundlerJoined
            description: Bundler 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-685>
            room:
              type: string
              x-parser-schema-id: <anonymous-schema-686>
          examples:
            - type: joined
              room: bundlers:5PgftrLTVxQnJ8PgSyoQ3xTkRjMYcCTtmsBhk21x7crH
          x-parser-schema-id: <anonymous-schema-684>
        title: Bundler joined
        description: Bundler tracking subscription confirmed
        example: |-
          {
            "type": "joined",
            "room": "bundlers:5PgftrLTVxQnJ8PgSyoQ3xTkRjMYcCTtmsBhk21x7crH"
          }
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: bundlerJoined
          - id: x-parser-message-name
            value: bundlerJoined
    bindings: []
    extensions: *ref_0
  - &ref_4
    id: receiveBundlerData
    title: Receive bundler data
    description: Receive bundler activity
    type: send
    messages:
      - &ref_8
        id: bundlerMessage
        payload:
          - name: bundlerMessage
            description: Bundler activity 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: amount
                    type: string
                    description: Current amount held by the bundler wallet
                    required: false
                  - name: boughtAmount
                    type: number
                    description: Amount bought in the current transaction
                    required: false
                  - name: boughtPercentage
                    type: number
                    description: Percentage bought in the current transaction
                    required: false
                  - name: percentage
                    type: number
                    description: Current percentage of total supply held by this bundler
                    required: false
                  - name: previousAmount
                    type: number
                    description: Previous amount held before this transaction
                    required: false
                  - name: previousPercentage
                    type: number
                    description: Previous percentage before this transaction
                    required: false
                  - name: tokenAmount
                    type: number
                    description: Token amount in human readable format
                    required: false
                  - name: totalBundlerPercentage
                    type: number
                    description: Total percentage held by all bundlers combined
                    required: false
                  - name: wallet
                    type: string
                    description: Bundler wallet address
                    required: false
        headers: []
        jsonPayloadSchema:
          type: object
          properties:
            type:
              type: string
              const: message
              x-parser-schema-id: <anonymous-schema-688>
            room:
              type: string
              x-parser-schema-id: <anonymous-schema-689>
            data:
              type: object
              properties:
                amount:
                  type: string
                  description: Current amount held by the bundler wallet
                  x-parser-schema-id: <anonymous-schema-690>
                boughtAmount:
                  type: number
                  description: Amount bought in the current transaction
                  x-parser-schema-id: <anonymous-schema-691>
                boughtPercentage:
                  type: number
                  description: Percentage bought in the current transaction
                  x-parser-schema-id: <anonymous-schema-692>
                percentage:
                  type: number
                  description: Current percentage of total supply held by this bundler
                  x-parser-schema-id: <anonymous-schema-693>
                previousAmount:
                  type: number
                  description: Previous amount held before this transaction
                  x-parser-schema-id: <anonymous-schema-694>
                previousPercentage:
                  type: number
                  description: Previous percentage before this transaction
                  x-parser-schema-id: <anonymous-schema-695>
                tokenAmount:
                  type: number
                  description: Token amount in human readable format
                  x-parser-schema-id: <anonymous-schema-696>
                totalBundlerPercentage:
                  type: number
                  description: Total percentage held by all bundlers combined
                  x-parser-schema-id: <anonymous-schema-697>
                wallet:
                  type: string
                  description: Bundler wallet address
                  x-parser-schema-id: <anonymous-schema-698>
              required:
                - amount
                - boughtAmount
                - boughtPercentage
                - percentage
                - previousAmount
                - previousPercentage
                - tokenAmount
                - totalBundlerPercentage
                - wallet
              x-parser-schema-id: BundlerActivity
          examples:
            - type: message
              data:
                amount: '7965607901843'
                boughtAmount: 0
                boughtPercentage: 0
                percentage: 0.79656
                previousAmount: 8997866.309773
                previousPercentage: 0.89979
                tokenAmount: 7965607.901843
                totalBundlerPercentage: 22.83809
                wallet: 4ZwYf8okEL7vgyBDZEcas2mcpDAVujsgtthxRHCMDqyP
              room: bundlers:5PgftrLTVxQnJ8PgSyoQ3xTkRjMYcCTtmsBhk21x7crH
          x-parser-schema-id: <anonymous-schema-687>
        title: Bundler message
        description: Bundler activity notification
        example: |-
          {
            "type": "message",
            "data": {
              "amount": "7965607901843",
              "boughtAmount": 0,
              "boughtPercentage": 0,
              "percentage": 0.79656,
              "previousAmount": 8997866.309773,
              "previousPercentage": 0.89979,
              "tokenAmount": 7965607.901843,
              "totalBundlerPercentage": 22.83809,
              "wallet": "4ZwYf8okEL7vgyBDZEcas2mcpDAVujsgtthxRHCMDqyP"
            },
            "room": "bundlers:5PgftrLTVxQnJ8PgSyoQ3xTkRjMYcCTtmsBhk21x7crH"
          }
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: bundlerMessage
          - id: x-parser-message-name
            value: bundlerMessage
    bindings: []
    extensions: *ref_0
  - &ref_2
    id: unsubscribeFromBundler
    title: Unsubscribe from bundler
    description: Unsubscribe from bundler
    type: receive
    messages:
      - &ref_6
        id: leaveBundler
        payload:
          - name: leaveBundler
            description: Unsubscribe from bundler 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-700>
            room:
              type: string
              default: bundlers:5PgftrLTVxQnJ8PgSyoQ3xTkRjMYcCTtmsBhk21x7crH
              x-parser-schema-id: <anonymous-schema-701>
          examples:
            - type: leave
              room: bundlers:5PgftrLTVxQnJ8PgSyoQ3xTkRjMYcCTtmsBhk21x7crH
          x-parser-schema-id: <anonymous-schema-699>
        title: Leave bundler
        description: Unsubscribe from bundler tracking
        example: |-
          {
            "type": "leave",
            "room": "bundlers:5PgftrLTVxQnJ8PgSyoQ3xTkRjMYcCTtmsBhk21x7crH"
          }
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: leaveBundler
          - id: x-parser-message-name
            value: leaveBundler
    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: bundlers
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: []

````