ath for a token

Returns 10 DEX trades by token on Ethereum, where currency smart contract is 0xDee6…3B2D, block time since 2024-12-25 and trade price asymmetry is at most 0.1, sorted by trade price in USD, highest first: price in USD, transaction hash and quantile of trade price in USD.

By Kshitij Mahajan · saved 9 January 2025 · run 16 times · Bitquery API v2

What it returns

Filters

The query

query AllTimeHighTokenPriceQuery($tokenAddress: String!, $startTime: DateTime!) {
  EVM(dataset: combined, network: eth) {
    DEXTradeByTokens(
      where: {Trade: {Currency: {SmartContract: {is: $tokenAddress}}, PriceAsymmetry: {le: 0.1}}, Block: {Time: {since: $startTime}}}
      orderBy: {descending: Trade_PriceInUSD}
      limit: {count: 10}
    ) {
      Trade {
        PriceInUSD
      }
      Transaction{
        Hash
      }
      quantile(of: Trade_PriceInUSD)
    }
  }
}

Variables

{
  "tokenAddress": "0xDee6cDd28Da9f51e3A8421395973894a884F3B2D",
  "startTime": "2024-12-25T19:24:33.59Z"
}

Similar queries