---
title: "FxGainLossPanel"
description: "Realized and unrealized never combined."
canonical: "https://lopifi.com/components/fx-gain-loss-panel"
---

# FxGainLossPanel

> Realized and unrealized never combined.

Source: https://lopifi.com/components/fx-gain-loss-panel
Part of: Lopifi — Your VC tech stack partner (https://lopifi.com)

---

- **Family:** Close, controls & consolidation — **See also:** `#69 TrialBalance` and `#70 CloseChecklist` in [statements](statements.md). Conceptually they're the same family.
- **Status:** Implemented
- **Spec:** https://lopifi.com/docs/catalog/close-controls-consolidation

## Install

```bash
npx shadcn@latest add @lopifi/theme
npx shadcn@latest add @lopifi/fx-gain-loss-panel
```

## Specification

**Realized and unrealized as separate lines, never combined.** Unrealized reverses; realized doesn't. One number destroys the reader's ability to tell what happened.

## Rules this component obeys

Money is minor units, never floats. `null` is not `0` and neither is redacted. Negatives render in accounting parentheses with the parenthesis column reserved on both sides. Debit and credit are two columns. Per-currency decimal places. Polarity is explicit — up is not always good. Every figure states its period, entity, currency, basis and as-of.
