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

Add a method to get historical 52-week high #30

Open
usvyatsky opened this issue Jul 12, 2014 · 0 comments
Open

Add a method to get historical 52-week high #30

usvyatsky opened this issue Jul 12, 2014 · 0 comments

Comments

@usvyatsky
Copy link

I have a small enhancement to the package that computes a historical 52-week high.
The definition of a historical 52-week high I used is as follows:
The highest 'High' of all prices of a given symbol in a 1-year range than ends at a specified date.
The function returns a dict of dicts (just like original get_historical_prices) which usually contains a single element with the date as a key and a full data dictionary of that dates data as a value.
In a rare case of more than one occasions of the same highest 'High' value within the period all those occasions are included in the result.
I will create a pull request with my enhancement shortly.

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

1 participant