-
Notifications
You must be signed in to change notification settings - Fork 49
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
implemented feature to get historic price trend of a stock over certain fixed time intervals. #24
Conversation
…n fixed time intervals.
Hey @paul-antony this looks awesome! Can you also help out with writing test cases for this? |
Sure, I will try to write some test cases for it. |
getPeriodTrend. made them into float and int. They were string before.
test to check output dictionary keys are present for getPeriodTrend
The bug being json.load() in py3.5 cannot take byte stream, only string
added some test and some slight modification to the code. Modification |
@sdabhi23 is there anything else needed to be added to the code |
Hey @paul-antony, I was busy last couple of weeks and so haven't yet properly reviewed the changes. Am planning to review and merge the changes next weekend |
the behaviour for 1D and 5D is very much different from rest
@paul-antony have updated some parts of the functions and test cases. The reasoning for the same is as below:
|
Contributes towards #3 |
implemented feature to get historic price trend of a stock over certain fixed time intervals.
Implemented feature to get historic price trend of a stock over certain fixed time intervals. This feature collects historic data like price and volume of the stalk over certain pre-defined period.
The pre-defined period are
1D
,5D
,1M
,3M
,6M
,12M
.This data can be used to visualise the latest trends in the stock.