Skip to content

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 .awaitResult<Vec<String>, Error>.

Example

rust
let rows = tdx.stock_list_dates("trade", "AAPL").await?;
for value in &rows {
    println!("{value}");
}

Parameters

NameTypeRequiredDefaultDescription
request_typestringyesRequest type. Accepted values: trade, quote, eod, ohlc.
symbolstringyesTicker symbol (e.g. AAPL)
timeout_msintnoPer-request deadline in milliseconds. 0 means no deadline.

Response

A list of strings — one date value per row.

Released under the Apache-2.0 License.