Hi,
I'm new to python and can't seem to get this code working, this is the error:
usage: save_data_to_csv.py [-h] symbol {intraday,daily,daily_adj}
save_data_to_csv.py: error: the following arguments are required: symbol, time_window
it doesn't quite make sense why its not working because the code defines both and can be seen here:
Hi, I'm new to python and can't seem to get this code working, this is the error:
usage: save_data_to_csv.py [-h] symbol {intraday,daily,daily_adj} save_data_to_csv.py: error: the following arguments are required: symbol, time_window
it doesn't quite make sense why its not working because the code defines both and can be seen here:
if time_window == 'intraday': data, meta_data = ts.get_intraday( symbol='MSFT', interval='1min', outputsize='full') elif time_window == 'daily': data, meta_data = ts.get_daily(symbol, outputsize='full') elif time_window == 'daily_adj': data, meta_data = ts.get_daily_adjusted(symbol, outputsize='full')
If anyone is able to help that would be great.
Thank you