I am trying to estimate ATH of a given token.
{
ethereum(network: bsc) {
dexTrades(
date: {since: "2023-01-01"}
exchangeName: {in: ["Pancake", "Pancake v2"]}
baseCurrency: {is: "0xcf3a0a2392698fac191f7a7dd031773caffd3456"}
quoteCurrency: {is: "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c"}
) {
maximum_price: quotePrice(calculate: maximum)
}
}
}
This works well, except for 0 tax tokens which MEV bots take advantage of. Because MEV bots make huge purchases (multiple thousand dollars) and sales, their purchases will always be the biggest quotePrice, and the result of the above code will be inaccurately high. Since they aren’t real traders and they just buy and sell within the same block to steal funds from another buyer, they should be ignored when estimating ATH. Is there a way to filter out these MEV bot transactions?