# Public.com

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

App · 17 actions. Web page: https://docs.lodol.com/docs/integrations/public-com

## Actions

### Cancel a brokerage order

Cancel a brokerage order.

**Inputs**

- Account (`account_id`, text, required): Choose the Public brokerage account.
- Order ID (`order_id`, text, required): Order id.

**Outputs**

- `data` (object): The response from Public.com.

**Example output**

```json
{
  "data": {}
}
```

### Get a brokerage order

Get a brokerage order.

**Inputs**

- Account (`account_id`, text, required): Choose the Public brokerage account.
- Order ID (`order_id`, text, required): Order id.

**Outputs**

- `data` (object): The response from Public.com.

**Example output**

```json
{
  "data": {
    "instrument": {
      "symbol": "example",
      "type": "EQUITY"
    },
    "orderId": "example",
    "status": "example"
  }
}
```

### Get a brokerage portfolio

Get a brokerage portfolio.

**Inputs**

- Account (`account_id`, text, required): Choose the Public brokerage account.

**Outputs**

- `data` (object): The response from Public.com.

**Example output**

```json
{
  "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_id`, text, required): Choose the Public brokerage account.
- Symbol (`symbol`, text, required): The underlying instrument symbol.
- Expiration date (`expiration_date`, date, required): Choose an expiration listed by List equity option expirations.

**Outputs**

- `data` (object): The response from Public.com.

**Example output**

```json
{
  "data": {}
}
```

### Get an instrument

Get an instrument.

**Inputs**

- Symbol (`symbol`, text, required): Symbol.
- Type (`type`, text, required): Type. One of: `EQUITY`, `OPTION`, `MULTI_LEG_INSTRUMENT` (Multi leg instrument), `CRYPTO`, `ALT`, `BOND`, `TREASURY`, `INDEX`, `EVENTCONTRACT`.

**Outputs**

- `data` (object): The response from Public.com.

**Example output**

```json
{
  "data": {
    "symbol": "example",
    "type": "EQUITY"
  }
}
```

### Get bond details

Get bond details.

**Inputs**

- Account (`account_id`, text, required): Choose the Public brokerage account.
- Symbol (`symbol`, text, required): Symbol.

**Outputs**

- `data` (object): The response from Public.com.

**Example output**

```json
{
  "data": {}
}
```

### Get event contract details

Get event contract details.

**Inputs**

- Event symbol (`event_symbol`, text, required): Event symbol.
- Include all outcomes (`include_all_outcomes`, true/false): Include all outcomes.

**Outputs**

- `data` (object): The response from Public.com.

**Example output**

```json
{
  "data": {}
}
```

### Get market quotes

Get market quotes.

**Inputs**

- Account (`account_id`, text, required): Choose the Public brokerage account.
- Instruments (`instruments`, list, required): Instruments.

**Outputs**

- `data` (object): The response from Public.com.

**Example output**

```json
{
  "data": {
    "quotes": [
      {}
    ]
  }
}
```

### Get unrealized tax lots for a symbol

Get unrealized tax lots for a symbol.

**Inputs**

- Account (`account_id`, text, required): Choose the Public brokerage account.
- Symbol (`symbol`, text, required): Symbol.
- Price (`price`, number): Price.

**Outputs**

- `data` (object): The response from Public.com.

**Example output**

```json
{
  "data": {}
}
```

### List account transactions

List account transactions.

**Inputs**

- Account (`account_id`, text, required): Choose the Public brokerage account.
- Start (`start`, date and time): Start of the history window.
- End (`end`, date and time): End of the history window.
- Page size (`page_size`, number): Page size. At least 1.
- Next token (`next_token`, text): Next token.

**Outputs**

- `data` (object): The response from Public.com.

**Example output**

```json
{
  "data": {
    "nextToken": "example",
    "transactions": [
      {}
    ]
  }
}
```

### List brokerage accounts

List brokerage accounts.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Public.com.

**Example output**

```json
{
  "data": {
    "accounts": [
      {
        "accountId": "example",
        "accountType": "example"
      }
    ]
  }
}
```

### List equity option expirations

List equity option expirations.

**Inputs**

- Account (`account_id`, text, required): Choose the Public brokerage account.
- Symbol (`symbol`, text, required): The underlying instrument symbol.

**Outputs**

- `data` (object): The response from Public.com.

**Example output**

```json
{
  "data": {
    "expirations": [
      "example"
    ]
  }
}
```

### List event contract categories

List event contract categories.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Public.com.

**Example output**

```json
{
  "data": {}
}
```

### List tradable instruments

List tradable instruments.

**Inputs**

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

**Outputs**

- `data` (object): The response from Public.com.

**Example output**

```json
{
  "data": {
    "instruments": [
      {
        "symbol": "example",
        "type": "EQUITY"
      }
    ]
  }
}
```

### List unrealized tax lots

List unrealized tax lots.

**Inputs**

- Account (`account_id`, text, required): Choose the Public brokerage account.

**Outputs**

- `data` (object): The response from Public.com.

**Example output**

```json
{
  "data": {}
}
```

### Search bonds

Search bonds.

**Inputs**

- Issuer (`issuer`, text): Issuer.
- Issuer symbol (`issuer_symbol`, text): Issuer symbol.
- Page number (`page_number`, text): Page number.
- Page size (`page_size`, number): Page size. At least 1.
- Min maturity date (`min_maturity_date`, date): Min maturity date.
- Max maturity date (`max_maturity_date`, date): Max maturity date.

**Outputs**

- `data` (object): The response from Public.com.

**Example output**

```json
{
  "data": {}
}
```

### Search brokerage orders

Search brokerage orders.

**Inputs**

- Account (`account_id`, text, required): Choose the Public brokerage account.
- Status (`status`, text): 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 (`side`, text): Side. One of: `BUY`, `SELL`.
- Security type (`security_type`, text): Security type. One of: `EQUITY`, `OPTION`, `MULTI_LEG_INSTRUMENT` (Multi leg instrument), `CRYPTO`, `ALT`, `BOND`, `TREASURY`, `INDEX`, `EVENTCONTRACT`.
- Instruments (`instruments`, list): Instruments.
- Created after (`created_after`, date and time): Created after.
- Created before (`created_before`, date and time): Created before.

**Outputs**

- `data` (object): The response from Public.com.

**Example output**

```json
{
  "data": {
    "orders": [
      {
        "instrument": {
          "symbol": "example",
          "type": "EQUITY"
        },
        "orderId": "example",
        "status": "example"
      }
    ]
  }
}
```
