Coder Social home page Coder Social logo

Comments (7)

viktortnk avatar viktortnk commented on July 21, 2024 1

Thanks. sent an email

from bittytax.

nanonano avatar nanonano commented on July 21, 2024 1

New branch added for Kraken parser (https://github.com/BittyTax/BittyTax/tree/features/kraken-parser).

This parser supports both the "trades" and "ledger" exports. The ledger data file is used only for deposits/withdrawals, trades are ignored and taken from the trades data file which contains more detail.

from bittytax.

curtailment avatar curtailment commented on July 21, 2024 1

Thanks @nanonano it's working well now: recognises my Kraken trades csv file and 'USDC' shows up as the buy asset.

from bittytax.

nanonano avatar nanonano commented on July 21, 2024

Hi @viktortnk,
At the moment Kraken is not supported.
You can see all the supported parsers using the help command.
bittytax_conv --help
I've had someone else ask for this too. I've not used Kraken myself so don't have any example data files to work the parser. If you are willing to share your exported data for this, please email me privately. Thanks.

from bittytax.

curtailment avatar curtailment commented on July 21, 2024

Hello, I tested out your new parser with my data, works perfectly for the deposits/withdrawals but it doesn't recognise my trades file.
WARNING File format is unrecognised: kraken_2020-11-25_trades.csv
After looking at your commit, I think the issue is that my file doesn't have as many columns as your code is expecting.

The first line of my trades file from Kraken (obtained from https://www.kraken.com/u/history/export) is:
"txid","ordertxid","pair","time","type","ordertype","price","cost","fee","vol","margin","misc","ledgers"

I'm not sure why I don't have the post... or c... columns. Perhaps they are related to futures or margin trading which I haven't done.

from bittytax.

curtailment avatar curtailment commented on July 21, 2024

I have truncated bittytax/conv/parsers/kraken.py line 98 to
['txid', 'ordertxid', 'pair', 'time', 'type', 'ordertype', 'price', 'cost', 'fee', 'vol','margin', 'misc', 'ledgers']
Then run again and it works.

The output is mostly correct except my trades in the USDC/USD market show up as assets C and USD.

Example line from my CSV file:
"TZFNJN-ZX7AI-AZFWOJ","O5IMKL-MMYWN-7LQ6I4","USDCUSD","2020-10-08 17:22:57.9366","buy","limit",1.00010000,126.72853389,0.25345707,126.71586230,0.00000000,"","LL4VBF-JH2DU-OG3P6Q,LDMNZX-GYVSO-GOQY3S"
Which BittyTax has converted to:
Trade | 126.7158623 | C |   | 126.72853389 | USD |   | 0.25345707 | USD |   | Kraken | 2020-10-08 17:22:58

Interestingly, trades in the USDCEUR market have converted correctly to USDC and EUR.

from bittytax.

nanonano avatar nanonano commented on July 21, 2024

Hi @curtailment, I've just pushed a fix for this in the (https://github.com/BittyTax/BittyTax/tree/features/kraken-parser) branch (f85ad0a) are you able to test it?

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.