To calculate your profits/losses from trading using margin, you'll need to download (export) your Ledger history.
In your Ledger history, there are three values you need to look for:
Entry type | Column | |
---|---|---|
Margin profits/losses (not including fees) | Margin | Amount |
Margin opening & trading fees | Margin | Fee |
Margin rollover fees | Rollover | Fee |
Note: Ledger entries where "type" is "Trade" only apply to non-margin trades.
1. Profit/Loss
What is it? Margin profit/loss is determined by the size of your spot position on margin and the price difference between the price when you opened the position and the price when you closed the position. Profits/losses are not directly determined by your level of leverage.
How to count it? For all Ledger entries where the "type" is "Margin", sum up the values in the "Amount" column.
If amount =0, it's a trade that opened a spot position on margin (and therefore no profit/loss yet).
If amount is >0 (positive), it's a profit from closing all or part of a spot position on margin.
If amount is <0 (negative), it's a loss from closing all or part of a spot position on margin.
Note: profit/loss amounts do not include fees.
2. Opening & trading fees
What is it? Opening and trade fees are charged when your currency purchase or sale order is executed (matched with another client's order) and a spot position on margin is opened or closed as a result.
How to count it? For all Ledger entries where the "type" is "Margin", sum up the values in the "Fee" column.
Note: The Margin Opening fee and Trading Fee are distinct fees charged at the same time, so they have a combined ledger entry. [The trading fee uses the trading fee schedule and the margin opening fee depends on which pair is being traded.] The rollovers fees are charged separately and will have their own ledger entry.
3. Rollover fees
What is it? Rollover fees are charged every 4 hours that your spot position on margin is held open.
How to count it? For all Ledger entries where the "type" is "Rollover", sum up the values in the "Fee" column.
Note: The "amount" column should always be 0 for rollover fees.
Example
Disclaimer
IMPORTANT: Countries differ on how cryptocurrency transactions, trades and holdings are taxed (if at all) and how they view cryptocurrencies in general (e.g. as money, as property, as a commodity, etc). Please consult a local accountant, tax lawyer and/or government official for advice.