Skip to content
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

Open
ghost opened this issue Oct 15, 2019 · 6 comments
Open

error #4

ghost opened this issue Oct 15, 2019 · 6 comments

Comments

@ghost
Copy link

ghost commented Oct 15, 2019

(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

@zedb123
Copy link

zedb123 commented Oct 16, 2019

just create a csv file with header date , open , high , low , close , volume (obviously with data in it !) and just run tech_ind_model ..
should all be fine ..

@XyzzyX44
Copy link

XyzzyX44 commented Aug 2, 2020

The correct way to run is:
python -m 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:
python -m save_data_to_csv.py MSFT daily
--Hope that helps.
-- Also be sure that you have your API key stored in "creds.json"
I really don't see how zedb123's comment helped at all.
I realized I had used right and left carrots to enclose arguments, and they didn't show - the comment must have thought them html tags, lol. I have updated my answer to be better, sorry, hehe

@Eccedustin
Copy link

@XyzzyX44
I am having a bit of trouble running it still. I can't figure out your directions to run it in Pycharm. Could you advise?

When running in Pycharm Terminal I get this error:

Error while finding module specification for 'save_data_to_csv.py' (ModuleNotFoundError: _
path_ attribute not found on 'save_data_to_csv' while trying to find 'save_data_to_csv.py')

@XyzzyX44
Copy link

XyzzyX44 commented Aug 2, 2020 via email

@Eccedustin
Copy link

How would you do it in Google colab? That's what I'm using currently.

@XyzzyX44
Copy link

XyzzyX44 commented Aug 12, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants