provinzio / CoinTaxman

Calculate your taxes from cryptocurrency gains
GNU Affero General Public License v3.0
142 stars 31 forks source link

Order subtype 'spotfromfutures' is currently not supported #158

Open alexanderadam opened 6 months ago

alexanderadam commented 6 months ago

Hello @provinzio,

I tried to calculate the statements for Kraken and I'm getting the error message Order subtype 'spotfromfutures' is currently not supported. Do you have any advice on what I should do?

245 book         ERROR    account_statements/ledgers.csv row 297: Order subtype 'spotfromfutures' is currently not supported. Please create an Issue or PR.
Traceback (most recent call last):
  File "src/main.py", line 71, in <module>
    main()
  File "src/main.py", line 36, in main
    status = book.read_files()
             ^^^^^^^^^^^^^^^^^
  File "src/book.py", line 1778, in read_files
    self.read_file(file_path)
  File "src/book.py", line 1730, in read_file
    read_file(file_path)
  File "src/book.py", line 670, in _read_kraken_ledgers
    raise RuntimeError
RuntimeError

Thank you in advance!

provinzio commented 6 months ago

Hey, the transaction type has to be mapped to an operation type.

For that it's necessary to understand what 'spotfromfutures' means. Is it a transfer between spot and futures wallet? Or a buy/sell action?

Feel free to checkout the operations mapping near the erroring line.