Broker APIs

5 articles

Broker APIs for trading bots compared: Alpaca, Interactive Brokers, Tradier, TradeStation, E*TRADE, Schwab Trader API, Webull OpenAPI, moomoo OpenAPI, Robinhood and Zerodha Kite Connect.

Broker APIs

The short answer, from FullStack Alpha: The best broker APIs for trading bots in 2026 are Alpaca (the easiest start, with free paper trading and an official MCP server) and Interactive Brokers (the widest market access). Tradier, TradeStation, E*TRADE, the Schwab Trader API, Webull OpenAPI and moomoo OpenAPI are solid alternatives, and Zerodha’s Kite Connect leads in India. FullStack Alpha’s rule: build on the paper or sandbox environment first, and never give a key withdrawal access.

Every trading bot eventually hits the same wall: it has to talk to a broker. That conversation happens through an API, and the broker you pick decides what your bot can do, which markets it can reach, and how often it breaks.

This section is for builders. If you want a ready made bot that fits your account, go to Trading Bots by Broker instead.

By the numbers: broker APIs

Four numbers that frame this topic, each linked to its source. Checked September 2026 and reviewed monthly.

Schwab

7 days

Schwab API refresh token life. Plan a weekly login.

Source: Schwab Developer Portal
Tradier

$0

Tradier’s entry plan. Paid tiers run $10 and $35 a month.

Source: Tradier
Alpaca

$99

a month for Alpaca’s Algo Trader Plus market data. The IEX feed is free.

Source: Alpaca
IBKR

170+

markets reachable through the Interactive Brokers API.

Source: Interactive Brokers

10 broker APIs compared for bot builders

The API decides what your bot can trade, how you test it and how often you have to log in. FullStack Alpha checked each one in September 2026.

Updated September 30, 2026 by Jay Rocco for FullStack Alpha. Picks are reviewed monthly. Prices were checked on vendor sites in September 2026 and change often, so confirm before you pay.

APITest environmentLogin and quirksCost to use
AlpacaFree paper APIAPI keys; official MCP serverFree; full market data $99/mo
Interactive BrokersFree paper accountGateway session; Web API; MCP connectorCommissions and data fees
TradierSandboxAPI tokenLite $0; Pro $10/mo; Pro Plus $35/mo
TradeStationSIM environmentOAuthFree with an account
E*TRADESandbox keysOAuth 1.0aFree with an account
Schwab Trader APIthinkorswim paperMoney (separate)OAuth; refresh token lasts 7 daysFree with an account
Webull OpenAPISandbox and paper simulationApp keysFree with an account
moomoo OpenAPIPaper tradingRuns through the OpenD gatewayFree with an account
Robinhood Agentic TradingNoneMCP to a separate funded account (beta)Free app
Zerodha Kite ConnectLimitedAPI key and daily loginPaid subscription

Alpaca API

Alpaca logo

Markets: US stocks, options and crypto
Data: Free IEX real time for 30 symbols over websocket; full SIP data $99 a month
Official site: alpaca.markets

REST and websocket APIs with paper and live keys kept separate. The official MCP server defaults to paper, which is the right default for AI assistants.

Read next: Alpaca API for Beginners: Keys, Paper Trading, and Your First Order · Alpaca Options API: What You Can Automate and Where It Stops

Interactive Brokers API

Interactive Brokers logo

Markets: Global stocks, options, futures, forex
Ways in: TWS API, Web API, MCP connector
Official site: interactivebrokers.com

Three doors: the TWS API through Trader Workstation or IB Gateway, the Web API, and since July 28, 2026 an MCP connector for AI tools that requires your approval on every order. The widest reach of any retail API, and the most session management work.

Read next: Interactive Brokers TWS API: Setup, Costs, and the Limits That Bite

Tradier API

Tradier logo

Markets: US stocks and options
Price: Lite $0; Pro $10 a month; Pro Plus $35 a month
Official site: tradier.com

An API first brokerage popular with options builders and third party platforms, with a sandbox for testing before you go live.

Read next: Broker With API: 7 That Let a Bot Place Real Orders

TradeStation API

TradeStation logo

Markets: Stocks, options, futures
Testing: Separate SIM environment
Official site: tradestation.com

Version 3 of its REST API has a dedicated SIM environment, and TradeStation is supported by more of the bot platforms we track than any other broker.

Read next: Broker With API: 7 That Let a Bot Place Real Orders

E*TRADE API

E*TRADE logo

Markets: US stocks and options
Testing: Sandbox keys
Official site: us.etrade.com

Individual developers can still get personal API keys plus sandbox keys. Authentication uses OAuth 1.0a, which is clunkier than modern APIs, so budget time for the login flow.

Read next: E*TRADE Paper Trading: 5 Steps to a Practice Account

Schwab Trader API

Charles Schwab logo

Access: Trader API Individual, for your own account
Quirk: Refresh token expires every 7 days
Official site: schwab.com

Covers your own Schwab account, but you log in again about once a week when the refresh token expires. That makes fully unattended bots harder than on Alpaca or IBKR.

Read next: Schwab API Guide: What Traders Can Automate and What They Can’t

Webull OpenAPI

Webull logo

Access: Open to individual investors
Testing: Sandbox, plus OpenAPI simulation in paper trading since July 21, 2026
Official site: webull.com

One of the newer retail APIs, and one of the few where a bot can practice on the same interface it will trade on.

Read next: Webull Paper Trading: How to Test a Strategy Before Real Money

moomoo OpenAPI

moomoo logo

Access: Supports moomoo US accounts
Testing: Paper trading through the same interface
Official site: moomoo.com

Runs through the OpenD gateway program on your machine, with Python and other SDKs, at no extra charge.

Read next: moomoo review on the FullStack Alpha editorial desk

Robinhood Agentic Trading

Robinhood logo

Access: Beta since May 27, 2026
Testing: No paper trading
Official site: robinhood.com

Not a classic REST API. Robinhood connects AI agents over MCP to a separate funded account, stocks only at launch. Treat every test as a live test.

Read next: Robinhood AI Trading Bot Free: Connect Claude in 3 Minutes

Zerodha Kite Connect

Zerodha Kite logo

Market: India
Cost: Paid subscription
Official site: kite.trade

The API that algo traders on r/IndiaAlgoTrading name first. It also powers no code platforms like Tradetron for traders in India.

Read next: Algorithmic Trading Reddit Advice: What Holds Up and What Burns Cash

What to compare before you commit

  1. Markets. Stocks only, or options and futures too.
  2. Paper trading endpoint. Non negotiable for testing.
  3. Order types. Brackets, stops, and extended hours support.
  4. Rate limits. How many requests before you get throttled mid session.
  5. Data. Included, delayed, or a paid add on.
  6. Country access. Many APIs are limited by residency.
  7. Stability. How often it goes down during market hours. We track outages in AI Trading News.

API key safety, the short version

  • Scope it. Trading permissions only. Never withdrawal or transfer access.
  • Separate paper and live keys, and build with paper keys.
  • Keep keys out of code. Use environment variables or a secrets manager.
  • Never push keys to GitHub. Public repos get scanned for keys constantly.
  • Rotate on exposure. If a key shows up anywhere it should not, regenerate it now.
  • Be careful with AI assistants and MCP tools. Do not paste keys into a chat. See Claude Trading Bots.

Broker APIs at a glance

Infographic: broker APIs at a glance, Alpaca, Interactive Brokers, Charles Schwab, Tradier, Webull and E*TRADE
Infographic by FullStack Alpha, September 2026. Free to share with a link back to this page.

Real trader pain points, answered

Real comments from Trustpilot, quoted as posted. Each one gets a straight answer from FullStack Alpha and a link to the guide that fixes it.

Trustpilot logoTrustpilot
Trustpilot logoTrustpilot★★★★★Interactive Brokers
Turns out they need their own software running to connect so a bit archaic there and defeats api access purpose.

Trustpilot review, September 2026. Quoted as posted. Read the original

FullStack Alpha’s answer

True for the TWS API: TWS or IB Gateway has to stay running. Plan for an always on machine or a small cloud server. The payoff is the widest market access of any retail broker API.

Read: Interactive Brokers TWS API
Trustpilot logoTrustpilot★★★★★Alpaca
Tried to set up a paper trading account to get an API but Alpaca sign up takes you into the KYC requiring my financial information

Trustpilot review, August 2026. Quoted as posted. Read the original

FullStack Alpha’s answer

Fair concern, and common: most broker APIs sit behind a full account application. Read the privacy page before you share data, and test your logic in a free backtester while you decide.

Read: Alpaca API for Beginners
Trustpilot logoTrustpilot★★★★★Alpaca
The api is unreliable!

Trustpilot review, September 2026. Quoted as posted. Read the original

FullStack Alpha’s answer

Build for failure. Retry with limits, check order status after every call, and have the bot stop trading when API errors pile up.

Read: Broker With API

From the FullStack Alpha blog

Related guides on this site, written and edited by Jay Rocco:

Our take

Your broker API is the foundation everything else sits on, and most builders pick one for the wrong reason, usually because a tutorial used it. Pick for the markets you trade, the paper environment you need, and the stability you can live with during market hours. Then protect the keys like the keys to your account, because that is exactly what they are. Write down which API you picked and why, so the next outage does not turn into a guessing game.

Quick answers

Is the Alpaca API free?

Alpaca’s trading API is free to use, and its Basic market data plan is free with real time data from the IEX exchange. Full market (SIP) real time data is a paid upgrade. Check Alpaca’s current pricing, since data plans and fees can change.

Does Schwab provide an API for trading?

Yes. Schwab offers the Trader API for individual developers who hold a Schwab account. You register on the Schwab Developer Portal, create an app, and authorize access. Plan to reauthorize periodically, since access tokens expire.

Is the Alpaca API safe?

Alpaca is a registered broker dealer, and its API uses separate paper and live keys. Safety mostly depends on you: keep keys out of code and chats, use paper keys while building, and regenerate any key that is exposed.

Edited by Jay Rocco, Founder and Editor of FullStack Alpha. Broker APIs change often, so each guide shows the month it was last verified. Educational content only, not financial advice.

Stay alpha.

Frequently Asked Questions

Which broker has the best API for trading bots?

It depends on what you build. Alpaca is popular for its developer friendly REST API and paper environment. Interactive Brokers offers the widest market access. Schwab, Tradier, and TradeStation each suit different needs.

Can a broker API key withdraw money from my account?

Standard retail trading keys are built to place and cancel orders, not move money. Still, check every permission your broker shows, never grant more than trading access, and use paper keys while building.

What is the difference between a paper and a live API key?

A paper key connects to a simulated account with fake money. A live key places real orders. Most brokers issue them separately. Build and test with paper keys only.

Where do I find my Alpaca API key?

In the Alpaca dashboard, under the account you want to trade, paper or live. Generate the key and secret, store them outside your code, and regenerate them if they are ever exposed.

Is the Alpaca API free?

Alpaca's trading API is free to use, and its Basic market data plan is free with real time data from the IEX exchange. Full market (SIP) real time data is a paid upgrade. Check Alpaca's current pricing, since data plans and fees can change.

Does Schwab provide an API for trading?

Yes. Schwab offers the Trader API for individual developers who hold a Schwab account. You register on the Schwab Developer Portal, create an app, and authorize access. Plan to re-authorize periodically, since access tokens expire.

Is the Alpaca API safe?

Alpaca is a registered broker-dealer, and its API uses separate paper and live keys. Safety mostly depends on you: keep keys out of code and chats, use paper keys while building, and regenerate any key that is exposed.

Explore Broker APIs

The FullStack Alpha network

Three sites, one standard: tested tools, no paid rankings.