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

Added date to CryptoUnit #13

Merged
merged 2 commits into from
Oct 20, 2020

Conversation

lubotorok
Copy link

I have tried to add a date attribute to your CryptoUnit class together with its filling from the AlphaVantage rest service. Seems to be working in my project.
PS: I am pushing something to GitHub for the first time so I hope this is a correct way.

Copy link
Owner

@crazzyghost crazzyghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lubotorok this fix is set as a TODO task in the develop branch. Nicely done!
What I would point out is that in the CryptoResponse class, during the parse handling, we need both the key and value. It would be efficient to iterate over the entry set rather than the key set ( which requires performing another operation to retrieve the values).

@lubotorok
Copy link
Author

Changed to iteration over the entry set.

@crazzyghost crazzyghost merged commit cffc4b2 into crazzyghost:master Oct 20, 2020
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

Successfully merging this pull request may close these issues.

3 participants