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
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
Export the Python project
Every project exports
strategy.py,market_data.py,brokers.pyandlive.py. The strategy only sees bars, cash, positions and orders, never a vendor’s wire format. - 3
Plug in Public.com
Implement the four adapter methods (
account,positions,submit_market_orderand 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
- Alpaca API Built into AlgoGPCommission-free API-first broker for US stocks, ETFs and crypto, with a free paper-trading account.
- Webull API GuideWebull OpenAPI: official trading and market-data API for US stocks, options and more, signed with an App Key and App Secret.
- Tradier API Built into AlgoGPDeveloper-focused US brokerage for stocks and options, with a REST API and a free sandbox token.
- Charles Schwab Trader API GuideThe successor to the TD Ameritrade API: stocks, ETFs and options trading plus quotes and history, via OAuth 2.0.
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.