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

Fix decimal parsing for non-dot decimal point #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Rickebo
Copy link

@Rickebo Rickebo commented Aug 19, 2024

Some languages use other decimal points than .. Yahoo uses the dot as a decimal point in its API though, and therefore, parsing decimals with just decimal.TryParse fails when OS is set up to use other characters such as ,. This change forces decimals to be parsed using the dot as decimal point to fix the problem.

@Matthiee
Copy link
Member

Hi @Rickebo thank you for your contribution. The changes look good and I can merge the PR, however, I will not be able to push a new Nuget until the failing tests have been fixed.

@Rickebo
Copy link
Author

Rickebo commented Aug 20, 2024

Looks like the API is returning a 401 when requesting quotes, and doesn't appear to be related to my change. I started working on a solution by requesting a crumb from the API but I don't have time to finish it currently.

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