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 orderPOSTPlace multileg orderGETGet orderDELETECancel order

Option Details

GETGet option greeks_1
HelpFeedback

Get Started

Generate a new Access token

Generate a Secret key

Go to the settings page and generate a secret key.

Use the secret key to exchange for an Access token

curl --request POST \
  --url https://api.public.com/userapiauthservice/personal/access-tokens \
  --header 'Content-Type: application/json' \
  --data '{
  "validityInMinutes": 60,
  "secret": "YOUR_SECRET_KEY"
}'

accessToken is returned in the response:

{
  "accessToken": "YOUR_ACCESS_TOKEN"
}

Authenticate your request

Include the accessToken in the Authorization header to authenticate any API request:

Authorization: Bearer YOUR_ACCESS_TOKEN