加密货币的税务估计员。
yabc的Python项目详细描述
yabc-比特币税务计算器
yabc将加密货币交易、挖掘和消费数据转换为 可以发送给税务机关的报告。
yabc是https://costbasis.report/背后的税务计算器。
$ pip install yabc
$ python -m yabc ./testdata/synthetic_gemini_csv.csv ./testdata/synthetic_coinbase_csv.csv
13 transactions to be reported
<Sold 0.76 BTC for 236 total profiting -155. Adjustment 0>
<Sold 1 BTC for 311 total profiting 29. Adjustment 0>
<Sold 2 BTC for 622 total profiting 546. Adjustment 0>
<Sold 2.5 BTC for 777 total profiting 666. Adjustment 0>
<Sold 0.04290503 BTC for 594 total profiting 572. Adjustment 0>
<Sold 0.35608537 BTC for 4929 total profiting 4746. Adjustment 0>
<Sold 0.00100960 BTC for 14 total profiting 13. Adjustment 0>
<Sold 0.50000000 BTC for 7032 total profiting 6775. Adjustment 0>
<Sold 0.03500000 BTC for 496 total profiting 478. Adjustment 0>
<Sold 0.03518002 BTC for 498 total profiting 480. Adjustment 0>
<Sold 0.03447186 BTC for 488 total profiting 470. Adjustment 0>
<Sold 0.01057786 BTC for 150 total profiting 145. Adjustment 0>
<Sold 0.03500000 BTC for 496 total profiting 478. Adjustment 0>
total gain or loss for above transactions: 15243
total basis for above transactions: 1400
total proceeds for above transactions: 16643
非交换交易(如采矿和购买)支持临时CSV格式。
yabc还包括一组http端点,允许存储更多的数据 在数据库中永久保存,默认为sqlite。也支持Postgres作为后端。
待办事项
- []TOdo:支持BTC/ETH等投币交易。
- []TOdo:启用从更多交换机导入(二进制)
- []TOdo:添加更好的历史价格查找支持;它现在是一个存根,返回$17
安装,使用virtualenv
git clone git@github.com:robertkarl/yabc.git
cd yabc
virtualenv -p python3 venv
. venv/bin/activate
python setup.py install
注释
受python模块的源代码和测试布局启发的文件结构和setup.py用法 sshuttle和 flask。
注意事项
请注意,yabc不是税务服务或税务会计软件,而是 没有保证。有关详细信息,请参阅许可证文件。
亚行与上述任何交易所或公司均无关联 包括但不限于双星、铸币厂或双子座。任何商标都是 各自所有者的财产。