Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add native CSV output format that contains full data export for every transaction #564

Open
pharr117 opened this issue Sep 24, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@pharr117
Copy link
Collaborator

The CSV API should have a non-tax software/native format that outputs the entire dataset for each transaction/message instead of formatting it into a specific tax-software format.

@pharr117 pharr117 added the enhancement New feature or request label Sep 24, 2024
@pharr117
Copy link
Collaborator Author

Here are some example PRs that added new formats:

  1. Esaari1/cryptotaxcalculator csv parser #304
  2. Add cointracker and TaxBit CSV parsers #234

The interface for the parser was updated after the addition of these old parsers, here is the PR that changed it:

  1. Patch/csv parsers various message types #527

Here is the CSV parser interface definition:

  1. type Parser interface {
    InitializeParsingGroups()
    ProcessTaxableTx(address string, taxableTxs []db.TaxableTransaction, taxableFees []db.Fee) error
    ProcessTaxableEvent(taxableEvents []db.TaxableEvent) error
    GetHeaders() []string
    GetRows(address string, startDate, endDate *time.Time) ([]CsvRow, error)
    TimeLayout() string
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: No status
Development

No branches or pull requests

1 participant