-
Notifications
You must be signed in to change notification settings - Fork 7
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
degiro updates #48
degiro updates #48
Conversation
Thanks for the contribution. I will have a closer look tomorrow, but could you at least add a testcase for the sell activity? |
will do, btw add some labels for PR's like feature/bug/enhancement/... ;) |
i added a few unit tests, i think the 'example' naming you used for directories of csv files is quite useless to be honest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a single unused parameter, nothing major :) . Looks good!
return decimal.Parse(quantity, GetCultureForParsingNumbers()); | ||
} | ||
|
||
private decimal GetUnitPrice(DeGiroRecord record) | ||
private decimal GetUnitPrice(DeGiroRecord record, bool buy = true) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure why there is an unused parameter 👼
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah yes because i had other plans on how to check for buy and sell but changed my mind :D
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you'll have to approve the new changes
IT is a work in progress, I like the suggestion 👍 . BTW, the build fails, likely on a culture problem |
I will merge it and fix it in master. Need this code for another change :) |
Thanks to #48 we got DeGiro sells
added 'sell' detection
and make GetQuantity and GetUnitPrice currency agnostic and buy/sell agnostic