Ethereum_v2_startsWith

Returns 5 DEX trades by token on Ethereum, where currency name starts with Wrapped Ether, sorted by block time: smart contract, currency name, currency symbol, price in USD and unique of trade currency smart contract.

By pablo · saved 2 July 2024 · Bitquery API v2

What it returns

Filters

The query

query ($network: evm_network, $keyword: [String!]) {
  EVM(network: $network, dataset: realtime) {
    DEXTradeByTokens(
      where: {Trade: {Currency: {Name: {startsWith: $keyword}}}}
      limit: {count: 5}
      orderBy: {ascending: Block_Time}
      limitBy: {by: Trade_Currency_SmartContract, count: 1}
    ) {
      Trade {
        Dex {
          SmartContract
        }
        Currency {
          Name
          Symbol
          SmartContract
        }
        PriceInUSD
      }
      uniq(of: Trade_Currency_SmartContract)
    }
  }
}

Variables

{
  "network": "eth",
  "keyword": "Wrapped Ether"
}

Similar queries