Guide
BrokerMarket dataFutures API key

ProjectX (TopstepX API) guide

Prop-firm traders long had to bridge NinjaTrader or Rithmic to automate. ProjectX gives TopstepX and partner firms a direct API.

Last verified · Also known as TopstepX API, ProjectX Gateway API, Topstep API

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/place and 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. 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. 2

    Export the Python project

    Every project exports strategy.py, market_data.py, brokers.py and live.py. The strategy only sees bars, cash, positions and orders, never a vendor’s wire format.

  3. 3

    Plug in ProjectX (TopstepX API)

    Implement the four adapter methods (account, positions, submit_market_order and 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

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.

Build a strategy