Public.com
App · 17 actions
Read your Public.com portfolio, orders, market prices and options.
Actions
| Action | What it does |
|---|---|
| Cancel a brokerage order | Cancel a brokerage order. |
| Get a brokerage order | Get a brokerage order. |
| Get a brokerage portfolio | Get a brokerage portfolio. |
| Get an equity option chain | Get an equity option chain. |
| Get an instrument | Get an instrument. |
| Get bond details | Get bond details. |
| Get event contract details | Get event contract details. |
| Get market quotes | Get market quotes. |
| Get unrealized tax lots for a symbol | Get unrealized tax lots for a symbol. |
| List account transactions | List account transactions. |
| List brokerage accounts | List brokerage accounts. |
| List equity option expirations | List equity option expirations. |
| List event contract categories | List event contract categories. |
| List tradable instruments | List tradable instruments. |
| List unrealized tax lots | List unrealized tax lots. |
| Search bonds | Search bonds. |
| Search brokerage orders | Search brokerage orders. |
Cancel a brokerage order
Cancel a brokerage order.
Inputs
- Account
account_idtextRequired - Choose the Public brokerage account.
- Order ID
order_idtextRequired - Order id.
Outputs
dataobject- The response from Public.com.
Example output
{
"data": {}
}Get a brokerage order
Get a brokerage order.
Inputs
- Account
account_idtextRequired - Choose the Public brokerage account.
- Order ID
order_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
- Account
account_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
- Account
account_idtextRequired - Choose the Public brokerage account.
- Symbol
symboltextRequired - The underlying instrument symbol.
- Expiration date
expiration_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
- Symbol
symboltextRequired - Symbol.
- Type
typetextRequired - 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
- Account
account_idtextRequired - Choose the Public brokerage account.
- Symbol
symboltextRequired - Symbol.
Outputs
dataobject- The response from Public.com.
Example output
{
"data": {}
}Get event contract details
Get event contract details.
Inputs
- Event symbol
event_symboltextRequired - Event symbol.
- Include all outcomes
include_all_outcomestrue/false - Include all outcomes.
Outputs
dataobject- The response from Public.com.
Example output
{
"data": {}
}Get market quotes
Get market quotes.
Inputs
- Account
account_idtextRequired - Choose the Public brokerage account.
- Instruments
instrumentslistRequired - 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
- Account
account_idtextRequired - Choose the Public brokerage account.
- Symbol
symboltextRequired - Symbol.
- Price
pricenumber - Price.
Outputs
dataobject- The response from Public.com.
Example output
{
"data": {}
}List account transactions
List account transactions.
Inputs
- Account
account_idtextRequired - Choose the Public brokerage account.
- Start
startdate and time - Start of the history window.
- End
enddate and time - End of the history window.
- Page size
page_sizenumber - Page size.At least 1.
- Next token
next_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
- Account
account_idtextRequired - Choose the Public brokerage account.
- Symbol
symboltextRequired - 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 filter
type_filtertext - Type filter.One of:
EQUITY,OPTION,MULTI_LEG_INSTRUMENT(Multi leg instrument),CRYPTO,ALT,BOND,TREASURY,INDEX,EVENTCONTRACT. - Trading filter
trading_filtertext - Filter by whole-share trading availability.One of:
BUY_AND_SELL(Buy and sell),LIQUIDATION_ONLY(Liquidation only),DISABLED. - Fractional trading filter
fractional_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
- Account
account_idtextRequired - Choose the Public brokerage account.
Outputs
dataobject- The response from Public.com.
Example output
{
"data": {}
}Search bonds
Search bonds.
Inputs
- Issuer
issuertext - Issuer.
- Issuer symbol
issuer_symboltext - Issuer symbol.
- Page number
page_numbertext - Page number.
- Page size
page_sizenumber - Page size.At least 1.
- Min maturity date
min_maturity_datedate - Min maturity date.
- Max maturity date
max_maturity_datedate - Max maturity date.
Outputs
dataobject- The response from Public.com.
Example output
{
"data": {}
}Search brokerage orders
Search brokerage orders.
Inputs
- Account
account_idtextRequired - Choose the Public brokerage account.
- Status
statustext - 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. - Side
sidetext - Side.One of:
BUY,SELL. - Security type
security_typetext - Security type.One of:
EQUITY,OPTION,MULTI_LEG_INSTRUMENT(Multi leg instrument),CRYPTO,ALT,BOND,TREASURY,INDEX,EVENTCONTRACT. - Instruments
instrumentslist - Instruments.
- Created after
created_afterdate and time - Created after.
- Created before
created_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"
}
]
}
}