token_price_by_token_addres_Problem

Returns 30 DEX trades on Ethereum, where buy currency smart contract is 0x2e51…82e0, 0x2e85…ae15 or 1 more: buy price, buy seller, buy currency name, buy smart contract and buy currency symbol.

By James parr · saved 9 August 2023 · run 1 time · Bitquery API v2

What it returns

Filters

The query

query MyQuery($addresses: [String!]!, $limitCount: Int!) {
  EVM(dataset: combined, network: eth) {
    DEXTrades(
      where: {Trade: {Buy: {Currency: {SmartContract: {in: $addresses}}}}}
      limit: {count: $limitCount}
      limitBy: {by: Trade_Buy_Currency_SmartContract, count: 1}
    ) {
      Trade {
        Buy {
          Price
          Seller
          Currency {
            Name
            SmartContract
            Symbol
          }
        }
      }
    }
  }
}

Variables

{
  "limitCount": 30,
  "addresses": ["0x2e516ba5bf3b7ee47fb99b09eadb60bde80a82e0", "0x2e85ae1c47602f7927bcabc2ff99c40aa222ae15", "0x30dcba0405004cf124045793e1933c798af9e66a"]
}

Similar queries