Array Streaming Bug

Fixed - of latest trades for a token sell _ JP

Returns 3 DEX trades on Ethereum, where buy currency smart contract is 0x2e51…82e0, 0x2e85…ae15 or 1 more and block date is 2023-08-01, sorted by trade buy currency smart contract, highest first: buy smart contract.

By lukas · saved 11 August 2023 · run 2 times · Bitquery API v2

What it returns

Filters

The query

query MyQuery($addresses: [String!]) {
  EVM(dataset: combined, network: eth) {
    sellside: DEXTrades(
      limitBy: {by: Trade_Buy_Currency_SmartContract, count: 1}
      orderBy: {descending: Trade_Buy_Currency_SmartContract}
      where: {Trade: {Buy: {Currency: {SmartContract: {in: $addresses}}}}, Block: {Date: {is: "2023-08-01"}}}
      limit: {count: 3}
    ) {
      Trade {
        Buy {
          Currency {
            SmartContract
          }
        }
      }
    }
  }
}

Variables

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

Similar queries