The scripts converts export files from kraken/binance exchange into the cointracer format. Cointracer is a free software used to create tax reports for cryptocurrency trading. The conversion includes major coin pairs, see chapter supported pairs (bitcoin, ethereum, litecoin, link, uni, dash, xrp, dai, usdt, dot and more). Yet it does not convert margin positions.
The scripts were tested on Win10 Powershell 5.1.
- Open your powershell ISE
- Open convertkraken2cointracer.ps1 or convertbinance2cointracer.ps1
- Edit lines, that specify the infile and outfile
- Run the script
- Use the outputfile as import in cointracer
- Log into your kraken account
- Go to Trading History
- Export your historic trades with all columns
- Download the export file with historic trades to your computer
"txid","ordertxid","pair","time","type","ordertype","price","cost","fee","vol","margin","misc","ledgers" "45RRZM-MJNVR-6EP8","D7RETL-10IXJ-ZZYRYF","XXBTZEUR","2017-04-02 07:31:31.8234","buy","limit",7813.40000,625.07200,1.06262,0.02000000,312.53600,"","QPWERT-LOPF4N-KHC4EM,UZUT11-POZSCI-3R52G"
Reference;DateTime;Info;SourcePlatform;SourceCurrency;SourceAmount;TargetPlatform;TargetCurrency;TargetAmount;FeeCurrency;FeeAmount 45RRZM-MJNVR-6EP8;02.04.2017 07:31:31;XXBTZEUR buy;kraken;EUR;77.42;kraken;BTC;0.01000000;EUR;0.20129
XXBT XETH XLTC XXMR XLMZ XXRP ZEUR ZUSD XZEC ATOM IOTA USDT USDC WAVE LINK LOOM AAVE AION ALGO SCRT RUNE COMP DASH
SUSHI STRAX