Pools for a token

Returns 10 DEX trades by token on BNB Chain, where currency smart contract is 0x57ba…046e, side currency smart contract is not 0x and block date since 2024-03-13, sorted by count, highest first: chain ID, count, smart contract, owner address, currency symbol, currency name, side currency name and 2 more fields.

By gaurav · saved 21 March 2024 · run 6 times · Bitquery API v2

What it returns

Filters

The query

query ($network: evm_network, $limit: Int!, $from: String, $token: String, $till: String) {
  EVM(dataset: combined, network: $network) {
    DEXTradeByTokens(
      limit: {count: $limit}
      where: {Block: {Date: {since: $from, till: $till}}, Trade: {Currency: {SmartContract: {is: $token}}, Side: {Currency: {SmartContract: {not: "0x"}}}}}
      orderBy: {descendingByField: "count"}
    ) {
      ChainId
      count
      Trade {
        Dex {
          Pair {
            SmartContract
          }
          OwnerAddress
          SmartContract
        }
        Currency {
          Symbol
          SmartContract
          Name
        }
        Side {
          Currency {
            Name
            SmartContract
            Symbol
          }
        }
      }
    }
  }
}

Variables

{
  "network": "bsc",
  "limit": 10,
  "from": "2024-03-13",
  "till": "2024-03-20",
  "token": "0x57ba82981120e85a6dac20f3daf8c660ad3e046e",
  "dateFormat": "%Y-%m-%d",
  "date_middle": "2024-03-16"
}

Similar queries