Skip to content

Cost basis opening balances ​

A cost basis opening balance is the starting point of a token's cost basis timeline: how much of it you held on a given date, and what that holding cost. Nothing is calculated for a token until one exists.

Select Reconcile in the sidebar's icon rail, then Cost Basis. The page has two lists:

  • Set up: tokens with an opening balance, with the opening date, the type, the period, the balance and the cost. For a lot type, the balance and cost are the totals of its opening lots. Select a token to open its page.
  • Not set up: tokens without one. They have no cost basis, realised gains or IAS 38 remeasurement until one is created. Set up on a row opens the create form.

The lists hold every token the entity has a token card for, except stablecoins and tokens marked as spam.

To set up many tokens at once, use Set up all tokens. See set up all tokens.

Not the same as a token card opening balance

A token card opening balance starts the ledger for one token in one account. This one starts cost basis for a token across the whole entity. They are separate records, set in different places, and one does not create the other.

Creating one ​

Select Set up on a token under Not set up, or select the row. (From a token's own page, the same form is behind Create opening balance.) The Create opening balance page asks three questions, one per step. Next moves on and Back returns to the previous step.

The cost basis opening balance form

  1. When does the cost basis start?

    FieldNotes
    Opening dateThe date the opening position is as at, as a calendar day in UTC. Defaults to the entity's opening balance date (entity settings, Opening balances), or 1 January of the current year if none is set. Days after today (UTC) are disabled. Postings before it are left out.
    MethodAVCO, LIFO, FIFO, HIFO or Spec ID. Defaults to AVCO. See cost basis types. LIFO is disabled for an entity that reports under IAS 38.
    PeriodMonthly or Yearly. Defaults to Monthly. Sets how this token's period summaries are grouped.
  2. What did you hold then? This depends on the method:

    • AVCO asks for a Balance (the quantity held at the start) and a Total cost (what that balance cost, in your entity currency). The balance is suggested for you. A cost above zero needs a balance above zero.
    • FIFO, LIFO, HIFO and Spec ID ask for opening lots instead, because a pooled balance and cost cannot be split back into lots. Cost basis types explains why.
  3. Any gains or losses before that date? An optional Realized PnL figure. See realised PnL from before the opening date.

Finish with Create opening balance.

Opening lots ​

For a lot type, the Opening lots section is where you enter the tokens you already held before the opening date, one lot per acquisition. Each disposal of those holdings is matched against these lots, so each needs the date it was acquired, what it cost and the account holding it.

Opening lots on the create form

Add lot adds a row:

FieldNotes
AcquiredWhen the lot was acquired, as a calendar day in UTC. A new row starts at the opening date, and days after it are disabled.
QuantityHow many tokens the lot holds. Must be greater than zero.
CostWhat the whole lot cost in your entity currency, not the unit price. Zero is allowed.
AccountThe account holding the lot. Required. The list holds the accounts with a token card for this token.

The bin icon at the end of a row removes it. If you held none of the token on the opening date, leave the section empty.

Checking the lots add up ​

Below the lots, Lots total sums their quantities. When SimplyLedger can build a suggested balance for the date, it is shown alongside as Wallets' closing balance, with the Difference between the two. Matches means your lots account for everything your accounts held; otherwise the difference is shown in amber.

A difference does not block you from saving. Your lot records are the source here and the closing balance is a check against them, so treat a mismatch as something to explain (a missing lot, or a token card with no closing balance for the day) rather than something to force away.

Uploading lots from a CSV ​

Upload CSV adds lots from a file rather than one at a time. The Upload opening lots dialog links to Download a CSV template to start from.

  1. Select CSV file. It needs a header row and is limited to 10 MB.

  2. Match your file's columns to the lot fields. Each field has a dropdown of your headers and shows a sample value from the first row. Columns with familiar names (such as acquired_on or date, quantity or qty, cost, wallet or account) are matched for you.

    FieldNotes
    AcquiredRequired. The acquisition date, for example 2024-03-15.
    QuantityRequired.
    CostRequired. The total cost of the lot, in your entity currency.
    AccountRequired. The account's reference (such as ABC-W-1) or its name.
  3. Add n lots. Back returns to picking a file.

On the create form, the lots are added below any already entered, where you can review and fix them before saving. Any cell that fails validation is flagged on its row. An account cell that matches no account, or a name shared by more than one account, leaves the row's Account empty for you to pick. If some dates could not be read, the dialog says how many, and those rows are added with an empty date for you to pick.

Changing lots later ​

Once the opening balance exists, the token's page shows an Opening lots section with the number of lots, their total quantity and total cost, and a row per lot:

ColumnShows
AcquiredThe acquisition date.
AccountThe account holding the lot.
QuantityThe quantity the lot started with.
RemainingWhat is left of it after the disposals matched against it.
CostWhat the whole lot cost.
Unit costCost divided by quantity.
  • Add lot opens Add opening lot, with the same fields as on the form.
  • The pencil opens Edit opening lot. Save lot applies the change.
  • The bin icon deletes one.
  • Upload CSV saves the file's lots to the token straight away, next to the lots it already has. Rows with no matching account, a missing date or one after the opening date, or an invalid quantity or cost, are skipped, and the confirmation says how many.

Disposals that drew on an edited or deleted lot are recalculated from the lots that remain. Under Spec ID, a disposal identified only from a deleted lot becomes Not identified, and a selection a lot no longer covers is marked Needs review, so identify them again.

Every change recalculates the timeline and the period summaries.

The suggested balance ​

SimplyLedger works out what your accounts held on the opening date rather than leaving you to add it up. The figure is the sum of every token card's closing balance on the day before the opening date. Opening on the 1st means closing on the last day of the previous month.

For AVCO the figure fills the Balance field. For a lot type it is the Wallets' closing balance your lots are checked against.

The Suggested balance panel expands to show the arithmetic: one row per contributing token card, with its wallet, wallet address, holding type and closing balance.

The Balance field stays editable. The suggestion refills it as you change the date, but only while it still holds the last suggested figure: once you type over it, your figure is kept.

When token cards are missing a balance ​

Cards with no stored closing balance for that day are listed separately, under No closing balance on the date concerned, and they are not counted in the suggested total. This is the part worth checking before accepting a suggestion: a total that looks low usually means cards are missing rather than that the holding was small.

Two ways to fix it, both offered on that list:

  • Refetch balances pulls the on-chain closing balance for that date for each missing card on a chain that supports historical balances. It reports how many it fetched and how many it could not. The button only appears when at least one missing card can be fetched this way.
  • Add manual balance opens the token card so you can enter one by hand with Add Manual Balance (see manual balances). Your part-filled form is preserved, and Back to cost basis on the card returns to it and refreshes the suggestion with what you added.

Exchange cards, and cards on chains without historical balance support, cannot be refetched. They always need a manual balance on the token card.

If no card has a balance for that day, or the token has no cards at all, the panel says so and you enter the opening balance yourself.

Realised PnL from before the opening date ​

If the token was already being tracked before the opening date, in a previous report or an earlier system, you can carry its realised profit or loss across. Enter it as a single figure in your entity currency, negative for a loss, such as -3265.98. Leave it blank for none.

It is set on the last step of the create form, and shown on the token's page as Prior realized PnL. To change it later, select the pencil beside that figure. This is the one part of an opening balance you can edit without deleting it.

It is added to the token's Overall realized PnL (see the overall summary). It does not touch the timeline, the pool or any period's own realised PnL, and it cannot be posted.

Changing or removing one ​

Apart from the prior realised PnL, there is no edit. Delete opening balance, in the menu at the top right of the token's page, removes it, and the confirmation warns that it cannot be undone. For a lot type it also removes the opening lots and any Spec ID lot selections.

Deleting and recreating is how you change the date, the method or the period. Everything derived from it (the transaction timeline, running average price, realised PnL and the period summaries) recomputes from the new opening position.

Check what has already been posted

Realised PnL you have already posted is not rewritten when the opening balance changes. If a period has been posted, reconcile the postings against the new figures deliberately.

Who can set them

Creating and deleting opening balances, editing the prior realised PnL, and adding, editing or deleting opening lots, need write access. Viewers see the values without the actions, and selecting a token opens its page rather than the create form. See roles and permissions.

Next ​

With an opening balance in place, transactions and summaries covers the timeline it produces.

Crypto accounting, finally automated.