Guide
BrokerMarket dataStocksETFsOptionsCrypto API key

Public.com API guide

Public opened its brokerage to code with an individual API program aimed at people automating their own accounts.

Last verified · Also known as Public API, Public.com API, Public trading API

Quick answer

Public.com has an official Trading API for individual investors: monitor your portfolio, get real-time stock and options quotes, and place single- and multi-leg orders from code. You request access, generate a secret key in settings and exchange it for a short-lived access token. Use is limited to personal, non-commercial projects under the individual API program.

Public.com API at a glance

Pricing
Free for personal use under the individual program
Availability
US residents (individual API program, approval required)
Paper trading
No sandbox
Integration type
REST + API key
In AlgoGP
Design and backtest in AlgoGP, connect the exported code
Auth
Secret key → short-lived access token (Bearer)
Assets
Stocks, ETFs, options (incl. multi-leg), crypto
SDK
Python publicdotcom-py
Terms
Personal, non-commercial use

Getting access

Request access from Public’s API page with the individual form. After approval, open account settings, generate a secret key and keep it private: you are responsible for every action taken with it. Your code trades by exchanging the secret for an access token and calling the REST endpoints with it.

Build a Public.com strategy with AlgoGP

AlgoGP does not connect to Public.com natively yet. Public.com 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 Public.com

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

Built-in brokers for the same markets: Alpaca, Binance, Kraken, Bybit.

Public.com API: frequently asked questions

Is the Public.com API free?

It is free under the individual program today; Public reserves the right to charge for API products later.

Does Public have a paper-trading API?

Not at the time of writing; paper trade in AlgoGP or with another broker first.

Design and backtest your Public.com strategy first

AlgoGP turns an idea into Python and tests it on years of history before you connect it to Public.com. 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 Public.com

Free plan, no card required.

Public.com alternatives

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

Build a strategy