Pools for a token

Returns 10 DEX trades by token on BNB Chain, where currency smart contract is 0xf154…51ba, side currency smart contract is not 0x and block date since 2024-03-13, sorted by count, highest first: chain ID, count, currency symbol, smart contract, currency name, side currency name, side smart contract and side currency symbol.

By gaurav · saved 20 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 {
        Currency {
          Symbol
          SmartContract
          Name
        }
        Side {
          Currency {
            Name
            SmartContract
            Symbol
          }
        }
      }
    }
  }
}

Variables

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

Similar queries