Botfolio automation guides

Topstep API

Topstep API Access Explained: How to Connect a Trading Bot to a Funded Account

A clear guide to Topstep API access in 2026: what the TopstepX API does, how authentication works, what you can build, and how to connect a bot responsibly.

Updated 2026-06-02 · 3 min read · Traders researching whether and how they can access a Topstep API for automation.

If you have been searching for a "Topstep API," you are really asking three questions at once: does one exist, what can it actually do, and how do I connect a bot to my account without breaking a rule or my account. This guide answers all three in plain language.

The short version: Topstep offers API access through TopstepX, its trading platform. It is aimed at advanced traders who want to pull market data and route orders programmatically. It is powerful, and like anything powerful, it rewards people who read the docs before they wire up something that can place live trades.

What the TopstepX API actually is

TopstepX is Topstep's trading platform, and its API gives developers programmatic access to market data and order routing for connected accounts. In practice that means you can request quotes and historical bars, see account and position state, and submit, modify, or cancel orders from your own software instead of clicking inside a chart.

It is not a magic money endpoint. It is a connection layer. The intelligence — the strategy, the risk model, the decision to trade or stand down — still has to come from the system you build on top of it.

What you can build with it

Once you have access and authentication working, the API supports the building blocks most automation projects need:

  • Pull real-time and historical market data for the contracts you trade.
  • Read account balance, open positions, and working orders.
  • Place market, limit, and bracket-style orders with stops and targets.
  • Modify or cancel orders as conditions change.
  • Build dashboards, alerting, journaling, and supervised execution tools.

How authentication works at a high level

API access is gated behind credentials tied to your account. You authenticate to receive a session token, then include that token on subsequent requests. Treat that token like a key to your trading account, because functionally it is one.

Botfolio's approach is to keep production credentials in the operating system credential manager rather than in plaintext config files, and to scope what an automated process can do. If you build your own integration, do the same: never commit secrets, never paste them into a chat window, and rotate them if they are ever exposed.

Connect a bot the responsible way

The difference between a useful automation and an account-ending mistake is usually supervision. A bot connected to a live funded account should never run truly unattended on day one.

Botfolio is built around that model: train and replay the strategy first, connect through a Topstep-compatible workflow, then supervise the live bots with stop, flatten, reconnect, and diagnostics controls within reach. The API is the plumbing; the command center is what keeps you from getting surprised.

Read the official rules before you route a single order

Topstep publishes guidance on API access, prohibited conduct, and responsible trading, and those rules can change. Automation does not exempt you from them — if anything, it makes them more important, because software can break a rule faster than a human can. Confirm the current details on the official pages linked at the end of this guide before going live.

Frequently asked questions

Does Topstep have an API?

Yes. Topstep offers API access through its TopstepX platform, aimed at advanced traders who want programmatic market data and order routing. Check the official TopstepX API Access page for current eligibility and setup details.

Is the Topstep API free?

API access terms, any fees, and eligibility are set by Topstep and can change. Review the current TopstepX API documentation rather than relying on third-party summaries, and remember that market data and account fees are separate.

Can I use the Topstep API to run a trading bot?

The API supports automated strategies, but you must stay within Topstep's prohibited-conduct and responsible-trading rules. Keep manual emergency controls available and test thoroughly before connecting a bot to a live funded account.

Is Botfolio affiliated with Topstep?

No. Botfolio is independent software that helps you train strategies and supervise automation through a Topstep-compatible workflow. It is not affiliated with, endorsed by, or sponsored by Topstep.

The API is the wire. Botfolio is the command center.

Raw API access gets you a connection, not an operating process. Botfolio turns the TopstepX connection into a supervised trading system so the setups you already understand can be replayed, promoted, and executed by rules with controls close by.

Build on the API with Botfolio

Quick takeaways

  • Topstep offers API access through TopstepX for market data and order routing.
  • The API is plumbing — your strategy and risk logic still have to be good.
  • Protect API credentials like account keys and keep emergency controls available.
  • Botfolio gives you a local command center on top of the API connection.

Read the current Topstep docs

Topstep rules and platform details can change. Review the official pages before automating anything that can place orders.

Botfolio is not affiliated with, endorsed by, or sponsored by Topstep. Trading involves risk, and automation does not guarantee profits or prevent losses.