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

# Exchange resolution

> Resolution channel scoped to one exchange (typically kalshi).



## AsyncAPI

````yaml datastream/pm-lifecycle.json exchangeResolution
id: exchangeResolution
title: Exchange resolution
description: Resolution channel scoped to one exchange (typically kalshi).
servers:
  - id: production
    protocol: wss
    host: datastream.solanatracker.io
    bindings: []
    variables:
      - id: apiKey
        description: Your unique API key from Data API subscription
        defaultValue: YOUR_DATASTREAM_KEY
        allowedValues: []
        examples: []
address: /
parameters: []
bindings: []
operations:
  - &ref_1
    id: subscribeExchangeResolution
    title: Subscribe exchange resolution
    description: Subscribe to resolution events for one exchange
    type: receive
    messages:
      - &ref_4
        id: joinExchangeResolution
        payload:
          - name: joinExchangeResolution
            description: Subscribe to resolution events for one exchange
            type: object
            properties:
              - name: type
                type: string
                description: join
                required: true
              - name: room
                type: string
                description: 'Room pattern: `pm:{exchange}:resolution`'
                required: true
        headers: []
        jsonPayloadSchema:
          type: object
          required:
            - type
            - room
          properties:
            type:
              type: string
              const: join
              default: join
              x-parser-schema-id: <anonymous-schema-72>
            room:
              type: string
              description: 'Room pattern: `pm:{exchange}:resolution`'
              default: pm:polymarket:resolution
              x-parser-schema-id: <anonymous-schema-73>
          examples:
            - type: join
              room: pm:polymarket:resolution
          x-parser-schema-id: <anonymous-schema-71>
        title: Join exchange resolution
        description: Subscribe to resolution events for one exchange
        example: |-
          {
            "type": "join",
            "room": "pm:polymarket:resolution"
          }
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: joinExchangeResolution
          - id: x-parser-message-name
            value: joinExchangeResolution
    bindings: []
    extensions: &ref_0
      - id: x-displayName
        value: Exchange Resolution
      - id: x-parser-unique-object-id
        value: exchangeResolution
  - &ref_3
    id: receiveExchangeResolutionMessage
    title: Receive exchange resolution message
    description: Receive Exchange Resolution updates
    type: send
    messages:
      - &ref_6
        id: exchangeResolutionMessage
        payload:
          - name: exchangeResolutionMessage
            description: Exchange Resolution update
            type: object
            properties:
              - name: type
                type: string
                description: message
                required: false
              - name: room
                type: string
                required: false
              - name: data
                type: object
                description: >-
                  Flat room data. Envelope fields plus event-specific fields
                  (trade/price/orderbook/…) at the top level.
                required: false
                properties:
                  - name: type
                    type: string
                    description: >-
                      Event kind (trade, price, orderbook_snapshot, quote,
                      crypto_price, …)
                    required: true
                  - name: channel
                    type: string
                    enumValues:
                      - prices
                      - trades
                      - orderbook
                      - quotes
                      - volume
                      - market_lifecycle
                      - resolution
                    required: true
                  - name: exchange
                    type: string
                    enumValues:
                      - kalshi
                      - polymarket
                    required: true
                  - name: marketId
                    type: string
                    required: true
                  - name: eventId
                    type: string
                    required: false
                  - name: seriesId
                    type: string
                    required: false
                  - name: category
                    type: string
                    required: false
                  - name: sport
                    type: string
                    required: false
                  - name: sourceId
                    type: string
                    description: Exchange/source idempotency key (omit when empty)
                    required: false
                  - name: timestamp
                    type: integer
                    description: Unix epoch milliseconds
                    required: true
        headers: []
        jsonPayloadSchema:
          type: object
          properties:
            type:
              type: string
              const: message
              x-parser-schema-id: <anonymous-schema-78>
            room:
              type: string
              x-parser-schema-id: <anonymous-schema-79>
            data:
              type: object
              description: >-
                Flat room data. Envelope fields plus event-specific fields
                (trade/price/orderbook/…) at the top level.
              additionalProperties: true
              required:
                - type
                - channel
                - exchange
                - marketId
                - timestamp
              properties:
                type:
                  type: string
                  description: >-
                    Event kind (trade, price, orderbook_snapshot, quote,
                    crypto_price, …)
                  x-parser-schema-id: <anonymous-schema-10>
                channel:
                  type: string
                  enum:
                    - prices
                    - trades
                    - orderbook
                    - quotes
                    - volume
                    - market_lifecycle
                    - resolution
                  x-parser-schema-id: <anonymous-schema-11>
                exchange:
                  type: string
                  enum:
                    - kalshi
                    - polymarket
                  x-parser-schema-id: <anonymous-schema-12>
                marketId:
                  type: string
                  x-parser-schema-id: <anonymous-schema-13>
                eventId:
                  type: string
                  x-parser-schema-id: <anonymous-schema-14>
                seriesId:
                  type: string
                  x-parser-schema-id: <anonymous-schema-15>
                category:
                  type: string
                  x-parser-schema-id: <anonymous-schema-16>
                sport:
                  type: string
                  x-parser-schema-id: <anonymous-schema-17>
                sourceId:
                  type: string
                  description: Exchange/source idempotency key (omit when empty)
                  x-parser-schema-id: <anonymous-schema-18>
                timestamp:
                  type: integer
                  description: Unix epoch milliseconds
                  x-parser-schema-id: <anonymous-schema-19>
              x-parser-schema-id: RealtimeData
          examples:
            - type: message
              room: pm:polymarket:resolution
              data:
                type: trade
                channel: trades
                exchange: polymarket
                marketId: '1234567890'
                timestamp: 1785347120123
          x-parser-schema-id: <anonymous-schema-77>
        title: Exchange resolution message
        description: Exchange Resolution update
        example: |-
          {
            "type": "message",
            "room": "pm:polymarket:resolution",
            "data": {
              "type": "trade",
              "channel": "trades",
              "exchange": "polymarket",
              "marketId": "1234567890",
              "timestamp": 1785347120123
            }
          }
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: exchangeResolutionMessage
          - id: x-parser-message-name
            value: exchangeResolutionMessage
    bindings: []
    extensions: *ref_0
  - &ref_2
    id: unsubscribeExchangeResolution
    title: Unsubscribe exchange resolution
    description: Unsubscribe from Exchange Resolution
    type: receive
    messages:
      - &ref_5
        id: leaveExchangeResolution
        payload:
          - name: leaveExchangeResolution
            description: Unsubscribe from Exchange Resolution
            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-81>
            room:
              type: string
              default: pm:polymarket:resolution
              x-parser-schema-id: <anonymous-schema-82>
          examples:
            - type: leave
              room: pm:polymarket:resolution
          x-parser-schema-id: <anonymous-schema-80>
        title: Leave exchange resolution
        description: Unsubscribe from Exchange Resolution
        example: |-
          {
            "type": "leave",
            "room": "pm:polymarket:resolution"
          }
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: leaveExchangeResolution
          - id: x-parser-message-name
            value: leaveExchangeResolution
    bindings: []
    extensions: *ref_0
sendOperations:
  - *ref_1
  - *ref_2
receiveOperations:
  - *ref_3
sendMessages:
  - *ref_4
  - *ref_5
receiveMessages:
  - *ref_6
extensions:
  - id: x-displayName
    value: Exchange Resolution
  - id: x-parser-unique-object-id
    value: exchangeResolution
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: []

````