Development changelog

What has changed on this site, in its database and in the scripts behind it, newest first. Older history is being filled in as it is reconstructed, and each entry says whether it was recorded at the time or rebuilt later.

Showing entries for file ledger_functions.php. Show everything

Stock splits are bridged from researched event records

Oct 23, 2026
added Oct 23, 2026

A single shared split bridge now serves every value chart. It reads researched split records first and falls back to the older corporate actions table only for a split that has no record yet, and it says which source each bridge came from.

The bridge takes the split's legal effective date and time, read as Eastern Time, and finds the first trading session on the new basis from the security's own price history. It ends on the day each ledger row recorded the new shares, so two rows recorded on different days are each bridged correctly. The correction adds the recorded shares inside that window rather than multiplying the whole share count, so purchases inside the window are no longer scaled by mistake. It also works in the other direction, when the ledger records the shares before the price changes basis. A split record that cannot be used is reported, never quietly replaced by the older table. A fallback row near a split record is never used twice, and a disagreement between the two is reported. A spin-off value factor recorded as a split is refused. If the recorded shares do not match what the split implies, a warning is shown.