-
-
Notifications
You must be signed in to change notification settings - Fork 111
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
Binance Futures - Add Coin-M Futures #369
Comments
Currently, the report format used by the Bittytax parser, when downloaded from Binance, fails to list "funding fee" income from Coin M Futures. I have pointed out this error to Binance. Who have accepted that it is indeed their error. This report used by the Bittytax parser can be downloaded from Binance here by accessing the arrow at the top right hand side of the screen which leads you to "Export Transaction Records" https://www.binance.com/en/my/wallet/history/deposit-crypto You can obtain the funding fee information for Coin M futures either by accessing the Binance API or through a different area of the website. Either way, the information comes in a different format and can only be obtained separately for Coin and USD margined futures. The required info can be obtained from here https://www.binance.com/en/my/orders/futures/transactionhistory but in the following format: ` <style> </style>
Whether they will correct the fault I can not say but currently, if you hold Coin Margined futures, the CSV file required by the Bittytax parser will not suffice for tax purposes with this missing information. |
Hi @AnthonyFJGarner, thanks for investigating this with Binance. I've got a fix for the first part, the "Coin-M Futures" account name, etc. Are you able to email me privately an example of the futures transaction history CSV file? I'm assuming the "FUNDING FEE" type should map to a BittyTax |
Note comments on this other issue on the question of Funding Fee and CGT. I don't know the answer but would guess Funding Fee is probably "income" which has to be accounted for on a daily basis? In any event it's not margin interest and I doubt that it is capital gains. If it is income, we have a difficulty with the Kucoin parser and the Kucoin account statements which only include Funding Fee on the exit date of the futures position rather than on a daily basis. Crypto Futures - tax calculation of capital gains #22 |
Hi @AnthonyFJGarner, thanks for sharing the Binance exports files privately. Just to confirm my understanding of the issue, for "Coin-M Futures" the "Funding Fee" operation is NOT included in Statements export, whereas for "USD-M Futures" it is? To get the "Coin-M Futures" funding fees we have to use the Futures transaction history CSV file in addition, which contains this as the "FUNDING_FEE" type. Questions:
|
I wonder if we should talk? It's quite difficult to explain all this. I have had over 2 years of getting to grips with it, doing endless back testing before actually trading. I'll come back on how to distinguish Coin from USD margin payment when I have had a look at the documents again. But the funding fee is a method whereby a perpetual futures contract is prevented from straying too far from the spot rate. With dated, traditional contracts they are closed out at the spot rate when they expire so they are tethered to the spot rate in this way. Since perpetuals never expire they have to be forced closer to the spot rate by means of funding payments. If the perpetual is too far above spot, the holder of a long position will make an interest payment to the holder of a short position. If the perpetual is to far below spot, the holder of a short will make a funding payment to the holder of a long position. Thus for any holder of a perpetual he will both make and take funding fees (IE sometimes he will receive a payment, sometimes he will have to make one.) |
So whether I am short or long I can expect both credits and debits depending on market conditions. |
As I will report in due course, the situation gets even more amusing. Funding fees on Coin Margin are paid out in coin but are calculated in USDT or USDC quite often. That's the case at Kucoin for instance. So receipt of a funding payment is a receipt of a small amount of the appropriate coin. Sorry to rant on. But of course I'm having to look at all this very carefully for tax reporting purposes. |
BittyTax/src/bittytax/conv/parsers/binance.py
Line 324 in d376917
if row_dict["Account"] in ("USDT-Futures", "USD-MFutures", "USD-M Futures"):
Need to include "Coin-M Futures"
See Binance Statement below:
`
<style> </style>`
The text was updated successfully, but these errors were encountered: