Get the pair with largest trading volume

Returns one DEX trade by token on Polygon, where currency smart contract is 0x2791…4174 and block time since 2024-06-11, sorted by trade amount, highest first: sum of trade amount in USD, smart contract, currency symbol, side currency symbol and side smart contract.

By Akshat · saved 11 June 2024 · run 2 times · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  EVM(dataset: combined, network: matic) {
    DEXTradeByTokens(
      where: {Trade: {Currency: {SmartContract: {is: "0x2791bca1f2de4661ed88a30c99a7a9449aa84174"}}}, Block: {Time: {since: "2024-06-11T00:00:00Z"}}}
      limit: {count: 1}
      limitBy: {by: Trade_Side_Currency_SmartContract}
      orderBy: {descendingByField: "TradeAmount"}
    ) {
      TradeAmount: sum(of: Trade_AmountInUSD)
      Trade {
        Currency {
          SmartContract
          Symbol
        }
        Side {
          Currency {
            Symbol
            SmartContract
          }
        }
      }
    }
  }
}

Similar queries