Gets the whole price history of the selected index, renders
its candlestick chart and serves it as a CSV file named like
s-p-500-history-2026-11-07.csv, with the columns date, label,
open, high, low, close and volume.
Arguments
- id
Character. Module namespace id, must match the id used in
mod_timeseries_ui().- indices
Data frame of indices from
get_indices().- dark_mode
Reactive returning
"light"or"dark", the mode of the app.
Value
A reactive returning the price history of the selected index, from
get_history(), which the Returns calendar, Seasonality, Volatility and
Drawdowns tabs reuse.