PRO FEATURE

CrossTrade API.
The first and only REST API for NT8.

Place orders, query positions, stream market data, and manage accounts — from Python, JavaScript, Go, or anything that can make an HTTP request. Plus real-time WebSocket streaming.

25+
Endpoints
<50ms
Avg Response
REST + WS
Protocols

Stop wrestling with NinjaScript

We're not C# programmers and we bet you aren't either. The CrossTrade API lets you interact with NinjaTrader from the languages and frameworks you actually use. Your existing infrastructure becomes your trading infrastructure.

Python # Place a market order from anywhere in the world
import requests

requests.post(
  "https://app.crosstrade.io/v1/api/accounts/sim101/orders",
  headers={"Authorization": f"Bearer {secret_key}"},
  json={
    "instrument": "ES 06-26",
    "action": "BUY",
    "quantity": 2,
    "order_type": "MARKET",
    "tif": "DAY"
  }
)

What you can do

The same underlying infrastructure CrossTrade uses to execute hundreds of thousands of webhook orders daily — now accessible via your own code.

language

Code in Any Language

Python, JavaScript, Go, Java, Rust — anything that can make an HTTP request. Use the ML frameworks, backtesting libraries, and deployment pipelines you've already built.

CORE
cell_tower

WebSocket Streaming

Real-time streaming endpoint for market data, positions, and account state. Subscribe to the channels you need and receive updates as they happen — no polling required.

SPEED
public

Trade from Anywhere

Your NinjaTrader desktop becomes a remote execution engine. Run strategies from AWS, deploy algos from your phone, or manage trades from another continent. NT8 is no longer a desktop limitation.

CORE
candlestick_chart

Real-Time Market Data

Get live bid/ask, last price, and volume for any instrument your NinjaTrader can access. Turn your existing NT8 data subscription into a personal market data server queryable from anywhere.

DATA
photo_camera

Instant Account Snapshots

Pull all account and position data in a single API call. Cash balance, open positions, unrealized P/L, margin usage, pending orders — everything in one response. Critical for sub-second decision loops.

DATA
account_tree

Multi-Account Orchestration

Programmatic control over unlimited accounts. Coordinate strategy deployment, dynamically allocate trades based on equity or performance, and monitor health across your entire operation from one script.

SCALE

25+ battle-tested endpoints

The same API that powers CrossTrade's webhook processing. Battle-tested with hundreds of thousands of daily orders.

Accounts

Summaries, balances, cash value, net liquidation, unrealized P/L, margin usage, and real-time performance metrics across all connected accounts.

Positions

Query current positions, close specific instruments, flatten everything, or reverse positions with a single call.

Orders

Place market, limit, stop, and bracket orders. Cancel, modify, or replace existing orders. Track status and execution history.

Strategies

Access NinjaTrader strategy performance data. Close strategy positions programmatically. Monitor automated execution.

Executions

Detailed fill information, execution quality analysis, slippage tracking, and commission data.

Quotes & Market

Real-time quotes for any instrument on your connected feeds. Market state, instrument specs, and trading session data.

Built for developers

menu_book

Clear Documentation

Examples in Python, JavaScript, and Go. Comprehensive error handling guides. Practical tutorials that get you trading in minutes, not hours.

error_outline

Actionable Error Messages

When something goes wrong, you get clear messages showing exactly what field caused the problem and how to fix it. No cryptic codes.

speed

Transparent Rate Limiting

60 requests per minute with clear headers. No surprise throttling, no hidden limits. Plenty of headroom for high-frequency operations.

tips_and_updates

Already using webhooks? You can send those via the API too.

The API includes a webhook trading endpoint — POST the same key=value format you use with TradingView, programmatically. Get rate limiting, Strategy Sync, multi-account placement, and all advanced webhook features from your own code. Learn more about webhook automation →

The CrossTrade API is included with every Pro subscription.
No additional fees, no usage limits. Install the Add-On, grab your secret key, and start building.