All Collections
Troubleshooting
General
I get an error calculating advanced metrics when holdings go below zero
I get an error calculating advanced metrics when holdings go below zero

Error in calculating gains

Advait avatar
Written by Advait
Updated over a week ago

If you see the following error, it means Delta is unable to calculate the cost basis and therefore the profit/loss as well. This occurs either because your holdings are dipping below 0 temporarily or because the cost basis is not known for coins deposited with the source set to "Other / Unknown" or "Other Wallet".

You can find the transaction that causes the holdings to dip below zero by scrolling through the list of transactions and finding those with the following error:

Note: deposits with the source set to "Other / Unknown" or "Other Wallet" do not have a cost basis associated with them and so they do not contribute to holdings of Delta's cost basis calculator. Below are some examples of when you will get this error and how to correct it.

Example 1:

  • A deposit transaction of 0.1 BTC from "Other / Unknown" followed by a Sell transaction.

  • The deposit of 0.1 BTC does not have any cost associated with it so we cannot compute realized gains and cost basis correctly which will lead to the error.

  • Fix: Add appropriate transactions to indicate where this 0.1 BTC came from. If it was bought elsewhere and then transferred, add the buy transaction and a withdrawal from that source.

Example 2:

  • A Buy transaction of 1 ETH with proper cost basis but then a Sell transaction of 2 ETH.

  • More is being sold than is available leading to a negative balance. Here, Delta does not have the cost basis for the extra ETH sold and thus you will see the error.

  • Fix: Correct the transactions so that your holdings don't dip below 0 at any point in time.

Example 3 (relevant only to Bitfinex users):

  • Bitfinex often deducts fees or amounts from coins for more than is available and then performs transactions known as settlements to correct this.

  • If you have a Bitfinex exchange connection, your coin balances may dip below 0 at times.

  • Fix: Edit the settlement transactions' time so that it is before the trade that put the balance below 0.

PRO TIP: If you ever get this error, go through your transactions and find the transaction(s) with the error. Follow the examples above on how to fix this error.

PRO TIP 2: If you followed the steps above and cannot find out what is causing the error, please write to us from within the app and we will help you further (settings -> support -> contact support). Please let us know which coin you see this error for in the email.

Did this answer your question?