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

# Samples

## Reference SDK

**`nt-trade-api-sample` — coming soon.** A modern TypeScript reference sample covering both the
**[Trade API](/api)** and the **Market Data API** (WebSocket subscriptions for quotes, DOM,
histograms, and charts, with reconnection and typed models) is in development. This page will link
it once it's published.

## Current examples

| Sample                                                                                      | Language   | Covers                                                   |
| ------------------------------------------------------------------------------------------- | ---------- | -------------------------------------------------------- |
| [example-api-js](https://github.com/tradovate/example-api-js/tree/main/tutorial/WebSockets) | JavaScript | WebSocket lessons — quotes, DOM, charts, and tick charts |

These community examples are older and being modernized; the `nt-trade-api-sample` reference above
will be the maintained standard.