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

Order subtype 'spotfromfutures' is currently not supported #158

Open
alexanderadam opened this issue Dec 12, 2023 · 1 comment
Open

Order subtype 'spotfromfutures' is currently not supported #158

alexanderadam opened this issue Dec 12, 2023 · 1 comment

Comments

@alexanderadam
Copy link

alexanderadam commented Dec 12, 2023

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

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.

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

2 participants