dex

Returns DEX trades by token on Base, where DEX protocol family is PancakeSwap and block time since 2025-02-06, sorted by block time: block time, count, unique of trade buyer, unique of trade sender and unique of trade currency smart contract.

By Dandex · saved 9 February 2025 · run 1 time · Bitquery API v2

What it returns

Filters

The query

query DexMarkets($network: evm_network, $market: String, $time_ago: DateTime) {
  EVM(network: $network) {
    DEXTradeByTokens(
      orderBy: {ascendingByField: "Block_Time"}
      where: {TransactionStatus: {Success: true}, Trade: {Dex: {ProtocolFamily: {is: $market}}}, Block: {Time: {since: $time_ago}}}
    ) {
      Block {
        Time(interval: {count: 1, in: hours})
      }
      trades: count
      buyers: uniq(of: Trade_Buyer)
      sellers: uniq(of: Trade_Sender)
      tokens: uniq(of: Trade_Currency_SmartContract)
    }
  }
}

Variables

{
  "market": "PancakeSwap",
  "network": "base",
  "time_ago": "2025-02-06T15:09:00Z"
}

Similar queries