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

# Category feed

> Trades (and other non-state events) when the payload includes category/categorySlug (enriched feeds).



## AsyncAPI

````yaml datastream/pm-filters.json categoryFeed
id: categoryFeed
title: Category feed
description: >-
  Trades (and other non-state events) when the payload includes
  category/categorySlug (enriched feeds).
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: subscribeCategoryFeed
    title: Subscribe category feed
    description: Subscribe by market category
    type: receive
    messages:
      - &ref_4
        id: joinCategoryFeed
        payload:
          - name: joinCategoryFeed
            description: Subscribe by market category
            type: object
            properties:
              - name: type
                type: string
                description: join
                required: true
              - name: room
                type: string
                description: 'Room pattern: `pm:category:{category}`'
                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:category:{category}`'
              default: pm:category:crypto
              x-parser-schema-id: <anonymous-schema-73>
          examples:
            - type: join
              room: pm:category:crypto
          x-parser-schema-id: <anonymous-schema-71>
        title: Join category feed
        description: Subscribe by market category
        example: |-
          {
            "type": "join",
            "room": "pm:category:crypto"
          }
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: joinCategoryFeed
          - id: x-parser-message-name
            value: joinCategoryFeed
    bindings: []
    extensions: &ref_0
      - id: x-displayName
        value: Category Feed
      - id: x-parser-unique-object-id
        value: categoryFeed
  - &ref_3
    id: receiveCategoryFeedMessage
    title: Receive category feed message
    description: Receive Category Feed updates
    type: send
    messages:
      - &ref_6
        id: categoryFeedMessage
        payload:
          - name: categoryFeedMessage
            description: Category Feed 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:category:crypto
              data:
                type: trade
                channel: trades
                exchange: polymarket
                marketId: '1234567890'
                timestamp: 1785347120123
          x-parser-schema-id: <anonymous-schema-77>
        title: Category feed message
        description: Category Feed update
        example: |-
          {
            "type": "message",
            "room": "pm:category:crypto",
            "data": {
              "type": "trade",
              "channel": "trades",
              "exchange": "polymarket",
              "marketId": "1234567890",
              "timestamp": 1785347120123
            }
          }
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: categoryFeedMessage
          - id: x-parser-message-name
            value: categoryFeedMessage
    bindings: []
    extensions: *ref_0
  - &ref_2
    id: unsubscribeCategoryFeed
    title: Unsubscribe category feed
    description: Unsubscribe from Category Feed
    type: receive
    messages:
      - &ref_5
        id: leaveCategoryFeed
        payload:
          - name: leaveCategoryFeed
            description: Unsubscribe from Category Feed
            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:category:crypto
              x-parser-schema-id: <anonymous-schema-82>
          examples:
            - type: leave
              room: pm:category:crypto
          x-parser-schema-id: <anonymous-schema-80>
        title: Leave category feed
        description: Unsubscribe from Category Feed
        example: |-
          {
            "type": "leave",
            "room": "pm:category:crypto"
          }
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: leaveCategoryFeed
          - id: x-parser-message-name
            value: leaveCategoryFeed
    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: Category Feed
  - id: x-parser-unique-object-id
    value: categoryFeed
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: []

````