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

Error with csv from Kraken - earn not supported #174

Closed
oldgitdaddy opened this issue Jan 5, 2025 · 3 comments
Closed

Error with csv from Kraken - earn not supported #174

oldgitdaddy opened this issue Jan 5, 2025 · 3 comments

Comments

@oldgitdaddy
Copy link

Any advice on this error? I cannot believe that this is not supported. Thank you!

Other order type 'earn' is currently not supported. Please create an Issue or PR.
Traceback (most recent call last):
  File "/home/pi/CoinTaxman/src/main.py", line 71, in <module>
    main()
  File "/home/pi/CoinTaxman/src/main.py", line 36, in main
    status = book.read_files()
  File "/home/pi/CoinTaxman/src/book.py", line 1899, in read_files
    self.read_file(file_path)
  File "/home/pi/CoinTaxman/src/book.py", line 1851, in read_file
    read_file(file_path)
  File "/home/pi/CoinTaxman/src/book.py", line 784, in _read_kraken_ledgers
    raise RuntimeError
RuntimeError

@provinzio
Copy link
Owner

The concept of earn (e.g. earning from staking) is already implemented in the taxation tool. But it the link is currently missing in book.py. (This can happen when earlier users didn't had this type of income and therefore didn't implemented it or when the exchange changes the export format which happens quite often. )

Checkout the book.py read function for your exchange and make sure that the operation type is correctly set.

@Griffsano
Copy link
Contributor

Hey @oldgitdaddy,

Kraken recently updated their CSV export a bit and added new operations. Here's more information about the CSV export: https://support.kraken.com/hc/en-us/articles/360001169383-How-to-interpret-Ledger-history-fields

I've recently implemented the earn operation in my Griffsano:margin_kraken branch / PR #120.
You can try if that branch works for you.

@oldgitdaddy
Copy link
Author

oldgitdaddy commented Jan 5, 2025

Thanks Griffsano, PR worked for me! Hope it is merged soon! Good luck! 👍

Repository owner deleted a comment Jan 5, 2025
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

No branches or pull requests

3 participants