yacoubb / stock-trading-ml

A stock trading bot that uses machine learning to make price predictions.
GNU General Public License v3.0
598 stars 254 forks source link

save_data_to_csv.py issue #26

Closed thomasmore72 closed 3 years ago

thomasmore72 commented 3 years ago

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