Public.com

App · 17 actions

Read your Public.com portfolio, orders, market prices and options.

Actions

ActionWhat it does
Cancel a brokerage orderCancel a brokerage order.
Get a brokerage orderGet a brokerage order.
Get a brokerage portfolioGet a brokerage portfolio.
Get an equity option chainGet an equity option chain.
Get an instrumentGet an instrument.
Get bond detailsGet bond details.
Get event contract detailsGet event contract details.
Get market quotesGet market quotes.
Get unrealized tax lots for a symbolGet unrealized tax lots for a symbol.
List account transactionsList account transactions.
List brokerage accountsList brokerage accounts.
List equity option expirationsList equity option expirations.
List event contract categoriesList event contract categories.
List tradable instrumentsList tradable instruments.
List unrealized tax lotsList unrealized tax lots.
Search bondsSearch bonds.
Search brokerage ordersSearch brokerage orders.

Cancel a brokerage order

Cancel a brokerage order.

Inputs

Accountaccount_idtextRequired
Choose the Public brokerage account.
Order IDorder_idtextRequired
Order id.

Outputs

dataobject
The response from Public.com.
Example output
{
  "data": {}
}

Get a brokerage order

Get a brokerage order.

Inputs

Accountaccount_idtextRequired
Choose the Public brokerage account.
Order IDorder_idtextRequired
Order id.

Outputs

dataobject
The response from Public.com.
Example output
{
  "data": {
    "instrument": {
      "symbol": "example",
      "type": "EQUITY"
    },
    "orderId": "example",
    "status": "example"
  }
}

Get a brokerage portfolio

Get a brokerage portfolio.

Inputs

Accountaccount_idtextRequired
Choose the Public brokerage account.

Outputs

dataobject
The response from Public.com.
Example output
{
  "data": {
    "buyingPower": {},
    "orders": [
      {
        "instrument": {
          "symbol": "example",
          "type": "EQUITY"
        },
        "orderId": "example",
        "status": "example"
      }
    ],
    "positions": [
      {}
    ]
  }
}

Get an equity option chain

Get an equity option chain.

Inputs

Accountaccount_idtextRequired
Choose the Public brokerage account.
SymbolsymboltextRequired
The underlying instrument symbol.
Expiration dateexpiration_datedateRequired
Choose an expiration listed by List equity option expirations.

Outputs

dataobject
The response from Public.com.
Example output
{
  "data": {}
}

Get an instrument

Get an instrument.

Inputs

SymbolsymboltextRequired
Symbol.
TypetypetextRequired
Type.One of: EQUITY, OPTION, MULTI_LEG_INSTRUMENT (Multi leg instrument), CRYPTO, ALT, BOND, TREASURY, INDEX, EVENTCONTRACT.

Outputs

dataobject
The response from Public.com.
Example output
{
  "data": {
    "symbol": "example",
    "type": "EQUITY"
  }
}

Get bond details

Get bond details.

Inputs

Accountaccount_idtextRequired
Choose the Public brokerage account.
SymbolsymboltextRequired
Symbol.

Outputs

dataobject
The response from Public.com.
Example output
{
  "data": {}
}

Get event contract details

Get event contract details.

Inputs

Event symbolevent_symboltextRequired
Event symbol.
Include all outcomesinclude_all_outcomestrue/false
Include all outcomes.

Outputs

dataobject
The response from Public.com.
Example output
{
  "data": {}
}

Get market quotes

Get market quotes.

Inputs

Accountaccount_idtextRequired
Choose the Public brokerage account.
InstrumentsinstrumentslistRequired
Instruments.

Outputs

dataobject
The response from Public.com.
Example output
{
  "data": {
    "quotes": [
      {}
    ]
  }
}

Get unrealized tax lots for a symbol

Get unrealized tax lots for a symbol.

Inputs

Accountaccount_idtextRequired
Choose the Public brokerage account.
SymbolsymboltextRequired
Symbol.
Pricepricenumber
Price.

Outputs

dataobject
The response from Public.com.
Example output
{
  "data": {}
}

List account transactions

List account transactions.

Inputs

Accountaccount_idtextRequired
Choose the Public brokerage account.
Startstartdate and time
Start of the history window.
Endenddate and time
End of the history window.
Page sizepage_sizenumber
Page size.At least 1.
Next tokennext_tokentext
Next token.

Outputs

dataobject
The response from Public.com.
Example output
{
  "data": {
    "nextToken": "example",
    "transactions": [
      {}
    ]
  }
}

List brokerage accounts

List brokerage accounts.

Inputs

None.

Outputs

dataobject
The response from Public.com.
Example output
{
  "data": {
    "accounts": [
      {
        "accountId": "example",
        "accountType": "example"
      }
    ]
  }
}

List equity option expirations

List equity option expirations.

Inputs

Accountaccount_idtextRequired
Choose the Public brokerage account.
SymbolsymboltextRequired
The underlying instrument symbol.

Outputs

dataobject
The response from Public.com.
Example output
{
  "data": {
    "expirations": [
      "example"
    ]
  }
}

List event contract categories

List event contract categories.

Inputs

None.

Outputs

dataobject
The response from Public.com.
Example output
{
  "data": {}
}

List tradable instruments

List tradable instruments.

Inputs

Type filtertype_filtertext
Type filter.One of: EQUITY, OPTION, MULTI_LEG_INSTRUMENT (Multi leg instrument), CRYPTO, ALT, BOND, TREASURY, INDEX, EVENTCONTRACT.
Trading filtertrading_filtertext
Filter by whole-share trading availability.One of: BUY_AND_SELL (Buy and sell), LIQUIDATION_ONLY (Liquidation only), DISABLED.
Fractional trading filterfractional_trading_filtertext
Filter by fractional trading availability.One of: BUY_AND_SELL (Buy and sell), LIQUIDATION_ONLY (Liquidation only), DISABLED.

Outputs

dataobject
The response from Public.com.
Example output
{
  "data": {
    "instruments": [
      {
        "symbol": "example",
        "type": "EQUITY"
      }
    ]
  }
}

List unrealized tax lots

List unrealized tax lots.

Inputs

Accountaccount_idtextRequired
Choose the Public brokerage account.

Outputs

dataobject
The response from Public.com.
Example output
{
  "data": {}
}

Search bonds

Search bonds.

Inputs

Issuerissuertext
Issuer.
Issuer symbolissuer_symboltext
Issuer symbol.
Page numberpage_numbertext
Page number.
Page sizepage_sizenumber
Page size.At least 1.
Min maturity datemin_maturity_datedate
Min maturity date.
Max maturity datemax_maturity_datedate
Max maturity date.

Outputs

dataobject
The response from Public.com.
Example output
{
  "data": {}
}

Search brokerage orders

Search brokerage orders.

Inputs

Accountaccount_idtextRequired
Choose the Public brokerage account.
Statusstatustext
Status.One of: NEW, PARTIALLY_FILLED (Partially filled), CANCELLED, QUEUED_CANCELLED (Queued cancelled), FILLED, REJECTED, PENDING_REPLACE (Pending replace), PENDING_CANCEL (Pending cancel), EXPIRED, REPLACED.
Sidesidetext
Side.One of: BUY, SELL.
Security typesecurity_typetext
Security type.One of: EQUITY, OPTION, MULTI_LEG_INSTRUMENT (Multi leg instrument), CRYPTO, ALT, BOND, TREASURY, INDEX, EVENTCONTRACT.
Instrumentsinstrumentslist
Instruments.
Created aftercreated_afterdate and time
Created after.
Created beforecreated_beforedate and time
Created before.

Outputs

dataobject
The response from Public.com.
Example output
{
  "data": {
    "orders": [
      {
        "instrument": {
          "symbol": "example",
          "type": "EQUITY"
        },
        "orderId": "example",
        "status": "example"
      }
    ]
  }
}

On this page