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

Iterating tomorrow's value ... #9

Open
angelowra opened this issue Jun 23, 2020 · 1 comment
Open

Iterating tomorrow's value ... #9

angelowra opened this issue Jun 23, 2020 · 1 comment
Labels
enhancement New feature or request new functionality

Comments

@angelowra
Copy link

HI Julian
I actually sent you an email anyway: is it possible to iterate the stock.prediction.tomorrow() function for single or multiple stocks?

thsk Angelo

@jcamiloangarita
Copy link
Owner

Hi Angelo,

You can easily use the function within a loop by going through several values for specific parameters:

For example:

>>> from stocker.predict import tomorrow

>>> stocks = ['GOOGL', 'AMZN', 'AAPL', 'FB'] 

>>> print([tomorrow(x) for x in stocks])

[[1546.12, 1.562, '2020-07-13'], [3299.55, 1.694, '2020-07-13'], [393.78, 1.75, '2020-07-13'], [242.26, 2.669, '2020-07-13']]

In that way you can get the result for multiple stocks. This is a good feature that can be added for a new version. For now, it is necessary to create your own loop.

Also, check this short tutorial to see how to play with the different parameters.

@jcamiloangarita jcamiloangarita added the enhancement New feature or request label Jul 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request new functionality
Projects
None yet
Development

No branches or pull requests

2 participants