Code Monkey home page Code Monkey logo

Comments (5)

laroche avatar laroche commented on July 16, 2024

Your CSV transactions should be complete. Your example data shows expiration of options, but you have not
bought or sold any options before. The current code should be fairly good tested with short options, so if
this issue is not resolved by using the complete list of transactions, then you might use long options? (Then
please submit a complete use case for that setup.)

Also the list of open positions should be looked at in detail to check for missing transactions.
(I have seen reports that downloading more than 250 transactions might truncate them. ???)

best regards,

Florian La Roche

from tastyworks-pnl.

MarLahr avatar MarLahr commented on July 16, 2024

Hi, thanks for your fast reply.

transaction_history.csv
Here is the complete list of transactions.
With this list i get the KeyError shown above.

They are mostly long options (3 of 4 options are long options) and the report contains less than 250 transactions.
The very first removed option (GOEV on 1/21/22) was bought in 2021. I guess here i need to manually add the transaction from 2021 into the CSV-file, correct?

from tastyworks-pnl.

laroche avatar laroche commented on July 16, 2024

Correct, add the rabnsactions from 2021 with a normal text editor to the end of the file.
(Using a spreadsheet program, the lines are often modified.)

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

from tastyworks-pnl.

MarLahr avatar MarLahr commented on July 16, 2024

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!

from tastyworks-pnl.

mark-gulati avatar mark-gulati commented on July 16, 2024

Thank you, this was useful to me. Maybe worth it to have in a FAQ.

from tastyworks-pnl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.