cclark25 / kraken-taxes

A typescript project for ingesting Kraken ledger CSV files and outputting a simplified CSV file for Tax Advisors
MIT License
0 stars 0 forks source link

Approximate value #1

Open cclark25 opened 2 years ago

cclark25 commented 2 years ago

My tax representative told me that since I had traded Bitcoin for Dogecoin, and subsequently sold the Dogecoin for US Dollars, I needed to provide the approximate dollar value of the bitcoin at the time of the purchase of the Dogecoin.

In order to accomplish this through the script, the script will need to connect to some external API to retrieve the historical value of the bitcoin at the time of each transaction.

cclark25 commented 2 years ago

Krakken has a public API endpoint for retrieving historical data which I can probably use: https://docs.kraken.com/rest/#operation/getOHLCData

cclark25 commented 2 years ago

So it seems that that wasn't what my tax advisor wanted. Apparently, she wants to know how much money I spent on the Bitcoin which I traded for Dogecoin, NOT the value of the bitcoin at the date of the trade. Since the bitcoin came from an account balance that is filled with bitcoin from multiple transactions, that is going to be pretty complicated to calculate I suspect. Especially since the bitcoin originally came from outside Krakken, so the actual purchase of Bitcoin with US Dollars is not going to be included on the file. It is looking like this script is going to be a very complicated task.