Commit graph

83 commits

Author SHA1 Message Date
df204a3eb2
support external provider
All checks were successful
Generic zig build / build (push) Successful in 5m9s
Generic zig build / publish-macos (push) Successful in 10s
Generic zig build / deploy (push) Successful in 29s
2026-08-28 11:02:18 -07:00
18f4f00516
remove unused fromString on portfolio 2026-08-28 10:38:54 -07:00
34d37e32a8
remove extra pre-multiply on manual snapshot price data
All checks were successful
Generic zig build / build (push) Successful in 5m35s
Generic zig build / publish-macos (push) Successful in 12s
Generic zig build / deploy (push) Successful in 20s
2026-08-27 15:43:36 -07:00
ad55d59f5c
fix option valuation in analysis 2026-08-27 08:14:18 -07:00
a14b1ba4bc
fix/document non-default benchmark stock/bond 2026-08-27 08:01:50 -07:00
77b5e38313
fix manual_price -> price ratio discriminator 2026-08-27 07:32:49 -07:00
6dea255377
fix bug with synthetic securities (with ratio) gain/loss miscalculation in rollups 2026-08-26 21:07:07 -07:00
6ebd944f94
additional snapshot documentation
All checks were successful
Generic zig build / build (push) Successful in 6m49s
Generic zig build / deploy (push) Successful in 20s
Generic zig build / publish-macos (push) Successful in 1m2s
2026-08-21 12:38:13 -07:00
5ae4065d9e
better errors for malformed portfolio files 2026-08-19 15:45:02 -07:00
12eace86b2
clean separation of user vs machine-edited srf files 2026-08-19 13:52:48 -07:00
e3ce8f32a1
build portfolio risk from a total-return index
All checks were successful
Generic zig build / build (push) Successful in 5m10s
Generic zig build / publish-macos (push) Successful in 11s
Generic zig build / deploy (push) Successful in 17s
2026-08-17 20:01:06 -07:00
6674969001
consolidate returns calculations 2026-08-17 19:39:45 -07:00
cd053b9a78
watchlist, benchmark symbols, and portfolio symbols refreshed in all the places 2026-08-10 15:22:45 -07:00
1bea4d621a
delete dead code 2026-07-25 11:07:08 -07:00
48b422cba4
stock split handling 2026-07-06 12:29:50 -07:00
8ca673c8e3
better quote name resolution 2026-06-27 09:49:32 -07:00
7e9261f92f
add in-kind transfer capability 2026-06-25 13:49:29 -07:00
d619091831
full emdash (and other) scrub 2026-06-25 10:13:25 -07:00
c46d39a954
handle every hand-edited field in import command 2026-06-24 16:13:49 -07:00
cd2ccb4c43
add label field, let notes field be strictly for notes 2026-06-24 16:13:47 -07:00
be888069c0
split audit by broker 2026-06-24 16:06:23 -07:00
de19e3e760
add ability to detect missing accounts during audit 2026-06-24 14:42:12 -07:00
a875fc3b32
fix memory leak in earnings tab 2026-06-24 10:52:38 -07:00
7e6102cc5f
add name to quote command/tab 2026-06-24 10:33:02 -07:00
867f9afb8c
add cusip to etf profile 2026-06-16 16:57:27 -07:00
70dba851a8
introduce concept of "bucket" for symbols to provide user-configurable sector dominance calcuation capability 2026-06-10 15:44:02 -07:00
cd6e22f5ba
update enrich to output names 2026-06-10 15:44:00 -07:00
a48dc47837
use lot calculations instead of reinventing the wheel
All checks were successful
Generic zig build / build (push) Successful in 4m24s
Generic zig build / publish-macos (push) Successful in 12s
Generic zig build / deploy (push) Successful in 19s
2026-06-06 15:07:28 -07:00
fdd0c97480
switch to parse_allocator = .none (fix production segfaults)
All checks were successful
Generic zig build / build (push) Successful in 4m35s
Generic zig build / publish-macos (push) Successful in 13s
Generic zig build / deploy (push) Successful in 20s
2026-06-02 15:16:11 -07:00
b796a46699
move Wikidata -> edgar logic into getClassification
All checks were successful
Generic zig build / build (push) Successful in 4m20s
Generic zig build / deploy (push) Successful in 17s
Generic zig build / publish-macos (push) Successful in 41s
2026-06-01 16:11:09 -07:00
85c9a48969 sector/geo inference for enrich command 2026-05-30 11:21:40 -07:00
7fb674f467 enrich enrich command, remove AlphaVantage
This (huge) commit pulls out AlphaVantage in favor of utilizing
Wikidata and SEC EDGAR data sources (both free). It uses some
built-in heuristics to fill in gaps, and it is not 100% (never
will be), but should get close enough to allow hand-editing of
metadata.srf afterwords without too much labor
2026-05-30 10:40:34 -07:00
52afd75696 update srf/wire edgar and wikidata into service 2026-05-29 12:23:43 -07:00
4a5a3612e3 tweak tests 2026-05-23 11:25:39 -07:00
4bb29f1432 fix transaction log matcher reflecting real world usage 2026-05-23 11:25:12 -07:00
4b5063e974 initial wells fargo parsing implementation 2026-05-21 16:14:38 -07:00
e1b99d63b6 remove frequency and add ability to "upgrade" fields 2026-05-20 16:00:13 -07:00
6c32e94ab4 use adjClose for charting 2026-05-19 13:43:52 -07:00
80a00009d8 land date refactor (similar to money) 2026-05-12 21:40:32 -07:00
3615c4caf8 initial implementation of pre-retirement projections/accumulation phase 2026-05-12 16:37:28 -07:00
2616209614 add ability to use imported history data 2026-05-12 10:52:43 -07:00
53b807d12e upgrade to zig 0.16.0
IO-as-an-interface refactor across the codebase. The big shifts:
- std.io → std.Io, std.fs → std.Io.Dir/File, std.process.Child → spawn/run.
- Juicy Main: pub fn main(init: std.process.Init) gives gpa, io, arena,
  environ_map up front. main.zig + the build/ scripts use it directly.
- Threading io through everywhere that touches the outside world (HTTP,
  files, stderr, sleep, terminal detection). Functions taking `io` now
  announce side effects at the call site — the smell is the feature.
- date math takes `as_of: Date`, not `today: Date`. Caller resolves
  `--as-of` flag vs wall-clock at the boundary; the function operates
  on whatever date it's given. Every "today" parameter renamed and
  the as_of: ?Date + today: Date pattern collapsed.
- now_s: i64 (or before_s/after_s pairs) for sub-second metadata
  fields like snapshot captured_at, audit cadence, formatAge/fmtTimeAgo.
  Also pure and testable.
- legitimate Timestamp.now callers (cache TTL math, FetchResult
  timestamps, rate limiter, per-frame TUI "now" captures) gain
  `// wall-clock required: ...` comments justifying the read.

Test discovery: replaced the local refAllDeclsRecursive with bare
std.testing.refAllDecls(@This()). Sema-pulling main.zig's top-level
decls reaches every test file transitively through the import graph;
no explicit _ = @import(...) lines needed.

Cleanup along the way:
- Dropped DataService.allocator()/io() accessor methods; renamed the
  fields to drop the base_ prefix. Callers use self.allocator and
  self.io directly.
- Dropped now-vestigial io parameters from buildSnapshot,
  analyzePortfolio, compareSchwabSummary, compareAccounts,
  buildPortfolioData, divs.display, quote.display, parsePortfolioOpts,
  aggregateLiveStocks, renderEarningsLines, capitalGainsIndicator,
  aggregateDripLots, printLotRow, portfolio.display, printSnapNote.
- Dropped the unused contributions.computeAttribution date-form
  wrapper (only computeAttributionSpec is called).
- formatAge/fmtTimeAgo take (before_s, after_s) instead of io and
  reading the clock internally.
- parseProjectionsConfig uses an internal stack-buffer
  FixedBufferAllocator instead of an allocator parameter.
- ThreadSafeAllocator wrappers in cache concurrency tests dropped
  (0.16's DebugAllocator is thread-safe by default).
- analyzePortfolio bug surfaced by the rename: snapshot.zig was
  passing wall-clock today instead of as_of, mis-valuing cash/CDs
  for historical backfills.

83 new unit tests added due to removal of IO, bringing coverage from 58%
-> 64%
2026-05-09 22:40:33 -07:00
57d3b03623 unnoisy the tests 2026-05-08 12:30:48 -07:00
c21ff84758 begin transfer log 2026-05-06 22:10:13 -07:00
f7c6224a1b periodic review: projections --as-of, contributions --since, comparison and tui projections date picker 2026-05-01 15:59:17 -07:00
98bee5fba6 move generation to a build step - comptime just too slow 2026-04-27 21:29:03 -07:00
94494c60ee ai: merge multiple positions with price_ratio fields 2026-04-25 11:15:41 -07:00
bc7605d0c6 filter non-stock totals by open-as-of 2026-04-23 07:24:49 -07:00
6ec6bd634b skip price_ratio on avg_cost fallback 2026-04-23 06:55:27 -07:00
fc0b2d9334 centralize calculation of effective price and market value 2026-04-23 05:45:39 -07:00