Skip to content

stock_list_dates

List available dates for a stock filtered by request type. Use this to discover what date range is available before requesting historical data.

FreeValueStandardPro

Code Example

rust
let dates: Vec<String> = tdx.stock_list_dates("EOD", "AAPL").await?;
println!("First: {} Last: {}", dates.first().unwrap(), dates.last().unwrap());
python
dates = tdx.stock_list_dates("EOD", "AAPL")
print(f"First: {dates[0]} Last: {dates[-1]}")
go
dates, err := client.StockListDates("EOD", "AAPL")
if err != nil {
    log.Fatal(err)
}
fmt.Printf("First: %s Last: %s\n", dates[0], dates[len(dates)-1])
cpp
auto dates = client.stock_list_dates("EOD", "AAPL");
std::cout << "First: " << dates.front()
          << " Last: " << dates.back() << std::endl;

Parameters

request_typestringrequired
Data type: "EOD", "TRADE", "QUOTE", or "OHLC"
symbolstringrequired
Ticker symbol (e.g. "AAPL")

Response

List of date strings in YYYYMMDD format, sorted chronologically.

Notes

  • The available date range varies by request type. Trade/quote tick data typically covers fewer years than EOD data.
  • Use this endpoint to validate date ranges before making history requests.

Released under the GPL-3.0-or-later License.