尚未偵測到更新。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.