Hi Team,
i would like to know how can i use the st.sidebar to create a dataset in order to download data from a list
example
User input for stock ticker symbol
stock_symbol = st.sidebar.text_input(‘Enter Ticker Symbol (e.g., MSFT):’)
Date range input
start_date = st.sidebar.date_input(‘Select From Date:’, datetime.now() - timedelta(days=365))
end_date = st.sidebar.date_input(‘Select To Date:’, datetime.now())
and then have a list of this format
assets = [
“XLE”, “XLF”, “XLU”, “XLI”, “GDX”,
“XLK”, “XLV”, “XLY”, “XLP”, “XLB”,
“XOP”, “IYR”, “XHB”, “ITB”, “VNQ”,
“GDXJ”, “IYE”, “OIH”, “XME”, “XRT”,
“SMH”, “IBB”, “KBE”, “KRE”, “XTL”,
]