Candlestick V2 & V1 Trade Data Engine
V2 Trade Data Engine (Supports Ethereum)
Token price is calculated based on the amount the trader sent from/received, not on the dex pool’s event logs. Such a method allows a more accurate price in cases such as a token with a buy/sell tax mechanism or a trader using a dex that charges a fee.
Example of Buy/Sell Tax:
See the trade here.
In V2 Trade, prices are calculated based on the actual spending of the trader. In this case, the actual amount that e7D5 spent for the 0.162 ETH is 1,846,252 + 3699.9 (Tax) = 1,849,951. Thus, the price of $hiX in this trade is 0.0001449.
V1 Trade Data Engine (Supports Polygon, BNBChain, Arbitrum)
In V1 Trade, the price is based on event logs generated by DEX pools. Using the above case as an example, the price of $hiX is 0.0001452 because 1,846,252 is the recorded sold amount on the event logs generated by the Uniswap Pool.