> ## Documentation Index
> Fetch the complete documentation index at: https://docs.decibel.trade/llms.txt
> Use this file to discover all available pages before exploring further.

# All market prices

> Price updates for all markets (global topic)



## AsyncAPI

````yaml api-reference/asyncapi.json allMarketPrices
id: allMarketPrices
title: All market prices
description: Price updates for all markets (global topic)
servers:
  - id: testnet
    protocol: wss
    host: api.testnet.aptoslabs.com/decibel/ws
    bindings: []
    variables: []
address: all_market_prices
parameters: []
bindings: []
operations:
  - &ref_0
    id: receiveallMarketPrices
    title: Receiveall market prices
    description: Receive updates for price updates for all markets (global topic)
    type: receive
    messages:
      - &ref_1
        id: AllMarketPricesMessage
        payload:
          - name: AllMarketPricesMessage
            description: Price updates for all markets (global topic)
            type: object
            properties:
              - name: prices
                type: array
                required: true
              - name: topic
                type: string
                required: true
        headers: []
        jsonPayloadSchema:
          type: object
          required:
            - topic
            - prices
          properties:
            prices:
              type: array
              items:
                type: object
                required:
                  - market
                  - oracle_px
                  - mark_px
                  - mid_px
                  - funding_rate_bps
                  - is_funding_positive
                  - transaction_unix_ms
                  - open_interest
                properties:
                  funding_rate_bps:
                    type: integer
                    format: int64
                    minimum: 0
                    x-parser-schema-id: <anonymous-schema-120>
                  is_funding_positive:
                    type: boolean
                    x-parser-schema-id: <anonymous-schema-121>
                  mark_px:
                    type: number
                    format: double
                    x-parser-schema-id: <anonymous-schema-122>
                  market:
                    type: string
                    example: 0xmarket123...
                    x-parser-schema-id: <anonymous-schema-123>
                  mid_px:
                    type: number
                    format: double
                    x-parser-schema-id: <anonymous-schema-124>
                  open_interest:
                    type: number
                    format: double
                    x-parser-schema-id: <anonymous-schema-125>
                  oracle_px:
                    type: number
                    format: double
                    x-parser-schema-id: <anonymous-schema-126>
                  transaction_unix_ms:
                    type: integer
                    format: int64
                    x-parser-schema-id: <anonymous-schema-127>
                x-parser-schema-id: PriceDto
              x-parser-schema-id: <anonymous-schema-119>
            topic:
              type: string
              x-parser-schema-id: <anonymous-schema-128>
          x-parser-schema-id: AllMarketPricesResponse
        title: All market prices message
        description: Price updates for all markets (global topic)
        example: |-
          {
            "topic": "all_market_prices",
            "prices": [
              {
                "market": "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890",
                "oracle_px": 50125.75,
                "mark_px": 50120.5,
                "mid_px": 50122.25,
                "funding_rate_bps": 5,
                "is_funding_positive": true,
                "transaction_unix_ms": 1699564800000,
                "open_interest": 125000.5
              },
              {
                "market": "0x1111111111111111111111111111111111111111111111111111111111111111",
                "oracle_px": 3250,
                "mark_px": 3248.75,
                "mid_px": 3249.5,
                "funding_rate_bps": 3,
                "is_funding_positive": false,
                "transaction_unix_ms": 1699564800000,
                "open_interest": 85000.25
              }
            ]
          }
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: AllMarketPricesMessage
          - id: x-parser-message-name
            value: AllMarketPricesMessage
    bindings: []
    extensions:
      - id: x-parser-unique-object-id
        value: allMarketPrices
sendOperations:
  - *ref_0
receiveOperations: []
sendMessages:
  - *ref_1
receiveMessages: []
extensions:
  - id: x-parser-unique-object-id
    value: allMarketPrices
securitySchemes: []

````