all_pairs_filtering

Returns 100 DEX trades by token on BNB Chain, where side currency smart contract is 0xbb4c…095c, 0x55d3…7955 or 1 more, DEX owner address is 0xca14…0c73, 0x0bfb…1865 or 1 more and block time since 2024-06-01, sorted by volume, highest first: chain ID, block time, sum of trade amount in USD, price in USD, amount in USD, side currency symbol and currency symbol.

By strikex admin acct · saved 4 June 2024 · run 30 times · Bitquery API v2

What it returns

Filters

The query

query ($network: evm_network, $limit: Int, $from: DateTime, $till: DateTime, $quoteCurrencies: [String!], $exchangeAddresses: [String!]) {
  EVM(network: $network, dataset: combined) {
    DEXTradeByTokens(
      orderBy: {descendingByField: "volume"}
      limit: {count: $limit}
      limitBy: {by: [Trade_Currency_SmartContract]}
      where: {Trade: {Side: {Currency: {SmartContract: {in: $quoteCurrencies}, Symbol: {}}}, Price: {gt: 0}, Dex: {OwnerAddress: {in: $exchangeAddresses}}, PriceInUSD: {gt: 0, lt: 5000}, Currency: {Name: {startsWith: ""}, Symbol: {notLike: ""}}}, Block: {Time: {since: $from, till: $till}}}
    ) {
      ChainId
      Block {
        Time
      }
      volume: sum(of: Trade_AmountInUSD)
      Trade {
        open: PriceInUSD(minimum: Block_Number)
        close: PriceInUSD(maximum: Block_Number)
        PriceInUSD
        AmountInUSD
        Side {
          Currency {
            Symbol
          }
        }
        Currency {
          Symbol
        }
      }
    }
  }
}

Variables

{
  "network": "bsc",
  "limit": 100,
  "from": "2024-06-01T10:20:30Z",
  "till": "2024-06-03T10:20:30Z",
  "quoteCurrencies": ["0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c", "0x55d398326f99059ff775485246999027b3197955", "0xe9e7cea3dedca5984780bafc599bd69add087d56"],
  "exchangeAddresses": ["0xca143ce32fe78f1f7019d7d551a6402fc5350c73", "0x0bfbcf9fa4f9c56b0f40a671ad40e0805a091865", "0xdb1d10011ad0ff90774d0c6bb92e5c5c8b4461f7"]	
  
}

Similar queries