Comments (24)
Finally added a donations button, you can now donate via PayPal to the project. All donations are gratefully received!
from bittytax.
Thanks Scott! Donated! Have a great year!
from bittytax.
Hi @PhilT, it's possible that HitBTC have changed the output format.
Please can you post the first line (headers) of each CVS file here. If you use the -d option when you run it, it will output the header matching.
from bittytax.
Transactions:
header: row[1] TRY: ['Email', 'Date (UTC)', 'Operation id', 'Type', 'Amount', 'Transaction hash', 'Main account balance', 'Currency']
Trades:
header: row[1] TRY: ['Email,Date (UTC),Instrument,Trade ID,Order ID,Side,Quantity,Price,Volume,Fee,Rebate,Total']
Thanks.
from bittytax.
I've created a new branch fixes/issue-26-hitbtc-parser with a fix.
Are you able to test it?
from bittytax.
I just cloned the repo, ran .\setup.py install
and then bittytax_conv
but get the the same errors.
UPDATE: Forgot to switch branches of course! One sec.
from bittytax.
Nope, same error, even when installing from correct branch.
from bittytax.
Can you do bittytax_conv --help
does it show 4 entries for HitBTC like below?
HitBTC
'Email,Date (UTC),Instrument,Trade ID,Order ID,Side,Quantity,Price,Vo...
'Date (UTC),Instrument,Trade ID,Order ID,Side,Quantity,Price,Volume,F...
'Email,Date (UTC),Operation id,Type,Amount,Transaction hash,Main acco...
'Date (UTC),Operation id,Type,Amount,Transaction Hash,Main account ba...
from bittytax.
Ha! Uninstalled pip version then ran install on cloned version. Now showing 4 entries
from bittytax.
Now I get this:
file: ..\..\Downloads\HitBTC-Transactions.csv matched as "HitBTC D,W"
file: ..\..\Downloads\HitBTC-Trades.csv matched as "HitBTC T"
Traceback (most recent call last):
File "C:\Python27\Scripts\bittytax_conv-script.py", line 11, in <module>
load_entry_point('BittyTax==0.4.2', 'console_scripts', 'bittytax_conv')()
File "C:\Python27\lib\site-packages\bittytax-0.4.2-py2.7.egg\bittytax\conv\bittytax_conv.py", line 94, in main
DataFile.read_csv(filename)
File "C:\Python27\lib\site-packages\bittytax-0.4.2-py2.7.egg\bittytax\conv\datafile.py", line 129, in read_csv
data_file = DataFile(cls.FORMAT_CSV, filename, parser, reader)
File "C:\Python27\lib\site-packages\bittytax-0.4.2-py2.7.egg\bittytax\conv\datafile.py", line 35, in __init__
data_row.parse(parser, filename)
File "C:\Python27\lib\site-packages\bittytax-0.4.2-py2.7.egg\bittytax\conv\datarow.py", line 25, in parse
parser.row_handler(self, parser, filename)
File "C:\Python27\lib\site-packages\bittytax-0.4.2-py2.7.egg\bittytax\conv\parsers\hitbtc.py", line 32, in parse_hitbtc_trades2
buy_asset=in_row[2].split('/')[2],
IndexError: list index out of range
from bittytax.
I've just pushed a fix for this, please can you download the branch again.
from bittytax.
No errors this time. But importing into Recap I get negative fee amounts.
from bittytax.
Is the fee amount negative in the generated CSV file or is this what Recap shows?
The fee should be mapped from the original export CSV file without modification, is the fee negative in the export CSV file?
from bittytax.
Yep, some of the fees are negative.
from bittytax.
Just looked at the HitBTC fees, you must have done a lot of trading to get negative fees?! :)
I will have to update the parser to handle this. A GIFT transaction will have to be added for each negative fee in addition to the trade.
from bittytax.
Awesome! Thanks so much for your efforts.
from bittytax.
Don't think I've really done that much. Maybe a bit here and there. Fills do add up though. The amounts were sizable. I've not done 50K Bitcoin though. That cannot be right.
from bittytax.
You do get rebates for providing liquidity though so could be that.
from bittytax.
Can you confirm that if you get a rebate, the matching amount is show as a negative fee, or is the rebate in addition, can you post an example?
from bittytax.
This? https://www.reddit.com/r/CryptoTradingFloor/comments/9pckvm/hitbtc_fees_rebate_system/
from bittytax.
In your trades export file does it have any rebates shown? Are you okay to share an some example row(s) from your file, email me privately if you prefer.
from bittytax.
from bittytax.
Hey @PhilT, glad you got your taxes all sorted, keep me posted if you get any answers from HitBTC.
Thanks for the offer, still need to get a donations address sorted, but please follow BittyTax on Twitter and YouTube and spread the word! Have a great Christmas break too!
from bittytax.
Thanks @PhilT this is the first donation to the project, means a lot to me! Wishing you all the best.
from bittytax.
Related Issues (20)
- Error with Bittytax 0.5.3.dev0 HOT 2
- Nexo time / date format changed HOT 1
- adalite.py typo HOT 2
- Process stuck due to memory and disk usage HOT 6
- Accounting tool not processing sheets correctly HOT 29
- bscscan has changed its datetime format HOT 4
- binance unrecognised transactions HOT 8
- Can't convert Binance US yearly tax report HOT 22
- How to upgrade unreleased version? HOT 2
- Imports from relative paths fail HOT 4
- Bitpanda CSV format has changed HOT 2
- Koinly USA header HOT 3
- Kraken format change HOT 12
- Crypto.com change of Transaction Kind HOT 3
- Add support for ByBit?
- Crypto.com bittytax_conv: new transaction kinds HOT 2
- Problem with STRK symbol - This has two token associated with it, how to define the correct one?
- Unnecessary price lookup for Gift-Spouse and Charity-Sent HOT 1
- ImportError: attempted relative import with no known parent package
- year-end balance and average annual stock. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bittytax.