> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sterlinglabs.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Trade Log and Activity

> Your recent trades and account activity, and how Sterling measures realized and unrealized profit and loss.

## What the Trade Log and Activity show you

* **Trade Log** — one row per execution, with the profit and loss on each.
* **Activity** — your account events: buys and sells, deposits and withdrawals, dividends, fees, interest, tax, transfers and corporate actions.

## Where to find it

On the Portfolio overview, switch the table from **Positions** to **Trade Log** or **Activity**. Both cover all your accounts, or the one you've selected in the page header. See [The Portfolio overview](https://docs.sterlinglabs.co/portfolio/reading-your-portfolio.md) for choosing an account.

## Using the Trade Log and Activity

### Trade Log

The Trade Log holds your hundred most recent trades, newest first. A partially filled order appears as one row per fill. The **Type of asset** and **Sectors** filters at the top of the page apply here as well as to Positions. While Sterling is still importing older history, a note beneath the table says how far back the trades currently reach.

| Column | Meaning |
| - | - |
| **Date** | When the trade executed |
| **Side** | **BUY** or **SELL** |
| **Symbol** | The instrument |
| **Quantity** | Shares or contracts in this execution |
| **Average price** | The price this trade executed at. Hover over it for your average cost: after this trade on a buy, or the basis the sale is measured against on a sell |
| **Amount** | Quantity times price |
| **Position Δ** | How much this trade changed the position, as a signed percentage. Selling a quarter of a holding reads −25% |
| **Live P\&L** | The lot's gain or loss right now: the part you've sold, realized under your account's method, plus the part still open, marked at average cost. Hover over it to see how fresh the mark is. A closed lot's value is dimmed, because it won't change |
| **Realized P\&L** | The gain or loss locked in: on a sell, by that sale; on a buy, by the units from it that you've since sold |
| **Unrealized P\&L** | On buys: the gain or loss on the units from this purchase that you still hold. A fully closed lot shows a dash |
| **Cost Basis Method** | The method your realized P\&L follows. Currently FIFO for every account |

### How profit and loss is measured

**Realized P\&L** follows your account's cost-basis method. **Unrealized P\&L** uses average cost. **Live P\&L** combines the two. Hover over the info icon beside a P\&L header to see its note.

* *Your account's cost-basis method* is the one shown in the **Cost Basis Method** column. Sterling's realized P\&L is an estimate under that method, from the trade history it has. Your broker's statement matches specific lots and can differ.
* *Average cost* means the open part of a position is measured against the average price you paid for the shares you hold.
* *Gross of fees* means commissions and fees aren't deducted. Brokers report fees inconsistently, so Sterling shows the gross amount rather than an uneven net one.

### Activity

Activity is your broker's record of your account: your hundred most recent events, in one stream. A buy or sell shows here as soon as it shows in the Trade Log. To see the activity for a specific account, select it in the page header.

| Column | Meaning |
| - | - |
| **Date** | When the event happened |
| **Type** | The kind of event. A dashed outline means your broker reported the event without saying what kind it was, so Sterling chose the category |
| **Symbol** | The instrument, or the currency for a cash event |
| **Units** and **Price** | Shares or contracts, and the execution price, where applicable |
| **Amount** | The signed cash effect |
| **Fee** | Any fee your broker attached |

## If something goes wrong

| What you see | What it means | What to do |
| - | - | - |
| Older trades are missing, with "Showing trades since …" beneath the table | Sterling is still importing your older history | Wait. Older trades appear as they import |
| "Trades didn't finish importing" | Sterling couldn't finish importing your trades, so some may be missing | If the message says it's retrying, wait. Otherwise select **Try again** |
| "… needs you to sign in again" | Your brokerage needs you to sign in before Sterling can import more | Select the button to reconnect your brokerage |
| A dash in **Realized P\&L** | Sterling can't compute it. Usually the purchase history is incomplete, or there's a corporate action it doesn't model yet | Hover over the dash for the reason |
| Trades in a symbol you've sold disappear when you use a filter | The **Type of asset** and **Sectors** filters only include symbols you currently hold | Select **Clear filters** |

## Frequently asked questions

### Why doesn't my realized P\&L match my broker's tax report?

Sterling estimates realized P\&L under your account's cost-basis method, gross of fees, from the trade history it has. Your broker's tax report matches specific lots and may net out fees, so the two can legitimately differ.

### Where's a trade I made today?

Broker changes reach Sterling with the next sync. See [Connecting a brokerage](https://docs.sterlinglabs.co/portfolio/setting-up-your-portfolio.md) for refreshing sooner.

### What counts as Activity but not a trade?

Deposits and withdrawals, dividends and stock dividends, fees, interest, tax, transfers in and out, reinvestments, option exercises, assignments and expirations, and corporate actions such as splits. Buys and sells appear in both tables.

## Related articles

* [Your portfolio in Sterling](https://docs.sterlinglabs.co/portfolio/what-is-portfolio.md)
* [How the portfolio numbers are computed](https://docs.sterlinglabs.co/portfolio/how-the-numbers-are-computed.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.