Skip to content
sgyieldhub

API and data feeds

SGYieldHub publishes a small set of public endpoints for automated consumption. Free to use for personal, research, or commercial purposes, subject to MAS attribution. These are static files rebuilt when the data changes, so a fetch is only as fresh as the last build — the underlying MAS ingest runs roughly every four hours.

GET /api/freshness.json · application/json

Current data freshness: last-run timestamp, status, per-source counts, latest record dates.

Typical use: Canary monitoring, uptime checks, dashboards.

Fetch endpoint →

GET /api/ssb.csv · text/csv

All SSB issues as CSV. Full history (135 rows as of the last build). Units in column names.

Typical use: Spreadsheet analysis, data science, backtesting.

Fetch endpoint →

GET /api/tbills.csv · text/csv

All T-bill auctions as CSV. Full history (346 rows for 6m+1y as of the last build). Includes 'priced' column for filtering pending auctions.

Typical use: Yield curve analysis, auction demand tracking.

Fetch endpoint →

GET /rss.xml · application/rss+xml

RSS 2.0 feed of latest T-bill auctions and SSB issues (20 most recent combined).

Typical use: RSS readers, rate-update subscribers.

Fetch endpoint →

Usage and licensing

Data source: All rate and auction data comes from the Monetary Authority of Singapore (MAS). We fetch from MAS's public API on a cron schedule and republish.

Licence: MAS makes its datasets available under the MAS Terms of Use of Datasets (the Singapore Open Data Licence), not a Creative Commons licence. That licence requires a conspicuous source notice linking back to it, so ours is:

Contains information from the Monetary Authority of Singapore accessed via the MAS statistics API, which is made available under the terms of the Monetary Authority of Singapore's Terms of Use of Datasets. SGYieldHub is not affiliated with, and is not endorsed by, MAS.

Attribution: If you use this data in a product, dashboard, or article, you carry the same obligation — credit MAS and link the licence. Crediting SGYieldHub is nice but not required. Example: Data: MAS, via SGYieldHub

Rate limits: No hard limit. The endpoints are static files served from Cloudflare's edge. Please don't hammer — the data behind them only changes when the ingest runs (about every four hours), so polling faster than that returns the same bytes. Check /api/freshness.json if you need to know whether anything moved.

Freshness: Data is refreshed every few hours by our ingest. See /api/freshness.json for the last-run timestamp.

Schema versioning: CSV column names carry units (e.g. year1_rate_pct, amount_issued_sgd_millions). We add columns when new fields become available; we don't rename or remove existing columns without a deprecation notice.

No warranty: Data may be delayed, incomplete, or contain errors. Verify against MAS before taking action. See terms of use.

Example usage

# Fetch latest freshness status
curl https://sgyieldhub.com/api/freshness.json | jq

# Download SSB history as CSV
curl -o ssb.csv https://sgyieldhub.com/api/ssb.csv

# Subscribe to RSS (latest T-bill + SSB announcements)
# Paste into Feedly, Inoreader, or any RSS reader:
# https://sgyieldhub.com/rss.xml