Skip to content

interest_rate_history_eod

FreeValueStandardPro

Retrieve end-of-day interest rate data across a date range. Supports SOFR and all standard Treasury maturities.

Code Example

rust
let data = tdx.interest_rate_history_eod("SOFR", "20260101", "20260301").await?;
for t in &data {
    println!("date={} rate={:.4}", t.date, t.rate);
}
python
data = tdx.interest_rate_history_eod("SOFR", "20260101", "20260301")
for t in data:
    print(f"date={t.date} rate={t.rate:.4f}")
typescript
const data = tdx.interestRateHistoryEOD('SOFR', '20260101', '20260301');
for (const t of data) {
    console.log(`date=${t.date} rate=${t.rate}`);
}
cpp
auto data = client.interest_rate_history_eod("SOFR", "20260101", "20260301");
for (const auto& t : data) {
    printf("date=%d rate=%.4f\n", t.date, t.rate);
}

Parameters

symbolstringrequired
Rate symbol (e.g. "SOFR", "TREASURY_Y10")
start_datestringrequired
Start date in YYYYMMDD format
end_datestringrequired
End date in YYYYMMDD format

Response

Returns an array of InterestRateTick records with rate data per trading day:

ratef64
Interest rate value (annualized, as decimal)
dateu32
Date as YYYYMMDD integer

Available Rate Symbols

SymbolDescription
SOFRSecured Overnight Financing Rate
TREASURY_M11-month Treasury
TREASURY_M33-month Treasury
TREASURY_M66-month Treasury
TREASURY_Y11-year Treasury
TREASURY_Y22-year Treasury
TREASURY_Y33-year Treasury
TREASURY_Y55-year Treasury
TREASURY_Y77-year Treasury
TREASURY_Y1010-year Treasury
TREASURY_Y2020-year Treasury
TREASURY_Y3030-year Treasury

Sample Response

json
[
  {"date": 20260302, "rate": 0.043200},
  {"date": 20260303, "rate": 0.043200},
  {"date": 20260304, "rate": 0.043100}
]

SOFR end-of-day rates for March 2026. Requires Value subscription.

Notes

  • Rates are published on trading days only. Non-trading days are excluded.
  • Use SOFR as the risk-free rate for short-term options pricing.
  • Use the appropriate Treasury maturity matching your option's time to expiration for more accurate Greeks.
  • Query the full Treasury curve by calling this endpoint with each maturity symbol to build a yield curve snapshot.

Released under the Apache-2.0 License.