Binance FIFO Einzeltransaktionsaufstellung für den Handel mit Kryptowährungen Steuer Tool (german tax trading single transaction lineup for crypto currencies)
Thanks for sharing your project, good job.
Nevertheless, I try it with Binance, and the format is quite different to what the script expect.
my trade file is a csv file. (If I save the file into Excel, somehow the date are saved into Timestamp format and no more 'str' and this mess up the sorting.
binance_csv_handler.py line 57.
transactions = sorted(transactions, key=lambda tx: tx[0])
I then use read_csv from Pandas instead. This seems fine.
The columns are very different, I started to change the columns but then figure it out that this will probably not work for Trade.
deposit_withdrawal_input_column_names = {'Date': 0, 'Coin': 1, 'Amount': 2, 'TransactionFee': 6, 'Address': 7,
'TXID': 1, 'SourceAddress': 7, 'PaymentID': 7, 'Status': 3}
trading_input_column_names = {'Date(UTC)': 0, 'Market': 1, 'Type': 2, 'Price': 3, 'Amount': 4,
'Total': 5, 'Fee': 6, 'Fee Coin': 7}
This is the format I got for the "trade":
<style>
</style>
UTC_Time
Account
Operation
Coin
Change
Remark
1/27/2021 14:34
Spot
Deposit
EUR
xxxx
1/28/2021 20:47
Spot
Buy
BTC
xxxxx
1/28/2021 20:47
Spot
Transaction Related
EUR
xxxxx
1/28/2021 20:47
Spot
Fee
BTC
xxxxx
1/28/2021 20:47
Spot
Fee
BTC
xxxxx
1/28/2021 20:47
Spot
Transaction Related
EUR
xxxxx
1/28/2021 20:47
Spot
Buy
BTC
xxxxx
Which is quite different from a 1 line trade you had.
I am happy to support and help. I have relatively good python skills.
I just did not wanted to start from scratch if there is open source project out there.