Token pairs

Streams 10 DEX trades by token on Ethereum as they happen, where currency smart contract is 0xfb7b…c75a, side currency smart contract is not 0x and block date since 2024-12-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 shamu · saved 21 December 2024 · Bitquery API v2

What it returns

Filters

The subscription

subscription ($network: evm_network, $limit: Int!, $from: String, $token: String, $till: String) {
  EVM(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":"eth","limit":10,"from":"2024-12-13","till":"2024-12-20","token":"0xfb7b4564402e5500db5bb6d63ae671302777c75a","dateFormat":"%Y-%m-%d","date_middle":"2024-12-16"}

Similar queries