EOD
FreeValueStandardPro
Fetch end-of-day interest rate history.
- Returns the interest rate reported. Depending on the rate, reports can occur in the morning or the afternoon.
- Valid
symbolvalues per upstreamRateTypeenum:SOFR,TREASURY_M1,TREASURY_M3,TREASURY_M6,TREASURY_Y1,TREASURY_Y2,TREASURY_Y3,TREASURY_Y5,TREASURY_Y7,TREASURY_Y10,TREASURY_Y20,TREASURY_Y30.
rust
pub fn interest_rate_history_eod(
&self,
symbol: &str,
start_date: &str,
end_date: &str,
) -> InterestRateHistoryEodBuilder<'_>Execute with .await → Result<Vec<InterestRateTick>, Error>, or decode chunk-by-chunk with .stream(handler).
Example
rust
let rows = tdx.interest_rate_history_eod("SOFR", "20250303", "20250306").await?;
for t in &rows {
println!("date={} rate={}", t.date, t.rate);
}Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
symbol | string | yes | — | Ticker symbol (e.g. AAPL) |
start_date | date | yes | — | Start date YYYYMMDD |
end_date | date | yes | — | End date YYYYMMDD |
timeout_ms | int | no | — | Per-request deadline in milliseconds. 0 means no deadline. |
Response
Rows of InterestRateTick:
| Field | Type | Description |
|---|---|---|
date | i32 | Report creation date as a YYYYMMDD integer. |
rate | f64 | Interest rate expressed as a percent (1.25 means 1.25%). |