# Holding

Source: https://docs.tradeit.app/models/holding

A position in a brokerage account. [Get holdings](/api/get-holdings) returns an array of holdings.

> **Note**
>
> Optional fields are not returned by every brokerage. Valuation fields like `market_price` can be absent or `null` when unavailable. `warning`, when present, explains missing values.

## Fields [#fields]

**`key`** `string` `optional`

Stable identifier for the position: the normalized symbol, or the compact OCC symbol for options.

**`symbol`** `string`

Ticker, crypto pair, or brokerage-reported option symbol. For options, this can be the underlying ticker; use `option_symbol` to identify the contract.

**`display_symbol`** `string` `optional`

Symbol to show users.

**`quantity`** `number`

Shares, coins, or contracts held. Negative for a short position.

**`average_price`** [Balance](#balance) `deprecated`

Brokerage-specific legacy value; may be per contract for options (including `multiplier`). Use `average_unit_cost` to compare with `market_price`.

**`average_unit_cost`** [Balance](#balance) | null `optional`

Average cost per share, coin, or option share, before `multiplier`. Null when the brokerage does not report it.

**`description`** `string` `optional`

Security name or brokerage description; may be a ticker or OCC option symbol.

**`type`** `enum`

Asset type: `2` for stocks and options, `4` for crypto.

`0``2``4``8`

**`side`** `enum` `optional`

Whether the position is long or short.

`long``short`

**`instrument_kind`** `enum` `optional`

Whether the position is an equity, crypto, or option.

`equity``crypto``option`

**`option_symbol`** `string` `optional`

The option's OCC symbol as the brokerage reports it.

**`multiplier`** `number` `optional`

Shares each unit controls: 100 for standard options, 1 otherwise.

**`total_cost`** [Balance](#balance) | null `optional`

Opening cost basis. Can be a positive magnitude for short positions: `abs(quantity)` × `average_unit_cost` × `multiplier`. Brokerage sign conventions can vary.

**`market_price`** [Balance](#balance) | null `optional`

Current price per share, coin, or option share. Null when no price is available.

**`market_value`** [Balance](#balance) | null `optional`

`quantity` × `market_price` × `multiplier`.

**`unrealized_pnl`** [Balance](#balance) | null `optional`

Unrealized gain or loss, accounting for position side. When calculated from unit prices: (`market_price` − `average_unit_cost`) × `quantity` × `multiplier`.

**`unrealized_pnl_percent`** `number | null` `optional`

`unrealized_pnl` as a percent of the absolute cost basis, such as `12.5` for 12.5%. Null when it cannot be calculated.

**`price_kind`** `enum` `optional`

Where `market_price` came from. `midpoint` is the option bid/ask midpoint.

`last_trade``minute_close``midpoint``brokerage``unavailable`

**`price_as_of`** `string | null` `optional`

ISO 8601 timestamp for the price or brokerage holdings snapshot. Null when unavailable.

**`delayed`** `boolean` `optional`

Whether `market_price` is delayed.

**`underlying_symbol`** `string` `optional`

The option's underlying ticker.

**`warning`** `string` `optional`

Why a value is missing, such as `Current price unavailable`.

## Balance [#balance]

Money fields are Balance objects.

**`amount`** `number`

Amount in `currency`.

**`currency`** `string`

ISO 4217 currency code, such as `USD`.
