> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://docs.ninjatrader.com/market-data/web-socket-api/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.ninjatrader.com/_mcp/server. # WebSocket API Reference This is the complete reference for the Market Data WebSocket API — the channels you subscribe to and the messages the server streams back. It covers: * **Quotes** — real-time top-of-book quotes. * **Depth of Market (DOM)** — bid/ask price ladders and sizes. * **Histograms** — volume-at-price data. * **Charts** — historical and streaming bar data, including tick charts. > **Note** > > New here? Start with [Getting Started](/market-data/getting-started) to obtain access and > authorize the connection, then see [Real-Time Data via WebSocket](/market-data/websockets) > for the connection and subscription protocol. Pick a channel in the sidebar to see its subscribe request and the message schema the server streams in response. > The real-time market-data channels and message schemas. ## API Docs - WebSocket API > Quotes [quotes](https://docs.ninjatrader.com/market-data/web-socket-api/quotes/quotes.md) - WebSocket API > DOM [dom](https://docs.ninjatrader.com/market-data/web-socket-api/dom/dom.md) - WebSocket API > Histogram [histogram](https://docs.ninjatrader.com/market-data/web-socket-api/histogram/histogram.md) - WebSocket API > Charts [charts](https://docs.ninjatrader.com/market-data/web-socket-api/charts/charts.md) - WebSocket API > Sentiments [sentiments](https://docs.ninjatrader.com/market-data/web-socket-api/sentiments/sentiments.md) ## AsyncAPI Specification The raw AsyncAPI 2.6.0 specification for the WebSocket channels is available at: - [AsyncAPI JSON](https://docs.ninjatrader.com/asyncapi.json) - [AsyncAPI YAML](https://docs.ninjatrader.com/asyncapi.yaml)