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

XTB: Support interest and fractional shares #51

Conversation

gabrielgradinaru
Copy link
Contributor

Added

Add support in XTB for interest and fractional shares

Copy link
Owner

@dickwolff dickwolff left a 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?

quantity: 1,
type: GhostfolioOrderType[record.type],
unitPrice: record.amount,
currency: process.env.XTB_ACCOUNT_CURRENCY,
Copy link
Owner

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
Copy link
Owner

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?

@dickwolff
Copy link
Owner

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!

@gabrielgradinaru
Copy link
Contributor Author

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

@dickwolff dickwolff merged commit 4b3fa87 into dickwolff:main Apr 19, 2024
0 of 2 checks passed
@dickwolff
Copy link
Owner

LGTM!

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.

None yet

2 participants