first trading date of multiple tokens at once

Returns DEX trades by token on Ethereum, where currency smart contract is 0x95aD…C4cE or 0x6982…1933, sorted by block time: block time, currency symbol, currency name, side currency symbol, side currency name, protocol name and protocol family.

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

What it returns

Filters

The query

query MyQuery {
  EVM(network: eth, dataset: combined) {
    DEXTradeByTokens(
      where: {Trade: {Currency: {SmartContract: {in: ["0x95aD61b0a150d79219dCF64E1E6Cc01f0B64C4cE", "0x6982508145454Ce325dDbE47a25d4ec3d2311933"]}}}}
      orderBy: {ascending: Block_Time}
      limitBy: {count: 1, by: Trade_Currency_SmartContract}
    ) {
      Block {
        Time
      }
      Trade {
        Currency {
          Symbol
          Name
        }
        Side {
          Currency {
            Symbol
            Name
          }
        }
        Dex {
          ProtocolName
          ProtocolFamily
        }
      }
    }
  }
}

Similar queries