yacoubb / stock-trading-ml

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

A suggestion for the save_data_to_csv.py #16

Open XyzzyX44 opened 4 years ago

XyzzyX44 commented 4 years ago

I have made a bit of a change that might help if someone were to want to pull more than one stock at a time. simple adding a 'Stock symbols.txt' file with one stock symbol on each line. This will also create a simple {date}.txt file that will help track the number of API calls per day. I also added a time.sleep(13) to make sure the API is not abused. There is a limit of 500 calls per day, and 5 API requests per minute. See the attached files for the updates. 08-01-2020.txt [api_data_to_csv.txt](https://github.com/yacoubb/stock-trading-ml/files/5011748/api_data_to_csv.txt Stock symbols.txt )

rename api_data_to_csv.txt to save_data_to_csv.py