@koinly Problem of using sent and received from pool is that with margin borrow, you still start by borrowing and you have a negative balance in the pool.
Currently, Koinly treats this as a Missing purchase history and gives it a cost basis of $0.
My solution was to add deposits and withdrawals for the loan payments and repayment. Added a txid so that it doesn’t get connected with another tx. And then I might need to adjust the cost basis of the borrow and sell.
Has anyone figured this one out yet? Jiecut is quite right. Sending and receiving from pool is a missing Transaction.
Is this something that’s going to be fixed? Or a better work around without creating a tax event?
For the cost of the subscription this should have been fixed last year when brought up
ok, I found (I think) a way to make it work,
Hypothesis: Between binance API and Koinly, there is an integration issue where Koinly does not recognize margin operations as ‘loan + security’ for a buy or sell.
And based on this article: "Missing purchase history for XYZ" | Koinly Help Center
I think that adding the operation of deposit/withdraw for the loan amount would solve the problem.
Pardon this late message, and thank you all who have previously contributed here. We’re making an effort to have more presence, so I’ll post what the current approach is for future curiosity.
Margin Trades (CSV)
The ‘Transaction History’ file will include most of your data but margin trades are not included (reasons unknown).
The Transaction History file will include all other margin activity such as loans and repayments but not the trades themselves.
To export your Cross Margin Trades, click here or go to Orders > Margin Order > Trade History > Export Trade History
For Isolated Margin Trades, you can go to the same page but select the ‘Isolated’ option at the top and then Export Trade History
The Margin Trade history does not have the same limitations as the Transaction History export so you can export up to 1 year of data in each file.
After exporting your entire margin trade history for both Cross Margin and Isolated Margin, you can import the files to your Binance wallet on Koinly.