bernardobelchior/fifo-capital-gains-js

Debugging or 0 cost basis Feature request

Opened this issue · 0 comments

Feature request

Debugging or 0 cost basis

Hello I'm working on a deno project and I would like to use your functions in it, but I'm working with a lot of transactions and the data is not perfect, some buys or sells are still missing and your calculateFIFOCapitalGains function just throws:

"Amount of sales for symbol exceeds the amount of buys"

Is there any way to get more info what is ammount of each symbol is missing and maybe an option to set 0 cost basis for the missing buys (This is how Koinly does it for example). I would be happy to help developping it, just give me an idea where to start.