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

Fix pub-trade price lookup for trx tax report #390

Conversation

ZIMkaRU
Copy link
Member

@ZIMkaRU ZIMkaRU commented Jun 28, 2024

This PR fixes pub-trade price lookup for the trx tax report


The issue is the following:

  • eg user can have transactions with LNX ccy, but public trades endpoint does not provide price for it
  • as a workaround, we can use ccy synonymous with conversion
  • eg for LNX price is BTC = 1

Screenshot from 2024-06-28 13-36-43


Basic changes:

  • Improve PubTradeFindForTrxTaxError error log
  • Fixes pub-trade price lookup for trx tax report
  • Add pair separator if ccy length is more than 3

Copy link
Contributor

@ezewer ezewer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

2 participants