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
XTB: Support interest and fractional shares #51
XTB: Support interest and fractional shares #51
Conversation
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.
Can you bump the GitVersion with a patch number?
src/converters/xtbConverter.ts
Outdated
quantity: 1, | ||
type: GhostfolioOrderType[record.type], | ||
unitPrice: record.amount, | ||
currency: process.env.XTB_ACCOUNT_CURRENCY, |
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.
Can you add a fallback to this? Like process.env.XTB_ACCOUNT_CURRENCY || “EUR”
. I think currently Ghostfolio will not accept the export if you don’t provide a currency.
@@ -1,4 +1,10 @@ | |||
ID;Type;Time;Symbol;Comment;Amount | |||
530692719;Stocks/ETF purchase;12.04.2024 13:01:45;SPYL.DE;OPEN BUY 34/42.5658 @ 11.7480;-399.43 |
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.
Can you change the unit test to reflect the new lines that should be added?
Thanks for adding these changes @gabrielgradinaru, I left some remarks about a few changes I’d like you to make. The PR looks good to me except for those small changes! |
Sorry, I totally forgot about unit tests. I've fixed the xtb test and also updated yahoo-finance2 package because it was failing due to gadicc/node-yahoo-finance2#764 |
LGTM! |
Added
Add support in XTB for interest and fractional shares