CoinLedger supports tax calculations for margin trades and allows you to import some margin transactions automatically. If we don't yet support automatic imports of margin transactions from the exchange you're using, you can import your gains and losses from margin trades using the CoinLedger app. Read below for more information on how to import your margin transactions.
Which exchanges can I import my margin transactions from?
You can import your margin transactions from any exchange using one of two import methods. Currently, CoinLedger supports automatic imports of margin transactions from Kraken, with support for margin trades on additional exchanges going live in the future. In the meantime, you can import your gains and losses from margin trades from any exchange into CoinLedger manually using the Add Transaction button on the Transactions page. Find step-by-step instructions for this process here.
To import your margin transactions from Kraken, please see the import instructions in this guide. Please note that we currently only support importing margin transactions from Kraken through Kraken's API import method. Importing margin transactions through Kraken's CSV files into CoinLedger is not possible at this time.
What is margin trading?
When you trade cryptocurrency on margin, you borrow money from exchanges or other brokers to carry out trades. To better understand the concept of margin trading, imagine that you have 1 ETH worth $3,000. If you are using an exchange that offers 3x leverage, you can use your ETH as collateral to borrow up to $9,000. However, if you lose money on a trade and you no longer meet the platform’s minimum margin trading requirements, your collateral could be liquidated.
How are margin transactions taxed?
Although the IRS has not yet provided explicit guidance on how margin trades for crypto should be taxed, we can infer the proper tax treatment from similar asset classes like equities. Generally, profits and losses generated from margin trading are reportable as capital gains and losses, similar to other cryptocurrency disposals. You only have a taxable event when you "realize" a gain or loss from your crypto margin trading.
If you fall under an exchange’s minimum requirements for margin trading, it’s possible that your collateral will be liquidated to cover the exchange’s costs. Margin trading liquidations are considered a taxable event subject to capital gains tax. CoinLedger makes the complicated process of calculating your gains and losses from margin trades simple. To learn more about the taxation of margin transactions, please see this guide.
How can I manually import my margin transactions into CoinLedger?
If CoinLedger does not yet support automatic imports of margin transactions from an exchange you use, you can import those manually into the CoinLedger app.
Step 1
First, head to the Transactions page. Then, select Add Transaction.
Step 2
CoinLedger allows you to import Margin Gain transactions into CoinLedger. A margin gain transaction is any gain or loss obtained when closing (or while holding) a margin position. We recommend entering a standalone Margin Gain transaction to represent your gains or losses from margin trades. You should only enter a Margin Gain - you do not need to enter a transaction showing you opening or closing a position.
To proceed, under Classification, select Margin Gain.
Step 3
Now, it's time to manually enter your Margin Gain or Loss. For this step, you will need to navigate to the exchange or platform where your margin trades occurred.
For example, if you traded on margin on KuCoin, you would first navigate to your KuCoin account and look at the profits and losses for each of your margin transactions. The next step you take here will depend on whether your incurred a gain or loss on the margin trade you are trying to enter.
If you took a loss on a given trade, you would manually add a Margin Gain transaction to your account via the steps in Step 2.
Then, you would enter the amount you lost under the Margin Loss field, as shown below. In this case, I lost 200 XLM on this margin trade.
Fill out the rest of the required fields according to the prompts shown on this menu. Then, press Save. Now you will see a new Margin Gain transaction on your account showing a capital loss, representing how much you lost on a particular margin trade.
If instead you profited on a margin trade, you would repeat the steps shown in Step 2, but would enter the amount you gained under the Margin Gain field, as shown below. Now you will see a new Margin Gain transaction on your account showing a capital gain, representing how much you profited on a particular margin trade.
While CoinLedger provides you with all the tools you'll need to manually input such transactions into our software on a DIY basis, we ultimately recommend consulting with a tax professional before doing so.
Have any further questions about importing margin transactions into CoinLedger? Reach out to our team any time at [email protected] :)