filter_by_pair

Returns the latest 20 DEX trades on Ethereum, where pair smart contract is 0x90a7…08ff: buy amount, buy currency name, buy smart contract, sell amount, sell currency name and sell currency symbol.

By Omkar Acharekar · saved 9 June 2023 · run 1 time · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  EVM(dataset: combined, network: eth) {
    DEXTrades(
      limit: {count: 20}
      where: {Trade: {Dex: {Pair: {SmartContract: {is: "0x90a70993d2a02f4d4769008c255873dfc9d308ff"}}}}}
      orderBy: {descending: Block_Time}
    ) {
      Trade {
        Buy {
          Amount
          Currency {
            Name
            SmartContract
          }
        }
        Sell {
          Amount
          Currency {
            Name
            Symbol
          }
        }
      }
    }
  }
}

Similar queries