-
Notifications
You must be signed in to change notification settings - Fork 14
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
Key Error: Receive Deliver - Expiration on Options #31
Comments
Your CSV transactions should be complete. Your example data shows expiration of options, but you have not Also the list of open positions should be looked at in detail to check for missing transactions. best regards, Florian La Roche |
Hi, thanks for your fast reply. transaction_history.csv They are mostly long options (3 of 4 options are long options) and the report contains less than 250 transactions. |
Correct, add the rabnsactions from 2021 with a normal text editor to the end of the file. If you combine several transaction files, you have to delete the first line of the files except for the newest date. Does this work for you now? best regards from Germany/Stuttgart, Florian La Roche |
I exported all trades, so no trade which was done in the year before is missing. Now everything works fine and I get no errors. Thank you for the fast reply and solution! |
Thank you, this was useful to me. Maybe worth it to have in a FAQ. |
Hi,
I encountered a "KeyError" when processing an expiration on an option.
Traceback:
![Traceback](https://user-images.githubusercontent.com/64334057/203139900-ea26f698-010c-4451-98dc-a465fb816522.PNG)
Fields in the transaction-csv
transactions.csv
As a workaround i deleted those lines and ran the program again.
![OpenPositions](https://user-images.githubusercontent.com/64334057/203141271-90568b71-714e-4150-ba2a-63d67591dfaa.PNG)
Now it tells me I still have open positions (I have none), but at least the tax income statement gets created correct:
The text was updated successfully, but these errors were encountered: