Quick answer
ProjectX is the trading platform behind TopstepX and several other futures prop firms, and its Gateway API lets you trade those accounts from code: authenticate with your username and API key to get a session token, place and manage orders over REST, and stream quotes, orders and positions through SignalR hubs. API access is a paid add-on subscription.
ProjectX (TopstepX API) at a glance
- Pricing
- API access is a paid monthly add-on
- Availability
- Prop-firm traders on ProjectX-powered platforms
- Paper trading
- Prop-firm evaluation and practice accounts
- Integration type
- REST + API key
- In AlgoGP
- Design and backtest in AlgoGP, connect the exported code
- Auth
- Username + API key → JWT session token
- Orders
- REST (
/api/Order/placeand friends) - Real time
- SignalR user and market hubs
- Price
- Paid monthly API add-on
- Rules
- Prop-firm risk rules still apply
Prop-firm rules and automation
Build a ProjectX (TopstepX API) strategy with AlgoGP
AlgoGP does not connect to ProjectX (TopstepX API) natively yet. ProjectX (TopstepX API) uses plain HTTPS with an API key, so it is a good candidate for a native adapter; it is not built in yet.
- 1
Design and backtest in AlgoGP
Describe the strategy to the copilot and backtest it on years of normalized history. The result does not depend on any vendor.
- 2
Export the Python project
Every project exports
strategy.py,market_data.py,brokers.pyandlive.py. The strategy only sees bars, cash, positions and orders, never a vendor’s wire format. - 3
Plug in ProjectX (TopstepX API)
Implement the four adapter methods (
account,positions,submit_market_orderand a candle fetcher) with ProjectX (TopstepX API)’s SDK, or keep a built-in platform for paper trading and add ProjectX (TopstepX API) when you go live.
Built-in brokers for the same markets: Interactive Brokers, OKX.
ProjectX (TopstepX API): frequently asked questions
Does TopstepX have an API?
Yes, through the ProjectX Gateway API, as a paid add-on.
Can I backtest on TopstepX data?
The API serves historical bars; you can also backtest in AlgoGP on its own futures history.
Design and backtest your ProjectX (TopstepX API) strategy first
AlgoGP turns an idea into Python and tests it on years of history before you connect it to ProjectX (TopstepX API). The exported code keeps the broker behind four small adapter methods.
- AI copilot writes and revises the rules
- Backtests with realistic costs
- Exported Python ready to wire to ProjectX (TopstepX API)
Free plan, no card required.
ProjectX (TopstepX API) alternatives
- Tradovate API GuideCloud futures broker with a REST and WebSocket API, a demo host and token-based authentication.
- Rithmic API GuideLow-latency futures order routing and market data used by prop firms, through C++/.NET SDKs and R|Protocol.
- NinjaTrader API GuideFutures trading platform with NinjaScript (C#) and an Automated Trading Interface, not a cloud REST trading API.
- Interactive Brokers API Built into AlgoGPThe broadest multi-asset broker API: stocks, options, futures, FX and bonds on 150+ markets, through TWS or IB Gateway.
Independent guide. AlgoGP is not affiliated with ProjectX (TopstepX API). Limits, prices and availability change; confirm them in the official documentation. Nothing here is investment advice.