Barfinex
All exchanges
NinjaTrader

NinjaTrader

Coming SoonFutures & Derivatives
connectorType: "ninjatrader"

Futures trading platform for active traders

Connection Architecture

NinjaTrader
WebSocket / REST
Connector
libs/exchange-ninjatrader
Provider
:8081/api
Detector
Advisor
Studio

The connector receives data from the exchange and feeds it to Provider (port 8081). From there — to Detector, Advisor, and Studio.

Technologies

Transport
WebSocketREST
Authentication
Username + Password
Data Format
JSON

Best for

  • Existing NinjaTrader users who want Barfinex analytics and ML signals applied to their NinjaTrader-routed executions.
  • Strategy developers running NinjaScript automations who need an external monitoring and risk layer.
  • Multi-broker traders using NinjaTrader as a unified gateway to multiple clearing firms.

Connect via code

1Environment variables (.env)

NINJATRADER_USERNAME=your_username_here
NINJATRADER_PASSWORD=your_password_here

2Connector configuration

// config/config.provider.json
{
  "provider": {
    "connectors": [
      {
        "connectorType": "ninjatrader",
        "enabled": true,

        "markets": [
          { "marketType": "spot", "symbols": [{ "name": "BTCUSDT" }] }
        ],
        "subscriptions": [
          { "type": "PROVIDER_MARKETDATA_CANDLE", "symbols": ["BTCUSDT"], "intervals": ["min1", "h1"], "active": true },
          { "type": "PROVIDER_MARKETDATA_TRADE", "symbols": ["BTCUSDT"], "active": true },
          { "type": "PROVIDER_MARKETDATA_ORDERBOOK", "symbols": ["BTCUSDT"], "active": true }
        ]
      }
    ]
  }
}

3Verify and query data

# Verify connection
curl -H "Authorization: Bearer $PROVIDER_API_TOKEN" \
  https://localhost:8081/api/exchanges/runtime-proof

# Candles (last 7 days)
curl -H "Authorization: Bearer $PROVIDER_API_TOKEN" \
  "https://localhost:8081/api/candles/ninjatrader/spot/BTCUSDT/h1?days=7"

Available via Barfinex API

/api/candles/ninjatrader/...
/api/trades/ninjatrader/...
/api/orderbook/ninjatrader/...
/api/account/ninjatrader/...
/api/symbols/ninjatrader/...
/api/assets/ninjatrader/...

Studio graphical setup — in development, coming in the next release.

Important

NinjaTrader integration requires NinjaTrader 8 with the Barfinex add-on installed locally.
The connection uses NinjaTrader's local server API; both applications must run on the same machine or network.
Supported Markets
Futures
Connect in Studio(soon)
Exchange Website

Let’s Get in Touch

Have questions or want to explore Barfinex? Send us a message.