Skip to content

A suggestion for the save_data_to_csv.py #16

@XyzzyX44

Description

@XyzzyX44

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions