Skip to main content
Version: v5

Rebuild and resolution

When you add events, SuiviBourse fetches the past prices your history needs. This page explains how long that takes, what you see meanwhile, and how much detail the app keeps as prices get older.

What the rebuild does​

The History rebuild task fetches past prices for every security you have ever held, over the time you held it: from its first purchase to its sale, or to today. It starts on its own within a minute of a change to your ledger.

Each run does three things for each security:

  • fetches older prices, one step back toward its first purchase;
  • fills the days missed while the app was stopped;
  • adds the exchange rate to stored prices that lack one.

It also downloads the reference funds you follow for the comparison, one fund at a time.

How long it takes​

With the default settings, each run makes one request per security, covering 365 days (History depth), and pauses 10 seconds after each request (Pause between requests). Runs start every minute.

So count about one request per security and per year of history, and 10 seconds per request. For 30 securities held over 5 years, that is about 150 requests: 25 minutes or more.

You can lower Pause between requests in Settings → Advanced to go faster. The requests then reach Yahoo Finance more often.

Follow the progress​

  • The System page shows a Rebuild in progress band, with the account furthest behind and the share of the period covered.
  • The dashboard says how many series already go back to the first purchase, out of how many.
  • The notifications bell takes the attention colour until the rebuild ends.
  • In /health, the backfill task reads running, with complete and in_scope counts. It reads complete when every history is done. See System.

What is incomplete meanwhile​

The app writes a day's value and return only when every security held that day has a price. Until then:

  • the portfolio value on the dashboard appears once every line has a price;
  • charts start later than your first event and fill in toward the past;
  • figures that need the missing days say history still being rebuilt;
  • returns keep changing from one refresh to the next, as older days arrive.

A security with no past prices​

If the rebuild reaches the first purchase without finding any price, the security is done, and the app counts the holding at its purchase price. This usually means a mistyped symbol: see A symbol that stops answering.

If requests for a security fail 9 times in a row, the rebuild stops waiting for it, so the rest of your history can complete. It keeps retrying in the background. /health reports backfill as failing, and if the security has no price at all, the bell shows No price for it.

Resolution by age​

The older a price, the fewer points the app keeps. Each run of the history rebuild applies this rule to every stored price.

Age of the priceWhat is kept
Under 1 yearEvery point as it was stored
1 to 2 yearsOne point per hour, the last of the hour
Over 2 yearsOne point per day, the last of the day

The rule only removes points. It never adds any to fill a gap.

What a rebuild cannot recover​

A rebuild fetches what Yahoo Finance still supplies:

PeriodFinest price a rebuild can fetch
The last 2 yearsOne per hour
OlderOne per day

While the app runs, it stores a price at every Quote frequency pass, every 2 minutes by default. That detail exists only for the time the app was running. A rebuild, a new installation or an import of your events cannot bring it back.

The ledger export does not contain prices. To keep them, back up the database file. See Back up and update.

Orphan histories​

When you delete every event of a security, its prices stay stored. The System page lists them under Orphan histories, where Purge deletes them. If you record the security again, its history is fetched again, at the resolution the rebuild can still get.