Pairs of token V2 API

Returns DEX trades by token, where currency smart contract is 0x6982…1933 and block date after 2023-01-01, sorted by count, highest first: count, currency name, currency symbol, smart contract, side currency name, side smart contract, side currency symbol and 2 more fields.

By gaurav · saved 26 January 2024 · run 6 times · Bitquery API v2

What it returns

Filters

The query

{
  EVM(dataset: combined) {
    DEXTradeByTokens(
      limitBy: {by: Trade_Dex_Pair_SmartContract, count: 1}
      orderBy: {descendingByField: "count"}
      where: {Block: {Date: {after: "2023-01-01"}}, Trade: {Currency: {SmartContract: {is: "0x6982508145454Ce325dDbE47a25d4ec3d2311933"}}}}
    ) {
      count: count(distinct: Transaction_Hash)
      Trade {
        Currency {
          Name
          Symbol
          SmartContract
        }
        Side {
          Currency {
            Name
            SmartContract
            Symbol
          }
        }
        Dex {
          Pair {
            SmartContract
            Name
          }
          OwnerAddress
          SmartContract
        }
      }
    }
  }
}

Similar queries