> 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 dedicated, modern TypeScript reference sample for the
**Trade API** and **[Market Data API](/market-data)** is in development (a Trade-API-focused fork of
the NinjaTrader TypeScript SDK, with authentication, orders, accounts, and real-time WebSocket data —
plus reconnection, rate limiting, and typed models). This page will link it once it's published.

## Current examples

These community examples cover the API today. They're older and being modernized, so treat them as
starting points — the `nt-trade-api-sample` reference above will be the maintained standard.

| Sample                                                                                    | Language   | Covers                                                                |
| ----------------------------------------------------------------------------------------- | ---------- | --------------------------------------------------------------------- |
| [example-api-js](https://github.com/tradovate/example-api-js)                             | JavaScript | REST + WebSocket tutorial series — access tokens, orders, market data |
| [example-api-oauth](https://github.com/tradovate/example-api-oauth)                       | JavaScript | OAuth authorization-code flow (see [OAuth Integration](/api/oauth))   |
| [example-api-trading-strategy](https://github.com/tradovate/example-api-trading-strategy) | JavaScript | Automated trading-strategy bot                                        |
| [example-api-faq](https://github.com/tradovate/example-api-faq)                           | JavaScript | FAQ and focused code samples                                          |