TradeStation
Log InOpen Account
API & Integration

Automate Your
Trading Strategy

Full programmatic access to orders, positions, real-time quotes, and market data. Build algo strategies, automate execution, or connect your own front-end.

Low Latency
Average response under 12 ms. Co-located servers in US-East and US-West.
Secure by Default
API keys scoped to read, trade, or admin. IP allow-listing available.
REST + WebSocket
RESTful HTTP/2 for actions; WebSocket streams for real-time quotes and fills.
Market Data
Level 1 & Level 2 quotes, options chains, historical bars, and economic calendar.
Official SDKs
Python, JavaScript/TypeScript, and Go libraries with full type definitions.
Interactive Docs
OpenAPI 3 spec with live sandbox try-it-now — no account required.
example.ts
TypeScript
import tradestation from "@tradestation/sdk";

const client = tradestation.createClient({
  apiKey: process.env.TS_API_KEY,
  sandbox: false,
});

// Place a market order
const order = await client.orders.create({
  symbol: "AAPL",
  qty: 10,
  side: "buy",
  type: "market",
  timeInForce: "day",
});

console.log(`Order ${order.id} filled at ${order.avgFillPrice}`);

Core Endpoints

Base URL: https://api.tradestation.dev

GET/v1/accountsList all accounts and balances
GET/v1/positionsOpen positions with real-time P&L
POST/v1/ordersPlace market, limit, or stop orders
GET/v1/orders/{id}Order status and fill details
DELETE/v1/orders/{id}Cancel an open order
GET/v1/quotes/{symbol}Real-time quote snapshot
GET/v1/history/{symbol}Historical OHLCV bars
GET/v1/options/chain/{symbol}Full options chain with greeks
Free
Throughput5 req/s
Daily quota10,000/day
WS streams1 stream
Pro
Throughput50 req/s
Daily quota1M/day
WS streams10 streams
Institutional
Throughput500 req/s
Daily quotaUnlimited
WS streamsUnlimited

Ready to build?

API keys are provisioned instantly for all account types. Sandbox environment included.