API

Get Started

WelcomeQuickstartExamplesChangelogSDKs and Tools

Authorization

POSTCreate personal access token

List Accounts

GETGet accounts

Account Details

GETGet account portfolio v2GETGet history

Instrument Details

GETGet all instrumentsGETGet instrument

Market Data

POSTGet quotesPOSTGet option expirationsPOSTGet option chain

Order Placement

POSTPreflight single legPOSTPreflight multi legPOSTPlace orderPUTReplace orderPOSTPlace multileg orderGETGet orderDELETECancel order

Option Details

GETGet option greeks
HelpFeedback

Get Started

Welcome to the Public API

Trade stocks, ETFs, options, index options, crypto, and corporate bonds programmatically. Commission-free with rebates on every options contract.

Sign up for a new Public account

Get your account info in one request

curl https://api.public.com/userapigateway/trading/account \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"

Get your access token in the quickstart guide.

Tools & Integrations

Get started faster with our SDK, AI agent integrations, and developer tools.

Python SDK

Official Python library for building trading applications with the Public API.

View on GitHub→

MCP Server

Connect your Public account to Claude Desktop using the Model Context Protocol.

Setup guide→

OpenClaw Agent

Trade with your Public account using the OpenClaw AI agent and Agent Skill.

Setup guide→

Perplexity Agent

Use the Perplexity Computer agent skill to trade and manage your portfolio.

Setup guide→

Postman Collections

Pre-configured requests to test and explore every API endpoint.

Get collections→

Quickstart

Authenticate and make your first API request.

Let's go

Examples

Step-by-step templates for equity orders, options trades, and more.

View examples

API Reference

Full endpoint documentation for accounts, orders, and market data.

Browse endpoints

Community & Support

If you're planning to use the Public API for your project, we'd love to hear from you. Reach us by email or stay up to date with the latest updates on X (Twitter).
Stay updatedContact usBook a meeting