Trading API
The Trading API is the wire protocol your strategy speaks to the Trading Gateway. The same protocol covers all three Gateway modes — backtest, paper, and live — so strategy code stays identical as you promote from simulation to real markets.
Your strategy opens a WebSocket connection to :8080/v1/ws to receive market events (ticks, bars, fills, position updates) and uses REST endpoints at :8080/v1/* to place, modify, and cancel orders. See Concepts for the full architectural picture, including how the Gateway maps a single normalised order model onto each broker's native API.
Get started
- Concepts — Unified protocol, execution modes, connection model
- Connection — Authenticate and connect your strategy
- Hello World — Your first strategy in 6 languages
Reference
- Types — Orders, Positions, Events, Instruments
- Messages — WebSocket, REST
- Examples — Placing Orders, Handling Events
The Trading API is implemented by the Trading Gateway. To run a Gateway, follow the setup guide.