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

# Developer holdings

> Subscribe to developer holdings changes for a token



## AsyncAPI

````yaml datastream/safety.json developerHoldings
id: developerHoldings
title: Developer holdings
description: Subscribe to developer holdings 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: subscribeToDev
    title: Subscribe to dev
    description: Subscribe to dev holdings
    type: receive
    messages:
      - &ref_5
        id: joinDev
        payload:
          - name: joinDev
            description: Subscribe to developer holdings
            type: object
            properties:
              - name: type
                type: string
                description: join
                required: true
              - name: room
                type: string
                description: Dev holding room (dev_holding:{tokenAddress})
                required: true
        headers: []
        jsonPayloadSchema:
          type: object
          required:
            - type
            - room
          properties:
            type:
              type: string
              const: join
              default: join
              x-parser-schema-id: <anonymous-schema-46>
            room:
              type: string
              pattern: ^dev_holding:[A-Za-z0-9]{32,44}$
              description: Dev holding room (dev_holding:{tokenAddress})
              default: dev_holding:6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN
              x-parser-schema-id: <anonymous-schema-47>
          examples:
            - type: join
              room: dev_holding:6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN
          x-parser-schema-id: <anonymous-schema-45>
        title: Join dev
        description: Subscribe to developer holdings
        example: |-
          {
            "type": "join",
            "room": "dev_holding:6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN"
          }
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: joinDev
          - id: x-parser-message-name
            value: joinDev
    bindings: []
    extensions: &ref_0
      - id: x-parser-unique-object-id
        value: developerHoldings
  - &ref_3
    id: receiveDevConfirmation
    title: Receive dev confirmation
    description: Receive dev confirmation
    type: send
    messages:
      - &ref_7
        id: devJoined
        payload:
          - name: devJoined
            description: Dev holding 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-49>
            room:
              type: string
              x-parser-schema-id: <anonymous-schema-50>
          examples:
            - type: joined
              room: dev_holding:6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN
          x-parser-schema-id: <anonymous-schema-48>
        title: Dev joined
        description: Dev holding subscription confirmed
        example: |-
          {
            "type": "joined",
            "room": "dev_holding:6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN"
          }
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: devJoined
          - id: x-parser-message-name
            value: devJoined
    bindings: []
    extensions: *ref_0
  - &ref_4
    id: receiveDevData
    title: Receive dev data
    description: Receive dev holdings
    type: send
    messages:
      - &ref_8
        id: devMessage
        payload:
          - name: devMessage
            description: Developer holding change 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: token
                    type: string
                    required: false
                  - name: creator
                    type: string
                    required: false
                  - name: amount
                    type: string
                    required: false
                  - name: percentage
                    type: number
                    required: false
                  - name: previousPercentage
                    type: number
                    required: false
                  - name: timestamp
                    type: integer
                    required: false
                  - name: action
                    type: string
                    enumValues:
                      - buy
                      - sell
                      - hold
                    required: false
                  - name: changeAmount
                    type: integer
                    required: false
        headers: []
        jsonPayloadSchema:
          type: object
          properties:
            type:
              type: string
              const: message
              x-parser-schema-id: <anonymous-schema-52>
            room:
              type: string
              x-parser-schema-id: <anonymous-schema-53>
            data:
              type: object
              properties:
                token:
                  type: string
                  x-parser-schema-id: <anonymous-schema-54>
                creator:
                  type: string
                  x-parser-schema-id: <anonymous-schema-55>
                amount:
                  type: string
                  x-parser-schema-id: <anonymous-schema-56>
                percentage:
                  type: number
                  x-parser-schema-id: <anonymous-schema-57>
                previousPercentage:
                  type: number
                  x-parser-schema-id: <anonymous-schema-58>
                timestamp:
                  type: integer
                  x-parser-schema-id: <anonymous-schema-59>
                action:
                  type: string
                  enum:
                    - buy
                    - sell
                    - hold
                  x-parser-schema-id: <anonymous-schema-60>
                changeAmount:
                  type: integer
                  x-parser-schema-id: <anonymous-schema-61>
              x-parser-schema-id: DevHolding
          examples:
            - type: message
              room: dev_holding:6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN
              data:
                token: 6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN
                creator: 4Rz5xqikxtZ2s7wE9uQ6n2oLXQi6K65XGoYpKxf24Hqo
                amount: '150000000000'
                percentage: 15
                previousPercentage: 20
                timestamp: 1739318753652
          x-parser-schema-id: <anonymous-schema-51>
        title: Dev message
        description: Developer holding change notification
        example: |-
          {
            "type": "message",
            "room": "dev_holding:6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN",
            "data": {
              "token": "6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN",
              "creator": "4Rz5xqikxtZ2s7wE9uQ6n2oLXQi6K65XGoYpKxf24Hqo",
              "amount": "150000000000",
              "percentage": 15,
              "previousPercentage": 20,
              "timestamp": 1739318753652
            }
          }
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: devMessage
          - id: x-parser-message-name
            value: devMessage
    bindings: []
    extensions: *ref_0
  - &ref_2
    id: unsubscribeFromDev
    title: Unsubscribe from dev
    description: Unsubscribe from dev
    type: receive
    messages:
      - &ref_6
        id: leaveDev
        payload:
          - name: leaveDev
            description: Unsubscribe from dev holdings
            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-63>
            room:
              type: string
              default: dev_holding:6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN
              x-parser-schema-id: <anonymous-schema-64>
          examples:
            - type: leave
              room: dev_holding:6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN
          x-parser-schema-id: <anonymous-schema-62>
        title: Leave dev
        description: Unsubscribe from dev holdings
        example: |-
          {
            "type": "leave",
            "room": "dev_holding:6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN"
          }
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: leaveDev
          - id: x-parser-message-name
            value: leaveDev
    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: developerHoldings
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: []

````