Guide
PlatformStocksETFsOptions No key needed

Fidelity API guide

Fidelity is one of the largest US brokers, but it does not open trading to code. Here is what that means for building a bot.

Last verified · Also known as Fidelity API, Fidelity Investments API

Quick answer

Fidelity does not offer a public API for retail customers to place trades or stream market data. Aggregators can read account data through Fidelity Access (for permissioned apps), and unofficial browser-automation scripts exist but are unsupported. For automated trading, open an account at a broker with a public API such as Schwab, Interactive Brokers, Alpaca or Tradier.

Fidelity API at a glance

Pricing
No retail API
Availability
US
Paper trading
Not applicable (data only)
Integration type
No public API
In AlgoGP
Design and backtest in AlgoGP, connect the exported code
Retail trading API
None
Account data
Fidelity Access for approved aggregators
Alternatives
Schwab, IBKR, Alpaca, Tradier

Build a Fidelity strategy with AlgoGP

AlgoGP does not connect to Fidelity natively yet. Fidelity has no supported public trading or data API.

  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 Fidelity

    Implement the four adapter methods (account, positions, submit_market_order and a candle fetcher) with Fidelity’s SDK, or keep a built-in platform for paper trading and add Fidelity when you go live.

Built-in data sources for the same markets: Alpaca, Yahoo Finance, Alpha Vantage, Tradier.

Fidelity API: frequently asked questions

Can I automate trading on Fidelity?

Not through an official API. Moving the strategy to a broker with an API is the reliable route.

Automate the strategy you would run on Fidelity

Describe your rules, backtest them on years of stock, crypto or forex data, and export Python for a broker that has a real API.

  • No API key needed to start
  • Built-in Alpaca, Tradier, OANDA, Binance and more
  • Free plan, no card

Free plan, no card required.

Fidelity alternatives

Independent guide. AlgoGP is not affiliated with Fidelity. Limits, prices and availability change; confirm them in the official documentation. Nothing here is investment advice.