Security & Tradovate API Conformance

Architecture overview for traders and NinjaTrader / Tradovate Partner Review

1. Official OAuth 2.0 Authorization Code Flow

End users authenticate directly on trader.tradovate.com/oauth with single-use CSRF state validation. Token exchange occurs strictly server-side; client secrets and access tokens are never exposed to client-side browser callbacks.

2. Token Storage & Renewal

Access tokens are encrypted at rest with AES-256-GCM and renewed proactively prior to expiration via /v1/auth/renewaccesstoken. Expired OAuth sessions prompt explicit user re-authentication rather than storing long-lived user passwords.

3. Execution-Only WebSocket Architecture

CopySync listens strictly to authenticated user execution and order updates via user/syncrequest with 2.5-second SockJS heartbeats, exponential-backoff reconnects, HTTP 429 / p-ticket penalty handling, and idempotent CS: order tagging. CopySync does not redistribute CME market data.

4. Strict Tenant Isolation

Every connection, copy group, order mapping, execution log, and WebSocket subscription is isolated per authenticated user ID.