-
Notifications
You must be signed in to change notification settings - Fork 32
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
Resolve Withdrawals/Deposits #121
Resolve Withdrawals/Deposits #121
Conversation
I see rebasing did not work as expected. One sec. |
cf20350
to
081c395
Compare
f"({match.platform}, {match.utc_time})" | ||
) | ||
|
||
log.info("Finished matching") |
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.
This could just as well be a debug log.
081c395
to
7426249
Compare
src/book.py
Outdated
for op in sorted_ops: | ||
# log.debug(op.utc_time) | ||
if isinstance(op, tr.Withdrawal): | ||
if not misc.is_fiat(op.change): |
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.
we also should check for other fiats. only config.FIAT
hasn't to be monitored.
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.
What do you mean by other fiats? misc.is_fiat
already checks if the currency is any possible currency in Fiat
.
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.
Selling e.g. USD might be a taxable income for a German citizien (like selling BTC), because it's a foreign fiat currency. I think that, although this tool is for crypto taxation, we should notify about that and try to evaluate the taxes for that, too.
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.
what I meant by check other fiat currencies is, that we also should match deposit and withdrawals for other fiat currencies
Hey @jhoogstraat, thank you for your good and helpfull contribution. The deposit/withdrawal match is an important milestone for a correct tax evaluation. |
This is the follow-up for #116.
Contains a simple algorithm which matches related withdrawals and deposits.
Deposits now have a
link
property containing a reference to the matching withdrawal.The algorithm checks that: