Coder Social home page Coder Social logo

Comments (24)

nanonano avatar nanonano commented on July 21, 2024 1

Finally added a donations button, you can now donate via PayPal to the project. All donations are gratefully received!

from bittytax.

PhilT avatar PhilT commented on July 21, 2024 1

Thanks Scott! Donated! Have a great year!

from bittytax.

nanonano avatar nanonano commented on July 21, 2024

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.

PhilT avatar PhilT commented on July 21, 2024

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.

nanonano avatar nanonano commented on July 21, 2024

I've created a new branch fixes/issue-26-hitbtc-parser with a fix.

Are you able to test it?

from bittytax.

PhilT avatar PhilT commented on July 21, 2024

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.

PhilT avatar PhilT commented on July 21, 2024

Nope, same error, even when installing from correct branch.

from bittytax.

nanonano avatar nanonano commented on July 21, 2024

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.

PhilT avatar PhilT commented on July 21, 2024

Ha! Uninstalled pip version then ran install on cloned version. Now showing 4 entries

from bittytax.

PhilT avatar PhilT commented on July 21, 2024

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.

nanonano avatar nanonano commented on July 21, 2024

I've just pushed a fix for this, please can you download the branch again.

from bittytax.

PhilT avatar PhilT commented on July 21, 2024

No errors this time. But importing into Recap I get negative fee amounts.

from bittytax.

nanonano avatar nanonano commented on July 21, 2024

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.

PhilT avatar PhilT commented on July 21, 2024

Yep, some of the fees are negative.

from bittytax.

nanonano avatar nanonano commented on July 21, 2024

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.

PhilT avatar PhilT commented on July 21, 2024

Awesome! Thanks so much for your efforts.

from bittytax.

PhilT avatar PhilT commented on July 21, 2024

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.

PhilT avatar PhilT commented on July 21, 2024

You do get rebates for providing liquidity though so could be that.

from bittytax.

nanonano avatar nanonano commented on July 21, 2024

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.

PhilT avatar PhilT commented on July 21, 2024

This? https://www.reddit.com/r/CryptoTradingFloor/comments/9pckvm/hitbtc_fees_rebate_system/

from bittytax.

nanonano avatar nanonano commented on July 21, 2024

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.

PhilT avatar PhilT commented on July 21, 2024

from bittytax.

nanonano avatar nanonano commented on July 21, 2024

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.

nanonano avatar nanonano commented on July 21, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.