Takes one file as input, a raw "binance.us" distribution file, and transforms it to one where all the income records for a particular asset is consolidated to one record a month. So if the input file is named abc.csv the final output file will be abc.cttf.csv, which is a "consolidated TokenTax file" in CSV.
You can now use vimdiff or other program to look at the differences in the *.result.txt files. Specifically looking at the asset list quantity column.
What I need to do is add a new output option or new commands which output the asset record "asset" and "quantity" fields in a CSV file. The values in these two fields should be consistent with the original data and you will be able to do a binary compare of the CSV file and they should be identical.
Right now I can validate transformations by using
vimdiff
to compare displayed output after processing.For example in b.us.cttf.sh:
Takes one file as input, a raw "binance.us" distribution file, and transforms it to one where all the income records for a particular asset is consolidated to one record a month. So if the input file is named
abc.csv
the final output file will beabc.cttf.csv
, which is a "consolidated TokenTax file" in CSV.The full list of files created would be:
You can now use
vimdiff
or other program to look at the differences in the*.result.txt
files. Specifically looking at the asset list quantity column.What I need to do is add a new output option or new commands which output the asset record "asset" and "quantity" fields in a CSV file. The values in these two fields should be consistent with the original data and you will be able to do a binary compare of the CSV file and they should be identical.