BittyTax icon indicating copy to clipboard operation
BittyTax copied to clipboard

Binance: missing "Large OTC trading" operation

Open doruchan opened this issue 4 years ago • 9 comments

Hi there,

The Binance parser doesn't understand the "Large OTC trading" operation, which is how a trade is being reported by the "Generate all statements" function in Binance. An example from my report:

UTC_Time | Account | Operation | Coin | Change | Remark
2021-03-03 03:46:40 | Spot | Large OTC trading | BNB | 0.40754612
2021-03-03 03:46:40 | Spot | Large OTC trading | BTC | -0.002

Thanks,

Dora

doruchan avatar Nov 14 '21 00:11 doruchan

It's also not recognising the "Deposit" operation, using the same statement. Example:

UTC_Time | Account | Operation | Coin | Change | Remark
2021-02-26 02:28:46 | Spot | Deposit | BTC | 0.00775438

doruchan avatar Nov 14 '21 00:11 doruchan

Hi @doruchan,

The statements export is only used for commissions, airdrops, bnb conversions, interest/staking.

For trades, crypto/fiat deposits, please use the different export formats as described here: https://github.com/BittyTax/BittyTax/issues/141#issuecomment-872207621

These exports provide more accurate data to decode that the statements format, I'll be adding a wiki page to cover this shortly.

Please let me know if OTC trades are included in the trades history export correctly?

nanonano avatar Nov 14 '21 12:11 nanonano

Hey @nanonano,

unfortunately Trade History is not showing this operation, but I found it in the "Convert History" section. Wouldn't be okay to support this from the "Generate all statements" document, since it's in there?

doruchan avatar Nov 15 '21 04:11 doruchan

Thanks for confirming, if it's only available in the Statements export, I'll get it added.

nanonano avatar Nov 15 '21 10:11 nanonano

Not sure if you saw it, but I've opened a PR for this issue: #192

doruchan avatar Nov 15 '21 18:11 doruchan

Hi @doruchan, this has been fixed by commit: https://github.com/BittyTax/BittyTax/commit/78881135f28c8edae551fd8234fd441ee596f41b, please can you re-test.

nanonano avatar Feb 14 '22 16:02 nanonano

Hi @doruchan just realised "Large OTC trading" trades can be exported via the Convert History which was added for issue #208.

I'm going to remove the handling of "Large OTC trading" from the Statements parser to prevent double accounting, the Convert History is a safer way to handle these trades since the buy and sell components are shown together in the same row of data.

nanonano avatar Feb 16 '22 09:02 nanonano

It's been removed by this change https://github.com/BittyTax/BittyTax/commit/677ea19c0659f76a1a718912a997fd044bfe9511.

nanonano avatar Feb 16 '22 18:02 nanonano

Thanks @nanonano. The main drive for me for adding this to the Statement parser is that you can generate it for the whole year by pressing 1 button, instead having to go to each history section and have to export only up to 3 months of statements.

doruchan avatar Feb 16 '22 21:02 doruchan