Samples

SDKs and code samples for building on the Trade API.
View as Markdown

Reference SDK

nt-trade-api-sample — coming soon. A dedicated, modern TypeScript reference sample for the Trade API and Market Data API 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.

SampleLanguageCovers
example-api-jsJavaScriptREST + WebSocket tutorial series — access tokens, orders, market data
example-api-oauthJavaScriptOAuth authorization-code flow (see OAuth Integration)
example-api-trading-strategyJavaScriptAutomated trading-strategy bot
example-api-faqJavaScriptFAQ and focused code samples