Skip to content

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 symbol values per upstream RateType enum: 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 .awaitResult<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

NameTypeRequiredDefaultDescription
symbolstringyesTicker symbol (e.g. AAPL)
start_datedateyesStart date YYYYMMDD
end_datedateyesEnd date YYYYMMDD
timeout_msintnoPer-request deadline in milliseconds. 0 means no deadline.

Response

Rows of InterestRateTick:

FieldTypeDescription
datei32Report creation date as a YYYYMMDD integer.
ratef64Interest rate expressed as a percent (1.25 means 1.25%).

Released under the Apache-2.0 License.