CryptoTax
Python tool for calculating taxes on cryptocurrency
Install / Use
/learn @ErikBjare/CryptoTaxREADME
CryptoTax
Do you need to file your taxes on crypto gains? Spoiler alert: It sucks.
This is an attempt to fill those tax forms for you automatically (or at least help you considerably) from exchange-exported trading data.
NOTE: This was primarily developed for use to file taxes in Sweden, which might lead to differences in how certain things are calculated or approached.
Update 2021: This repo is now deprecated and in maintenance mode. This is due to the emergence of DeFi and the unique challenges it poses for calculating taxes, I've therefore given up on ever being able to calculate my crypto taxes on my own, so I've given up and hired professionals to do the job instead. If you've messed around in DeFi like I have, I recommend you do the same. For Swedes I recommend https://monetax.se, they seem to know their stuff (from my limited experience with them so far).
WILL CONTAIN BUGS, ALWAYS CHECK THE END RESULT MANUALLY
Usage
Install dependencies using poetry: poetry install
Some commands require price history to function, you can download it by running: make get_data
Run in the poetry-managed virtualenv: poetry run cryptotax
Resources
- Kryptovalutor (Skatteverket)
- Så beskattas kryptovalutor (kryptovalutor.se)
Related Skills
node-connect
336.5kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
82.9kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
336.5kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
82.9kCommit, push, and open a PR
