Skip to content

Transactions ​

Once a token has an opening balance, its cost basis page shows what is derived from it. Select the token under Set up on Cost Basis. The page has, in order:

  • the opening balance: Date, Method, Period, Balance (Balance (from lots) for a lot type), Cost and Prior realized PnL,
  • Opening lots, for the FIFO, LIFO, HIFO and Spec ID types (see changing lots later),
  • Period summaries, with the overall totals under them,
  • Transactions, the timeline everything else is worked out from.

Realized gains & losses at the top right opens Realized Gains & Losses filtered to the token, which is where a period's realised PnL is posted.

The timeline is not entered by hand. It is built from postings, so cost basis is available in accounting entities only; a portfolio entity has no cost basis pages. See portfolio or accounting.

Only reconciled postings count

A posting reaches the cost basis timeline once it belongs to a reconciliation. Postings made but not yet reconciled are absent entirely, so a token whose period has not been reconciled shows an empty timeline and no realised gains, however much has been posted against it.

Among reconciled postings, only those whose category has Use in cost basis switched on are counted. A positive amount is a buy, a negative one a sell. Exchange activity is included once it has been posted, and each row's value is the value that was posted.

If a figure looks wrong here, the cause is upstream: what was posted, or how its category is configured.

Period summaries ​

One row per month or year, as set by the opening balance's period. Each row is the state of the pool at the end of the period and what was disposed of during it.

Period summaries on a token's cost basis page

ColumnWhat it shows
PeriodThe month or year.
PoolThe quantity held at the end of the period.
Avg priceThe pool's average price at the end of the period.
Total costWhat the pool held at the end of the period cost.
SoldQuantity disposed of during the period, including tokens spent on fees.
Acq. cost soldWhat the disposed quantity originally cost, under the token's method.
Sale proceedsWhat the sales brought in.
Fees paidThe value of tokens spent on fees.
Realized PnLSale proceeds plus fees paid, less the acquisition cost sold.

A disposal counts as a fee when its category has FEE as one of its underscore-separated words, such as BLOCKCHAIN_FEE or SWAP_FEE.

A period that has been posted has View postings, which opens Posted Transactions filtered to the realised PnL posting. Download CSV exports the rows left by the search, with the disposal value and a Posted column holding the posting's transaction ID.

Overall across all periods ​

Under the summaries, Overall across all periods totals every period: Sold, Acq. cost sold, Sale proceeds and Fees paid, then Overall realized PnL.

Overall totals across all periods

When the opening balance carries a prior realised PnL, it is shown as Prior realized PnL and included in Overall realized PnL. Under Spec ID, Overall realized PnL shows a dash until every disposal is identified.

The transaction timeline ​

The chronological timeline that realised gains are worked out from, split into tabs with counts: Categorized, Not identified (Spec ID only, and only while there are disposals to identify), and Uncategorized. Columns hold two lines each, to keep the table narrow.

ColumnWhat it shows
DateThe date and time, with the posting reference underneath.
SideBuy, Sell, or Uncategorized, with the category underneath.
AmountThe quantity, with its value in your entity currency underneath.
Avg priceThe running average price after this row. Under Spec ID the column is Price instead: the posting's own price, which is what you compare when choosing lots.
Realized PnLThe gain or loss on a sell, with the acquisition cost of what was sold underneath.
IdentificationSpec ID only. The lot identification status of each sell, and Identify. See identifying lots.

Search covers reference, transaction ID, category, side, wallet and description.

Categories in this list ​

Above the table on the Categorized and Uncategorized tabs, Categories in this list expands to show every category behind the tab's rows, with how many postings each has. Writers get the category's Use in cost basis switch on each line; viewers see In cost basis or Not in cost basis. The change applies to that category for every token, and the timeline recomputes from the postings you already have.

A line reads Set a category on these postings first for postings without a category, and Not in your category list for a category name the entity does not have.

Transaction details ​

Select a row to open its details in a side panel:

  • Amount, Value, Avg price (Price under Spec ID), Acq. cost sold and Realized PnL, plus the Uncovered quantity when the disposal was larger than the pool.
  • Identification (Spec ID sells only): the status, the reason when it needs review, and Identify.
  • Lots used (FIFO, LIFO, HIFO and Spec ID sells): each lot the disposal drew on, with its acquisition date, account, quantity and cost.
  • Category, Wallet, Transaction ID and Description.

Exporting and rounding ​

Download CSV exports the rows left by the search on the current tab, with every field in full: date, reference, side, amount, value, average price (price under Spec ID), acquisition cost sold, realised PnL and uncovered quantity, then Lots used for the lot types and Lot identification for Spec ID, then category, transaction ID and description.

The Rounding switch in the page header rounds token amounts on this page (the opening balance, the pool, the quantity sold, each transaction amount and each lot) to 2 decimal places, as it does elsewhere in the app. Values in your entity currency are unaffected, and CSV exports keep amounts at full precision. Average prices and unit costs show up to six decimal places, so a token bought for a fraction of a cent does not read as 0.00.

A disposal larger than the pool ​

A warning icon next to a sell's amount means the disposal was larger than everything the pool held at that point. The excess has no acquisition to match against, so it is dropped rather than taking the pool below zero, and that row's realised PnL is overstated by the proceeds of the uncovered quantity. Hover the icon, or open the row, for the quantity involved.

The usual causes are an acquisition that never reached the timeline (an uncategorised posting, see below) or holdings from before the opening date that were not entered as opening lots. The CSV export includes the uncovered quantity for each row.

Categorised and uncategorised ​

A row is categorised when its category has Use in cost basis switched on. It is then a buy or a sell according to the sign of its amount.

Everything else lands in the Uncategorized tab. Those rows are not treated as zero. They take no part in the calculation at all, so the pool, the average price and every realised gain are computed as though they never happened.

Check this tab before trusting the numbers

A populated Uncategorized tab is the most common reason cost basis figures look wrong. The fix is to switch on Use in cost basis for the categories concerned, from Categories in this list on that tab or under categories; the timeline recomputes from the postings you already have.

Identifying lots (Spec ID) ​

With the Spec ID type, you decide which lots each disposal sold from. Until you do, SimplyLedger does not guess: an unidentified disposal shows no acquisition cost and no realised PnL, and its period cannot be posted. Every sell on the timeline shows a status in the Identification column:

StatusMeaning
IdentifiedThe lots you chose cover the whole disposal.
Not identifiedNo lots have been chosen yet, so there is no acquisition cost or realised PnL for it.
Needs reviewA selection exists but no longer fits, for example because a lot it used was deleted. Hover the badge, or open the row, for the reason.

The Not identified tab lists every disposal whose lots are not chosen, so you can work through them.

To identify a disposal, select Identify on its row or in its details. The Identify lots dialog lists only the lots still held immediately before that disposal, since those are all it could have drawn on, with each lot's Acquired date, Account, Available quantity and Unit cost. Search the lots by account or date.

  1. Enter a quantity in Use for each lot the disposal sold from. Fill puts whatever is still needed onto that lot, up to what it holds.
  2. Watch the badge next to To identify: it shows how much is left or over, and reads Balanced when the quantities add up to the disposal.
  3. Save selection. It is only available once the selection is balanced and no lot is asked for more than it holds.

Clear selection removes the choice, returning the disposal to Not identified.

If the dialog says the pool held nothing when the disposal happened, the lots it needs are missing: add opening lots, or categorise the acquisitions missing from the timeline.

Who can identify lots

Choosing lots needs write access. Viewers see the statuses without the Identify action.

Next ​

Categories is where a category is switched into cost basis, which is what puts a transaction on this timeline in the first place.

Crypto accounting, finally automated.