Repository navigation
Expand to premium tracker: 75 multi-issuer equities vs exchange anchors - #2
Merged
Merged
Conversation
The board grows from 6 pre-IPO assets to 81 assets / 167 mints in two sections: pre-IPO (spread-only, no reference price exists) and tokenized stocks measured against the real exchange price of the underlying. - data/equity-seed.json: every multi-issuer public equity in the tokens.xyz registry, with hand-curated underlying tickers (74) and split scales (Netflix tokens are pre-split shares -> anchorScale 10), regenerated by data/extract-equity-seed.ts and live-verified by scripts/verify-seed.ts (all 33 assets with DEX prices agree within ±4%; sk-hynix is KRW-listed, spread-only) - underlying_ticks (migration v2): anchor exchange price per ticker per stock cycle via the Yahoo v8 chart API, polled every 5 min, kept forever - two-tier DexScreener polling: pre-IPO mints every cycle, public mints every 5th cycle (~167 req peak minute, under the ~300/min limit) - premium = token price / (anchor x scale) - 1, computed at read time from the two stored series, surfaced per variant on the board and /api/latest - /healthz now watches both legs: collectorDegraded (DEX poll stalled) OR anchorsDegraded (no underlying tick in 3 stock cycles, e.g. Yahoo blocking); pre-IPO-only deployments skip the anchor leg Verified live end to end: boot -> both legs degraded -> anchors green -> full recovery; 40 variants showing live premiums (BAC xStock -14.4% on a thin $1k pool, UNH +4.1%, NFLX -0.39% via x10 anchor). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/healthznow watches both legs of the premium series (DEX collector + underlying-quote anchor) so a silent Yahoo block gets flagged instead of reading as healthyCODEOWNERS(* @0xSHKWON)Test plan
bun test src— 38/38 passingtsc --noEmitclean,eslintcleanbun scripts/verify-seed.ts— all 33 anchored assets with live DEX prices agree within ±4%/healthztransition through both-degraded → anchors-recovered → fully-recovered, confirmed live premiums on the board (e.g. BAC xStock −14.4%, NFLX −0.39% via the ×10 split-adjusted anchor)🤖 Generated with Claude Code