This will make a TurboTax import file (txf) and fill out IRS form 8949 with Coinbase, GDAX, and Bittrex data
OTHER License
This will fill out IRS form 8949 for the following exchanges:
It assumes all short term sales and will use the highest cost buy order for cost basis. This will lower the amount of taxes you will have to pay. It will make a .txf that you can import into TurboTax, and it will fill out the IRS form 8949. This has only been tested on Windows.
This project was forked off of CryptoTaxes by gsugar87.
credentials.py
to config.yml
TODO.md
for more detailsUsing the recommended pipenv
pipenv install
Install pdftk from a binary and make sure the command pdftk
is in the path.
If using Ubuntu it's easier to install.
apt-get install pdftk
Assuming you have API keys for the exchanges you want. Edit config.yml
and uncomment the exchanges and insert keys, secrets, and passphrases. Fill out your name and social in the file to have that written into the PDF.
Then finally, run the script
python CoinTaxes.py
If you have a separate configuration file:
python CoinTaxes.py --input randy.yml
Sign into your Coinbase account
Go to the API page and click on New API Key
In the popup window check all
under Accounts:
wallet:accounts:read
wallet:addresses:read
wallet:buys:read
wallet:deposits:read
wallet:sells:read
wallet:transactions:read
wallet:user:read
Click Create to see the API key and secret.
Insert the API Key into the correct variables in config.yml
e.g.
coinbase:
key: 'abcdefg1234'
secret: 'zxcvbasdf1234qwer'
Sign into GDAX
Go to API page and under Permissions, check View
and then click Create API Key.
Enter the two-factor authentication code if you are asked for it
Insert the API creds into the correct variables in config.yml
e.g.
gdax:
key: 'qwerty123'
secret: 'poiuyt999'
passphrase: 'mnbvc000'
Unfortunately, the Bittrex API does not let you get your entire transaction history via an API. In order to get your entire history, you must login to your Bittrex account, go to https://bittrex.com/History, and then click on "Load All." This will download your entire history in a csv file called "fullOrders.csv". Move this file into the CryptoTaxes directory, and it will be read in.
If you find this code useful, feel free to donate!
Original developer's crypto wallets are at the bottom of his repo.