> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.ninjatrader.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.ninjatrader.com/_mcp/server.

# dom

GET /md/subscribeDOM

Reference: https://docs.ninjatrader.com/market-data/web-socket-api/dom/dom

## AsyncAPI Specification

```yaml
asyncapi: 2.6.0
info:
  title: dom
  version: subpackage_dom.dom
channels:
  /md/subscribeDOM:
    publish:
      operationId: subpackage_dom.dom-publish
      summary: onDom
      message:
        name: onDom
        title: onDom
        payload:
          $ref: '#/components/schemas/dom_domEvent'
    subscribe:
      operationId: subpackage_dom.dom-subscribe
      summary: subscribeDOM
      message:
        name: subscribeDOM
        title: subscribeDOM
        payload:
          $ref: '#/components/schemas/dom_subscribe'
servers:
  Demo:
    url: wss://md-demo.tradovateapi.com/
    protocol: wss
    x-default: true
  Live:
    url: wss://md.tradovateapi.com/
    protocol: wss
components:
  schemas:
    ChannelsDomMessagesDomEventE:
      type: string
      enum:
        - md
      title: ChannelsDomMessagesDomEventE
    PriceLevel:
      type: object
      properties:
        price:
          type: number
          format: double
        size:
          type: number
          format: double
      title: PriceLevel
    Dom:
      type: object
      properties:
        contractId:
          type: integer
          format: int64
        timestamp:
          type: string
          format: date-time
        bids:
          type: array
          items:
            $ref: '#/components/schemas/PriceLevel'
        offers:
          type: array
          items:
            $ref: '#/components/schemas/PriceLevel'
      title: Dom
    ChannelsDomMessagesDomEventD:
      type: object
      properties:
        doms:
          type: array
          items:
            $ref: '#/components/schemas/Dom'
      title: ChannelsDomMessagesDomEventD
    dom_domEvent:
      type: object
      properties:
        e:
          $ref: '#/components/schemas/ChannelsDomMessagesDomEventE'
        d:
          $ref: '#/components/schemas/ChannelsDomMessagesDomEventD'
      description: Event frame with e="md" carrying a doms array.
      title: dom_domEvent
    dom_subscribe:
      type: object
      properties:
        symbol:
          type: string
          description: Contract symbol (e.g., "ESM7") or contract ID as a string.
      required:
        - symbol
      title: dom_subscribe

```