Skip to content

feat(metrics): benchmark metrics and payment frequency from the shared blocks - #115

Merged
daggerok merged 1 commit into
mainfrom
feat/benchmark-block
Nov 16, 2026
Merged

daggerok merged 1 commit into
mainfrom
feat/benchmark-block

Conversation

@daggerok

Copy link
Copy Markdown
Owner

What

Wires the shared benchmark block (32 keys against SPY and QQQ) and replaces the dividends block with the eight-key version (paymentsPerYear, payFrequency). Yahoo mode: the benchmark tap wraps the dividends tap on the swing request (one request feeds swing, dividends and benchmark), plus one SPY and one QQQ chart per run through requestText (request gate, retries, timeout, browser User-Agent); skipped after the soft deadline, like the fund charts. README metrics list extended.

Why

Plan etf-benchmark-screeners-plan.md, stage 4: benchmark and payment-frequency metrics in every brand feed for the Stocks screener. Same wiring as SPDR PR 104.

Checked locally (no CI)

benchmark-gates.sh check: ok install, test, test-env, build-updater, build-ui, diff-check, readme, scripts, log-tags, block, tc (53 lines, baseline 53)
bun test: 42 pass, 0 fail; fake clock +50 and +548 days: 42 pass each
Test mock: the swing chart answer gets adjclose (same numbers as close) and serves SPY and QQQ too; chart requests asserted: AAA, BBB, CCC, QQQ, SPY
Real run TICKERS=DVY REQUEST_SLEEP=0 ./scripts/update-data.ts: vsSpy1y 6.78, beta1ySpy 0.25, payFrequency quarterly (4 payments), benchmarkAsOf 2026-11-13; all funds share one key list; data not committed

@daggerok
daggerok merged commit b132d1d into main Nov 16, 2026
1 check passed
@daggerok
daggerok deleted the feat/benchmark-block branch November 16, 2026 06:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant