尚未检测到更新。GitHub 发布版本后会显示在这里。
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证制作者的介绍仅有上面的一句话。 更多详情请阅读仓库 README。 仓库 README ↗
正在加载完整 README。
查看完整 README ↗See what a bond is really earning you. Bond Returns works out the yield to maturity, current yield and holding-period return of a fixed-coupon bond. It keeps them up to date with official US Treasury prices, entirely in your browser.
Use it: open hubertfong.github.io/bond-returns. The user guide explains every field and result in plain English.
Run it on your computer (needs Node.js 22):
git clone https://github.com/HubertFong/bond-returns.git
cd bond-returns
npm ci
npm run dev # then open http://localhost:5173/bond-returns/
Locally, the page uses a small sample price file, labelled as such on screen. Run python python/fetch_fedinvest.py to download the real prices.
US Treasury FedInvest GitHub Actions (weekdays + every push)
official end-of-day prices ───► fetch_fedinvest.py → treasury_prices.json
tests → build → deploy → live smoke test
│
▼
Your browser ◄───────────────────────── GitHub Pages (static site + price file)
reads the price file every 60 s and computes everything locally
There is no backend to run or pay for. Prices are collected by a scheduled GitHub Actions job and published with the site. The browser does all the maths.
| Read | If you want to |
|---|---|
| User guide | Use the app: fields, results, status badge, FAQ |
| Method | Check the maths: formulas, a worked example by hand, validation, edge cases |
| Developer guide | Run, test, deploy, operate or extend the code |
| Changelog | See what is in each release |
PRICE and YIELD functions on Microsoft's own documented examples.Proprietary. Copyright © 2026 Hubert Fong. All rights reserved. See LICENSE.