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

# Price all pools

> Subscribe to price updates for a token from all pools



## AsyncAPI

````yaml datastream/prices.json priceAllPools
id: priceAllPools
title: Price all pools
description: Subscribe to price updates for a token from all pools
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: subscribeToPriceAll
    title: Subscribe to price all
    description: Subscribe to all prices
    type: receive
    messages:
      - &ref_5
        id: joinPriceAll
        payload:
          - name: joinPriceAll
            description: Subscribe to all pool prices
            type: object
            properties:
              - name: type
                type: string
                description: join
                required: true
              - name: room
                type: string
                description: Price all pools room (price:{tokenAddress})
                required: true
        headers: []
        jsonPayloadSchema:
          type: object
          required:
            - type
            - room
          properties:
            type:
              type: string
              const: join
              default: join
              x-parser-schema-id: <anonymous-schema-59>
            room:
              type: string
              pattern: ^price:[A-Za-z0-9]{32,44}$
              description: Price all pools room (price:{tokenAddress})
              default: price:9BB6NFEcjBCtnNLFko2FqVQBq8HHM13kCyYcdQbgpump
              x-parser-schema-id: <anonymous-schema-60>
          examples:
            - type: join
              room: price:9BB6NFEcjBCtnNLFko2FqVQBq8HHM13kCyYcdQbgpump
          x-parser-schema-id: <anonymous-schema-58>
        title: Join price all
        description: Subscribe to all pool prices
        example: |-
          {
            "type": "join",
            "room": "price:9BB6NFEcjBCtnNLFko2FqVQBq8HHM13kCyYcdQbgpump"
          }
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: joinPriceAll
          - id: x-parser-message-name
            value: joinPriceAll
    bindings: []
    extensions: &ref_0
      - id: x-parser-unique-object-id
        value: priceAllPools
  - &ref_3
    id: receivePriceAllConfirmation
    title: Receive price all confirmation
    description: Receive confirmation
    type: send
    messages:
      - &ref_7
        id: priceAllJoined
        payload:
          - name: priceAllJoined
            description: All prices 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-62>
            room:
              type: string
              x-parser-schema-id: <anonymous-schema-63>
          examples:
            - type: joined
              room: price:9BB6NFEcjBCtnNLFko2FqVQBq8HHM13kCyYcdQbgpump
          x-parser-schema-id: <anonymous-schema-61>
        title: Price all joined
        description: All prices subscription confirmed
        example: |-
          {
            "type": "joined",
            "room": "price:9BB6NFEcjBCtnNLFko2FqVQBq8HHM13kCyYcdQbgpump"
          }
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: priceAllJoined
          - id: x-parser-message-name
            value: priceAllJoined
    bindings: []
    extensions: *ref_0
  - &ref_4
    id: receivePriceAllData
    title: Receive price all data
    description: Receive all prices
    type: send
    messages:
      - &ref_8
        id: priceAllMessage
        payload:
          - name: priceAllMessage
            description: All pools price update
            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: price
                    type: number
                    required: false
                  - name: price_quote
                    type: number
                    required: false
                  - name: pool
                    type: string
                    required: false
                  - name: token
                    type: string
                    required: false
                  - name: time
                    type: integer
                    required: false
        headers: []
        jsonPayloadSchema:
          type: object
          properties:
            type:
              type: string
              const: message
              x-parser-schema-id: <anonymous-schema-65>
            room:
              type: string
              x-parser-schema-id: <anonymous-schema-66>
            data:
              type: object
              properties:
                price:
                  type: number
                  x-parser-schema-id: <anonymous-schema-10>
                price_quote:
                  type: number
                  x-parser-schema-id: <anonymous-schema-11>
                pool:
                  type: string
                  x-parser-schema-id: <anonymous-schema-12>
                token:
                  type: string
                  x-parser-schema-id: <anonymous-schema-13>
                time:
                  type: integer
                  x-parser-schema-id: <anonymous-schema-14>
              x-parser-schema-id: PriceUpdate
          examples:
            - type: message
              room: price:9BB6NFEcjBCtnNLFko2FqVQBq8HHM13kCyYcdQbgpump
              data:
                price: 0.008006
                price_quote: 0.00010064
                pool: EWiYmq3nWQpoTkcU4UfGYEoYvDHduDsXhpPvqmoqpump
                token: 9BB6NFEcjBCtnNLFko2FqVQBq8HHM13kCyYcdQbgpump
                time: 1723728065246
          x-parser-schema-id: <anonymous-schema-64>
        title: Price all message
        description: All pools price update
        example: |-
          {
            "type": "message",
            "room": "price:9BB6NFEcjBCtnNLFko2FqVQBq8HHM13kCyYcdQbgpump",
            "data": {
              "price": 0.008006,
              "price_quote": 0.00010064,
              "pool": "EWiYmq3nWQpoTkcU4UfGYEoYvDHduDsXhpPvqmoqpump",
              "token": "9BB6NFEcjBCtnNLFko2FqVQBq8HHM13kCyYcdQbgpump",
              "time": 1723728065246
            }
          }
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: priceAllMessage
          - id: x-parser-message-name
            value: priceAllMessage
    bindings: []
    extensions: *ref_0
  - &ref_2
    id: unsubscribeFromPriceAll
    title: Unsubscribe from price all
    description: Unsubscribe
    type: receive
    messages:
      - &ref_6
        id: leavePriceAll
        payload:
          - name: leavePriceAll
            description: Unsubscribe from all prices
            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-68>
            room:
              type: string
              default: price:9BB6NFEcjBCtnNLFko2FqVQBq8HHM13kCyYcdQbgpump
              x-parser-schema-id: <anonymous-schema-69>
          examples:
            - type: leave
              room: price:9BB6NFEcjBCtnNLFko2FqVQBq8HHM13kCyYcdQbgpump
          x-parser-schema-id: <anonymous-schema-67>
        title: Leave price all
        description: Unsubscribe from all prices
        example: |-
          {
            "type": "leave",
            "room": "price:9BB6NFEcjBCtnNLFko2FqVQBq8HHM13kCyYcdQbgpump"
          }
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: leavePriceAll
          - id: x-parser-message-name
            value: leavePriceAll
    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: priceAllPools
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: []

````