Dates
FreeValueStandardPro
List available dates for a stock by request type (EOD, TRADE, QUOTE, etc.).
Lists all dates of data that are available for a stock with a given request type and symbol. This endpoint is updated overnight.
rust
pub fn stock_list_dates(&self, request_type: &str, symbol: &str) -> StockListDatesBuilder<'_>Execute with .await → Result<Vec<String>, Error>.
Example
rust
let rows = tdx.stock_list_dates("trade", "AAPL").await?;
for value in &rows {
println!("{value}");
}Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
request_type | string | yes | — | Request type. Accepted values: trade, quote, eod, ohlc. |
symbol | string | yes | — | Ticker symbol (e.g. AAPL) |
timeout_ms | int | no | — | Per-request deadline in milliseconds. 0 means no deadline. |
Response
A list of strings — one date value per row.