Skip to content

Fix decimal parsing for non-dot decimal point#19

Open
Rickebo wants to merge 1 commit intoMatthiWare:masterfrom
Rickebo:master
Open

Fix decimal parsing for non-dot decimal point#19
Rickebo wants to merge 1 commit intoMatthiWare:masterfrom
Rickebo:master

Conversation

@Rickebo
Copy link
Copy Markdown

@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
Copy Markdown
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
Copy Markdown
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