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

# Market stream

> Live WebSocket stream of Mannco.store market events (price changes, new and removed listings)



## AsyncAPI

````yaml asyncapi.json marketStream
id: marketStream
title: Market stream
description: >-
  Live stream of market events: price changes, new and removed listings, and buy
  order activity (added, removed, updated, activated, deactivated).
servers:
  - id: production
    protocol: wss
    host: api.mannco.store
    bindings: []
    variables: []
address: /ws
parameters: []
bindings: []
operations:
  - &ref_38
    id: receiveMarketEvents
    title: Receive market events
    description: Receive live market events broadcast by the server.
    type: receive
    messages:
      - &ref_39
        id: priceChanged
        contentType: application/json
        payload:
          - name: Price changed
            description: A listing's price was updated.
            type: object
            properties:
              - name: event
                type: string
                description: Event name.
                required: true
              - name: ts
                type: integer
                description: Unix timestamp (seconds) of the event.
                examples: &ref_0
                  - 1782403724
                required: true
              - name: data
                type: object
                required: true
                properties:
                  - name: id
                    type: integer
                    description: Listing id.
                    examples: &ref_1
                      - 57322926
                    required: true
                  - name: assetId
                    type: string
                    description: Steam asset id of the listed item.
                    examples: &ref_2
                      - '17188460072'
                    required: true
                  - name: itemId
                    type: integer
                    description: Catalog item id.
                    examples: &ref_3
                      - 1536
                    required: true
                  - name: oldPrice
                    type: integer
                    description: Previous price in integer cents.
                    examples: &ref_4
                      - 1527
                    required: true
                  - name: newPrice
                    type: integer
                    description: New price in integer cents.
                    examples: &ref_5
                      - 1525
                    required: true
        headers: []
        jsonPayloadSchema:
          type: object
          description: Emitted when the price of an existing listing changes.
          required:
            - event
            - ts
            - data
          properties:
            event:
              type: string
              const: price_changed
              description: Event name.
              x-parser-schema-id: <anonymous-schema-1>
            ts:
              type: integer
              description: Unix timestamp (seconds) of the event.
              examples: *ref_0
              x-parser-schema-id: <anonymous-schema-2>
            data:
              type: object
              required:
                - id
                - assetId
                - itemId
                - oldPrice
                - newPrice
              properties:
                id:
                  type: integer
                  description: Listing id.
                  examples: *ref_1
                  x-parser-schema-id: <anonymous-schema-4>
                assetId:
                  type: string
                  description: Steam asset id of the listed item.
                  examples: *ref_2
                  x-parser-schema-id: <anonymous-schema-5>
                itemId:
                  type: integer
                  description: Catalog item id.
                  examples: *ref_3
                  x-parser-schema-id: <anonymous-schema-6>
                oldPrice:
                  type: integer
                  description: Previous price in integer cents.
                  examples: *ref_4
                  x-parser-schema-id: <anonymous-schema-7>
                newPrice:
                  type: integer
                  description: New price in integer cents.
                  examples: *ref_5
                  x-parser-schema-id: <anonymous-schema-8>
              x-parser-schema-id: <anonymous-schema-3>
          examples:
            - event: price_changed
              ts: 1782403724
              data:
                id: 57322926
                assetId: '17188460072'
                itemId: 1536
                oldPrice: 1527
                newPrice: 1525
          x-parser-schema-id: PriceChanged
        title: Price changed
        description: A listing's price was updated.
        example: |-
          {
            "event": "price_changed",
            "ts": 1782403724,
            "data": {
              "id": 57322926,
              "assetId": "17188460072",
              "itemId": 1536,
              "oldPrice": 1527,
              "newPrice": 1525
            }
          }
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: priceChanged
      - &ref_40
        id: listingAdded
        contentType: application/json
        payload:
          - name: Listing added
            description: A new listing was added to the market.
            type: object
            properties:
              - name: event
                type: string
                description: Event name.
                required: true
              - name: ts
                type: integer
                description: Unix timestamp (seconds) of the event.
                examples: &ref_6
                  - 1782403704
                required: true
              - name: data
                type: object
                required: true
                properties:
                  - name: id
                    type: integer
                    description: Listing id.
                    examples: &ref_7
                      - 57348505
                    required: true
                  - name: assetId
                    type: string
                    description: Steam asset id of the listed item.
                    examples: &ref_8
                      - '17190178976'
                    required: true
                  - name: itemId
                    type: integer
                    description: Catalog item id.
                    examples: &ref_9
                      - 16145
                    required: true
                  - name: price
                    type: integer
                    description: Listing price in integer cents.
                    examples: &ref_10
                      - 61
                    required: true
        headers: []
        jsonPayloadSchema:
          type: object
          description: Emitted when a new listing is added to the market.
          required:
            - event
            - ts
            - data
          properties:
            event:
              type: string
              const: listing_added
              description: Event name.
              x-parser-schema-id: <anonymous-schema-9>
            ts:
              type: integer
              description: Unix timestamp (seconds) of the event.
              examples: *ref_6
              x-parser-schema-id: <anonymous-schema-10>
            data:
              type: object
              required:
                - id
                - assetId
                - itemId
                - price
              properties:
                id:
                  type: integer
                  description: Listing id.
                  examples: *ref_7
                  x-parser-schema-id: <anonymous-schema-12>
                assetId:
                  type: string
                  description: Steam asset id of the listed item.
                  examples: *ref_8
                  x-parser-schema-id: <anonymous-schema-13>
                itemId:
                  type: integer
                  description: Catalog item id.
                  examples: *ref_9
                  x-parser-schema-id: <anonymous-schema-14>
                price:
                  type: integer
                  description: Listing price in integer cents.
                  examples: *ref_10
                  x-parser-schema-id: <anonymous-schema-15>
              x-parser-schema-id: <anonymous-schema-11>
          examples:
            - event: listing_added
              ts: 1782403704
              data:
                id: 57348505
                assetId: '17190178976'
                itemId: 16145
                price: 61
          x-parser-schema-id: ListingAdded
        title: Listing added
        description: A new listing was added to the market.
        example: |-
          {
            "event": "listing_added",
            "ts": 1782403704,
            "data": {
              "id": 57348505,
              "assetId": "17190178976",
              "itemId": 16145,
              "price": 61
            }
          }
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: listingAdded
      - &ref_41
        id: listingRemoved
        contentType: application/json
        payload:
          - name: Listing removed
            description: A listing was removed from the market.
            type: object
            properties:
              - name: event
                type: string
                description: Event name.
                required: true
              - name: ts
                type: integer
                description: Unix timestamp (seconds) of the event.
                examples: &ref_11
                  - 1782403724
                required: true
              - name: data
                type: object
                required: true
                properties:
                  - name: id
                    type: integer
                    description: Listing id that was removed.
                    examples: &ref_12
                      - 57348505
                    required: true
        headers: []
        jsonPayloadSchema:
          type: object
          description: Emitted when a listing is removed from the market.
          required:
            - event
            - ts
            - data
          properties:
            event:
              type: string
              const: listing_removed
              description: Event name.
              x-parser-schema-id: <anonymous-schema-16>
            ts:
              type: integer
              description: Unix timestamp (seconds) of the event.
              examples: *ref_11
              x-parser-schema-id: <anonymous-schema-17>
            data:
              type: object
              required:
                - id
              properties:
                id:
                  type: integer
                  description: Listing id that was removed.
                  examples: *ref_12
                  x-parser-schema-id: <anonymous-schema-19>
              x-parser-schema-id: <anonymous-schema-18>
          examples:
            - event: listing_removed
              ts: 1782403724
              data:
                id: 57348505
          x-parser-schema-id: ListingRemoved
        title: Listing removed
        description: A listing was removed from the market.
        example: |-
          {
            "event": "listing_removed",
            "ts": 1782403724,
            "data": {
              "id": 57348505
            }
          }
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: listingRemoved
      - &ref_42
        id: buyorderAdded
        contentType: application/json
        payload:
          - name: Buy order added
            description: A new buy order was created.
            type: object
            properties:
              - name: event
                type: string
                description: Event name.
                required: true
              - name: ts
                type: integer
                description: Unix timestamp (seconds) of the event.
                examples: &ref_13
                  - 1782403724
                required: true
              - name: data
                type: object
                required: true
                properties:
                  - name: id
                    type: integer
                    description: Buy order id.
                    examples: &ref_14
                      - 880421
                    required: true
                  - name: itemId
                    type: integer
                    description: Catalog item id.
                    examples: &ref_15
                      - 1536
                    required: true
                  - name: price
                    type: integer
                    description: Buy order price in integer cents.
                    examples: &ref_16
                      - 1525
                    required: true
                  - name: amount
                    type: integer
                    description: >-
                      Quantity requested by the buy order. A positive value
                      denotes an active order; a negative value denotes an
                      inactive one.
                    examples: &ref_17
                      - 5
                    required: true
        headers: []
        jsonPayloadSchema:
          type: object
          description: >-
            Emitted when a new buy order is created (non-zero amount) and is not
            yet tracked.
          required:
            - event
            - ts
            - data
          properties:
            event:
              type: string
              const: buyorder_added
              description: Event name.
              x-parser-schema-id: <anonymous-schema-20>
            ts:
              type: integer
              description: Unix timestamp (seconds) of the event.
              examples: *ref_13
              x-parser-schema-id: <anonymous-schema-21>
            data:
              type: object
              required:
                - id
                - itemId
                - price
                - amount
              properties:
                id:
                  type: integer
                  description: Buy order id.
                  examples: *ref_14
                  x-parser-schema-id: <anonymous-schema-23>
                itemId:
                  type: integer
                  description: Catalog item id.
                  examples: *ref_15
                  x-parser-schema-id: <anonymous-schema-24>
                price:
                  type: integer
                  description: Buy order price in integer cents.
                  examples: *ref_16
                  x-parser-schema-id: <anonymous-schema-25>
                amount:
                  type: integer
                  description: >-
                    Quantity requested by the buy order. A positive value
                    denotes an active order; a negative value denotes an
                    inactive one.
                  examples: *ref_17
                  x-parser-schema-id: <anonymous-schema-26>
              x-parser-schema-id: <anonymous-schema-22>
          examples:
            - event: buyorder_added
              ts: 1782403724
              data:
                id: 880421
                itemId: 1536
                price: 1525
                amount: 5
          x-parser-schema-id: BuyorderAdded
        title: Buy order added
        description: A new buy order was created.
        example: |-
          {
            "event": "buyorder_added",
            "ts": 1782403724,
            "data": {
              "id": 880421,
              "itemId": 1536,
              "price": 1525,
              "amount": 5
            }
          }
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: buyorderAdded
      - &ref_43
        id: buyorderRemoved
        contentType: application/json
        payload:
          - name: Buy order removed
            description: A tracked buy order reached an amount of 0 and was removed.
            type: object
            properties:
              - name: event
                type: string
                description: Event name.
                required: true
              - name: ts
                type: integer
                description: Unix timestamp (seconds) of the event.
                examples: &ref_18
                  - 1782403724
                required: true
              - name: data
                type: object
                required: true
                properties:
                  - name: id
                    type: integer
                    description: Buy order id that was removed.
                    examples: &ref_19
                      - 880421
                    required: true
                  - name: itemId
                    type: integer
                    description: Catalog item id.
                    examples: &ref_20
                      - 1536
                    required: true
                  - name: oldPrice
                    type: integer
                    description: Price of the buy order before removal, in integer cents.
                    examples: &ref_21
                      - 1525
                    required: true
        headers: []
        jsonPayloadSchema:
          type: object
          description: >-
            Emitted when a tracked buy order reaches an amount of 0 and is
            removed.
          required:
            - event
            - ts
            - data
          properties:
            event:
              type: string
              const: buyorder_removed
              description: Event name.
              x-parser-schema-id: <anonymous-schema-27>
            ts:
              type: integer
              description: Unix timestamp (seconds) of the event.
              examples: *ref_18
              x-parser-schema-id: <anonymous-schema-28>
            data:
              type: object
              required:
                - id
                - itemId
                - oldPrice
              properties:
                id:
                  type: integer
                  description: Buy order id that was removed.
                  examples: *ref_19
                  x-parser-schema-id: <anonymous-schema-30>
                itemId:
                  type: integer
                  description: Catalog item id.
                  examples: *ref_20
                  x-parser-schema-id: <anonymous-schema-31>
                oldPrice:
                  type: integer
                  description: Price of the buy order before removal, in integer cents.
                  examples: *ref_21
                  x-parser-schema-id: <anonymous-schema-32>
              x-parser-schema-id: <anonymous-schema-29>
          examples:
            - event: buyorder_removed
              ts: 1782403724
              data:
                id: 880421
                itemId: 1536
                oldPrice: 1525
          x-parser-schema-id: BuyorderRemoved
        title: Buy order removed
        description: A tracked buy order reached an amount of 0 and was removed.
        example: |-
          {
            "event": "buyorder_removed",
            "ts": 1782403724,
            "data": {
              "id": 880421,
              "itemId": 1536,
              "oldPrice": 1525
            }
          }
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: buyorderRemoved
      - &ref_44
        id: buyorderUpdated
        contentType: application/json
        payload:
          - name: Buy order updated
            description: A buy order's price or amount changed.
            type: object
            properties:
              - name: event
                type: string
                description: Event name.
                required: true
              - name: ts
                type: integer
                description: Unix timestamp (seconds) of the event.
                examples: &ref_22
                  - 1782403724
                required: true
              - name: data
                type: object
                required: true
                properties:
                  - name: id
                    type: integer
                    description: Buy order id.
                    examples: &ref_23
                      - 880421
                    required: true
                  - name: itemId
                    type: integer
                    description: Catalog item id.
                    examples: &ref_24
                      - 1536
                    required: true
                  - name: oldPrice
                    type: integer
                    description: Previous price in integer cents.
                    examples: &ref_25
                      - 1525
                    required: true
                  - name: newPrice
                    type: integer
                    description: New price in integer cents.
                    examples: &ref_26
                      - 1530
                    required: true
                  - name: oldAmount
                    type: integer
                    description: Previous quantity requested.
                    examples: &ref_27
                      - 5
                    required: true
                  - name: newAmount
                    type: integer
                    description: New quantity requested.
                    examples: &ref_28
                      - 3
                    required: true
        headers: []
        jsonPayloadSchema:
          type: object
          description: >-
            Emitted when a buy order's price or amount changes without a change
            of sign on the amount.
          required:
            - event
            - ts
            - data
          properties:
            event:
              type: string
              const: buyorder_updated
              description: Event name.
              x-parser-schema-id: <anonymous-schema-33>
            ts:
              type: integer
              description: Unix timestamp (seconds) of the event.
              examples: *ref_22
              x-parser-schema-id: <anonymous-schema-34>
            data:
              type: object
              required:
                - id
                - itemId
                - oldPrice
                - newPrice
                - oldAmount
                - newAmount
              properties:
                id:
                  type: integer
                  description: Buy order id.
                  examples: *ref_23
                  x-parser-schema-id: <anonymous-schema-36>
                itemId:
                  type: integer
                  description: Catalog item id.
                  examples: *ref_24
                  x-parser-schema-id: <anonymous-schema-37>
                oldPrice:
                  type: integer
                  description: Previous price in integer cents.
                  examples: *ref_25
                  x-parser-schema-id: <anonymous-schema-38>
                newPrice:
                  type: integer
                  description: New price in integer cents.
                  examples: *ref_26
                  x-parser-schema-id: <anonymous-schema-39>
                oldAmount:
                  type: integer
                  description: Previous quantity requested.
                  examples: *ref_27
                  x-parser-schema-id: <anonymous-schema-40>
                newAmount:
                  type: integer
                  description: New quantity requested.
                  examples: *ref_28
                  x-parser-schema-id: <anonymous-schema-41>
              x-parser-schema-id: <anonymous-schema-35>
          examples:
            - event: buyorder_updated
              ts: 1782403724
              data:
                id: 880421
                itemId: 1536
                oldPrice: 1525
                newPrice: 1530
                oldAmount: 5
                newAmount: 3
          x-parser-schema-id: BuyorderUpdated
        title: Buy order updated
        description: A buy order's price or amount changed.
        example: |-
          {
            "event": "buyorder_updated",
            "ts": 1782403724,
            "data": {
              "id": 880421,
              "itemId": 1536,
              "oldPrice": 1525,
              "newPrice": 1530,
              "oldAmount": 5,
              "newAmount": 3
            }
          }
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: buyorderUpdated
      - &ref_45
        id: buyorderActivated
        contentType: application/json
        payload:
          - name: Buy order activated
            description: >-
              A buy order's amount went from negative to positive (became
              active).
            type: object
            properties:
              - name: event
                type: string
                description: Event name.
                required: true
              - name: ts
                type: integer
                description: Unix timestamp (seconds) of the event.
                examples: &ref_29
                  - 1782403724
                required: true
              - name: data
                type: object
                required: true
                properties:
                  - name: id
                    type: integer
                    description: Buy order id.
                    examples: &ref_30
                      - 880421
                    required: true
                  - name: itemId
                    type: integer
                    description: Catalog item id.
                    examples: &ref_31
                      - 1536
                    required: true
                  - name: price
                    type: integer
                    description: Buy order price in integer cents.
                    examples: &ref_32
                      - 1525
                    required: true
                  - name: amount
                    type: integer
                    description: Quantity requested by the now-active buy order (positive).
                    examples: &ref_33
                      - 5
                    required: true
        headers: []
        jsonPayloadSchema:
          type: object
          description: >-
            Emitted when a buy order's amount transitions from negative to
            positive (it becomes active).
          required:
            - event
            - ts
            - data
          properties:
            event:
              type: string
              const: buyorder_activated
              description: Event name.
              x-parser-schema-id: <anonymous-schema-42>
            ts:
              type: integer
              description: Unix timestamp (seconds) of the event.
              examples: *ref_29
              x-parser-schema-id: <anonymous-schema-43>
            data:
              type: object
              required:
                - id
                - itemId
                - price
                - amount
              properties:
                id:
                  type: integer
                  description: Buy order id.
                  examples: *ref_30
                  x-parser-schema-id: <anonymous-schema-45>
                itemId:
                  type: integer
                  description: Catalog item id.
                  examples: *ref_31
                  x-parser-schema-id: <anonymous-schema-46>
                price:
                  type: integer
                  description: Buy order price in integer cents.
                  examples: *ref_32
                  x-parser-schema-id: <anonymous-schema-47>
                amount:
                  type: integer
                  description: Quantity requested by the now-active buy order (positive).
                  examples: *ref_33
                  x-parser-schema-id: <anonymous-schema-48>
              x-parser-schema-id: <anonymous-schema-44>
          examples:
            - event: buyorder_activated
              ts: 1782403724
              data:
                id: 880421
                itemId: 1536
                price: 1525
                amount: 5
          x-parser-schema-id: BuyorderActivated
        title: Buy order activated
        description: A buy order's amount went from negative to positive (became active).
        example: |-
          {
            "event": "buyorder_activated",
            "ts": 1782403724,
            "data": {
              "id": 880421,
              "itemId": 1536,
              "price": 1525,
              "amount": 5
            }
          }
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: buyorderActivated
      - &ref_46
        id: buyorderDeactivated
        contentType: application/json
        payload:
          - name: Buy order deactivated
            description: >-
              A buy order's amount went from positive to negative (became
              inactive).
            type: object
            properties:
              - name: event
                type: string
                description: Event name.
                required: true
              - name: ts
                type: integer
                description: Unix timestamp (seconds) of the event.
                examples: &ref_34
                  - 1782403724
                required: true
              - name: data
                type: object
                required: true
                properties:
                  - name: id
                    type: integer
                    description: Buy order id.
                    examples: &ref_35
                      - 880421
                    required: true
                  - name: itemId
                    type: integer
                    description: Catalog item id.
                    examples: &ref_36
                      - 1536
                    required: true
                  - name: price
                    type: integer
                    description: Buy order price in integer cents.
                    examples: &ref_37
                      - 1525
                    required: true
        headers: []
        jsonPayloadSchema:
          type: object
          description: >-
            Emitted when a buy order's amount transitions from positive to
            negative (it becomes inactive).
          required:
            - event
            - ts
            - data
          properties:
            event:
              type: string
              const: buyorder_deactivated
              description: Event name.
              x-parser-schema-id: <anonymous-schema-49>
            ts:
              type: integer
              description: Unix timestamp (seconds) of the event.
              examples: *ref_34
              x-parser-schema-id: <anonymous-schema-50>
            data:
              type: object
              required:
                - id
                - itemId
                - price
              properties:
                id:
                  type: integer
                  description: Buy order id.
                  examples: *ref_35
                  x-parser-schema-id: <anonymous-schema-52>
                itemId:
                  type: integer
                  description: Catalog item id.
                  examples: *ref_36
                  x-parser-schema-id: <anonymous-schema-53>
                price:
                  type: integer
                  description: Buy order price in integer cents.
                  examples: *ref_37
                  x-parser-schema-id: <anonymous-schema-54>
              x-parser-schema-id: <anonymous-schema-51>
          examples:
            - event: buyorder_deactivated
              ts: 1782403724
              data:
                id: 880421
                itemId: 1536
                price: 1525
          x-parser-schema-id: BuyorderDeactivated
        title: Buy order deactivated
        description: A buy order's amount went from positive to negative (became inactive).
        example: |-
          {
            "event": "buyorder_deactivated",
            "ts": 1782403724,
            "data": {
              "id": 880421,
              "itemId": 1536,
              "price": 1525
            }
          }
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: buyorderDeactivated
    bindings: []
    extensions:
      - id: x-parser-unique-object-id
        value: marketStream
sendOperations:
  - *ref_38
receiveOperations: []
sendMessages:
  - *ref_39
  - *ref_40
  - *ref_41
  - *ref_42
  - *ref_43
  - *ref_44
  - *ref_45
  - *ref_46
receiveMessages: []
extensions:
  - id: x-parser-unique-object-id
    value: marketStream
securitySchemes: []

````