Skip to content

Expand to premium tracker: 75 multi-issuer equities vs exchange anchors - #2

Merged
0xSHKWON merged 2 commits into
mainfrom
tokens-xyz-feature-review
Aug 13, 2026
Merged

0xSHKWON merged 2 commits into
mainfrom
tokens-xyz-feature-review

Conversation

@0xSHKWON

Copy link
Copy Markdown
Owner

Summary

  • Board grows from 6 pre-IPO assets to 81 assets / 167 mints, in two sections: pre-IPO (spread-only) and tokenized stocks measured against their real exchange price via a new Yahoo-anchored premium series
  • /healthz now watches both legs of the premium series (DEX collector + underlying-quote anchor) so a silent Yahoo block gets flagged instead of reading as healthy
  • Adds root CODEOWNERS (* @0xSHKWON)

Test plan

  • bun test src — 38/38 passing
  • tsc --noEmit clean, eslint clean
  • bun scripts/verify-seed.ts — all 33 anchored assets with live DEX prices agree within ±4%
  • Live end-to-end smoke: booted the process, watched /healthz transition 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

0xSHKWON and others added 2 commits August 14, 2026 04:06
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>
@0xSHKWON
0xSHKWON merged commit 45de472 into main Aug 13, 2026
1 check passed
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