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

Implement NewsSentiment and BasicFinancials #6

Merged

Conversation

cubisttriangle
Copy link
Contributor

Addresses NewsSentiment and BasicFinancials features #3

Some of the fields in Metric get null values back from the request, so I chose the conservative route and made them all optional. One downside of this approach is that it can lead to somewhat subtle bugs when a JSON property name doesn't match. This could happen because a name changes in the JSON response or because of a misspelling in one of the type members.

Another improvement might be to change the Date fields to be dates structs, instead of strings.

@cubisttriangle cubisttriangle changed the title Vk news financials Implement NewsSentiment and BasicFinancials Apr 17, 2021
Copy link
Owner

@henryboisdequin henryboisdequin left a comment

Choose a reason for hiding this comment

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

Wow, nice job! Thanks for implementing this! We should definitely use #[serde(rename = "")] for more of the project like instead of r#type we can use _type and then rename it to type, simplifying the code a little.

@henryboisdequin henryboisdequin merged commit f673452 into henryboisdequin:main Apr 18, 2021
@cubisttriangle cubisttriangle deleted the vk_news_financials branch April 18, 2021 01:34
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.

2 participants