Skip to content

This will make a TurboTax import file (txf) and fill out IRS form 8949 with Coinbase, GDAX, and Bittrex data

License

Notifications You must be signed in to change notification settings

gsugar87/CryptoTaxes

Repository files navigation

CryptoTaxes

This was the original code that started www.bitcointaxhelper.com

This will fill out IRS form 8949 with Coinbase, GDAX, and Bittrex data. 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 IRF form 8949. This has only been tested on Windows.

Requirements:

PDFtk (Make sure it is in your system's path environment variable):

https://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/

GDAX Python Library:

pip install GDAX

Coinbase Python Library:

pip install Coinbase

fdfgen Python Library:

pip install fdfgen

Instructions:

In the same directory that you cloned this repository, make a file "credentials.py" that contains the following:

coinbase_key = ''
coinbase_secret = ''
gdax_key = ''
gdax_secret = ''
gdax_passphrase = ''

You will populate this file with your Coinbase and GDAX API Key details. First, get the Coinbase keys. You can get the Coinbase keys by logging into your Coinbase account and going to https://www.coinbase.com/settings/api and clicking on "+ New API Key." A window will pop up and you should check "all" under Accounts and "wallet:accounts:read," "wallet:addresses:read," "wallet:buys:read," "wallet:deposits:read," "wallet:sells:read," "wallet:transactions:read," and "wallet:user:read" under Permissions, and then click Create.
A new window will pop up with the API Key Details. Put the API Key into the coinbaseKey variable and the API Secret into the coinbaseSecret variable. For example if your Coinbase API Key is abcdefg1234 and your API Secret is zxcvbasdf1234qwer, then in the credentials.py file you should have:

coinbase_key = 'abcdefg1234'
coinbase_secret = 'zxcvbasdf1234qwer'

Next, you need to get the GDAX API Key details. Sign into GDAX and go to https://www.gdax.com/settings/api Under Permissions, check "View" and then click "Create API Key." Enter the two-factor authenication code if you are asked for it, and then put the API key, the API secret, and the passphrase in the credentials.py file. Note that the passphrase is located in a text box directory under the Permissions area where you checked "View." If the API key is qwerty123, the API secret is poiuyt999, and passphrase is mnbvc000, then you should finish filling out the credentials.py file (note that your keys, secrets, and passphases could be longer or shorter than the examples given here):

coinbase_key = 'abcdefg1234'
coinbase_secret = 'zxcvbasdf1234qwer'
gdax_key = 'qwerty123'
gdax_secret = 'poiuyt999'
gdax_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.

Once the five variables (coinbase_key, coinbase_secret, gdax_key, gdax_secret, and gdax_passphrase) are set in credentials.py and the Bittrex fullOrders.csv has been moved into the CryptoTaxes directory, you can run the program at the command line:

python CryptoTaxes.py

When you run this, you will be prompted to enter your full name and then your social security number (these are used only for filling out the tax forms). The filled out form 8949s will be in a new directory called PDFs.

Legal disclaimer: This is not indended to provide tax, legal, or accounting advice. This material has been prepared for informational purposes only, and is not intended to provide, and should not be relied on for, tax, legal or accounting advice. You should consult your own tax, legal and accounting advisors before engaging in any transaction.

If you find this code useful, feel free to donate!

BTC: 1LSTU2pNgeZKeD2CiTNPJRgcnhaUAkjpWJ

LTC: Ld6CF6LSy3K2PVpdm7qHbpFTarcVxdzE3L

About

This will make a TurboTax import file (txf) and fill out IRS form 8949 with Coinbase, GDAX, and Bittrex data

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages