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 rates: Vec<InterestRateTick> = tdx.interest_rate_history_eod(
    "SOFR", "20240101", "20240301"
).await?;

// Treasury 10-year yield
let rates: Vec<InterestRateTick> = tdx.interest_rate_history_eod(
    "TREASURY_Y10", "20240101", "20240301"
).await?;
python
result = tdx.interest_rate_history_eod("SOFR", "20240101", "20240301")

# Treasury 10-year yield
t10 = tdx.interest_rate_history_eod("TREASURY_Y10", "20240101", "20240301")
go
result, err := client.InterestRateHistoryEOD("SOFR", "20240101", "20240301")
if err != nil {
    log.Fatal(err)
}

// Treasury 10-year yield
t10, err := client.InterestRateHistoryEOD("TREASURY_Y10", "20240101", "20240301")
cpp
auto result = client.interest_rate_history_eod("SOFR", "20240101", "20240301");

// Treasury 10-year yield
auto t10 = client.interest_rate_history_eod("TREASURY_Y10", "20240101", "20240301");

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 a Vec<InterestRateTick> 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

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 GPL-3.0-or-later License.