-
Notifications
You must be signed in to change notification settings - Fork 257
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error #4
Comments
just create a csv file with header date , open , high , low , close , volume (obviously with data in it !) and just run tech_ind_model .. |
The correct way to run is: |
@XyzzyX44 When running in Pycharm Terminal I get this error: Error while finding module specification for 'save_data_to_csv.py' (ModuleNotFoundError: _ |
@Eccedustin
Running in pycharm venv terminal is different--
run it from there like this.
save_data_to_csv.py [stock Symbol] [daily]
replace [stock Symbol] with MSFT for example for microsoft or TSLA for Tesla
replace [daily] with daily, intraday, or daily_adj depending on the type of data you want. I use daily.
so my command would look like:
save_data_to_csv.py MSFT daily
You would not be able to run it directly in pycharm as it takes arguments. Run it from the terminal tab at the bottom as above.
When running from pycharm venv, you cannot call python -m module.py, pycharm is not set up like that. I have updated the answer on this post for pycharm specific answer.
Also you would want to make sure that your venv includes all of the modules, and that you have your API key from alpha_vantage.com saved in the creds.json file.
Modules to include in the venv:
alpha_vantage
pprint
import time
datetime
os
json
|
How would you do it in Google colab? That's what I'm using currently. |
I am not familiar with google colab.
…On Tue, Aug 11, 2020, 19:18 Eccedustin ***@***.***> wrote:
How would you do it in Google colab? That's what I'm using currently.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AD7WPTWTR5DHETNH3553L7LSAH3WJANCNFSM4JA3UEDA>
.
|
(venv) C:\Users\sander\PycharmProjects\autotrader>python save_data_to_csv.py
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
The text was updated successfully, but these errors were encountered: