Skip to main content

How does chain.report calculate prices?

This is how chain.report calculates its coin and token prices.

Updated over a week ago

The following price calculations apply:

  1. Coin and Token Prices

    are determined minute-by-minute via the CoinMarketCap interface. The ticket prices of the respective exchanges are explicitly not used for this. Because:

    1. Not every exchange offers a minute-by-minute ticker.

    2. The effort to connect all tickets from exchanges is immense, especially regarding the maintainability and the dependency of the text tool on many external tickers.

    3. Using CoinMarketCap prices is standard in the market.

    4. Using prices from different exchanges can lead to significant price differences.

  2. Prices of DFI, JAV, and decentralized tokens, such as dTSLA

    are calculated using two different mechanisms:

    a) The DEX pool ratios are determined, which correspond to the real market prices including the stabilization fee. These data are read directly from the blockchain by using the price data from swaps.

    b) Through the Javsphere Pyth Price Oracle. You can find technical details here.

    If there are no swaps available at a desired time due to lack of volume on the blockchain, no price can be determined.

  3. Capital Gains or Losses (especially trades)
    are calculated using the FIFO method based on the difference between acquisition value and disposal value. It is also important to distinguish between acquisition value and disposal value. These are simplified as follows:

    1. Purchase Price: Corresponds to the determined price from 1. or 2.

    2. Disposal Price (Trades): Calculated based on the value ratio in the trade. For this, the market value of the inflow is divided by the token amount of the outflow plus potential fees.

In the tax report, the average acquisition price and the average acquisition date are displayed for disposals. Here, an aggregation of all potentially existing partial acquisitions is performed per disposal.

Particularly in the price calculation of the decentralized dUSD token, it should be noted that the DEX fee for a potential swap is included and thus influences the price.

Disposals:Discrepancies in Disposal and Acquisition Prices
You may have noticed that prices in transactions can differ between disposals and acquisitions and deviate from the real value.

Please click on the eye in the transaction for disposals first to see all acquisitions and not just an average value.
Then, please pay attention to positions with acquisition costs of 0. These are the result of an unaddressed warning. Please resolve these first.
There may be discrepancies in the sale price, as outlined in (3).

Did this answer your question?