Token Trade Pairs bu Protocol

Returns 10 DEX trades on Ethereum, where DEX protocol name is seaport_v1.4, block date since 2025-02-10 and block date till 2025-02-17, sorted by count, highest first: block date, chain ID, unique of block date, count, median of trade buy price, median of trade buy price in USD, sum of trade buy amount and 11 more fields.

By Nadia · saved 17 February 2025 · run 1 time · Bitquery API v2

What it returns

Filters

The query

query ($network: evm_network, $limit: Int!, $offset: Int!, $from: String, $till: String, $protocol: String) {
  EVM(dataset: combined, network: $network) {
    DEXTrades(
      limit: {count: $limit, offset: $offset}
      where: {Block: {Date: {since: $from, till: $till}}, Trade: {Dex: {ProtocolName: {is: $protocol}}, Success: true}}
      orderBy: {descendingByField: "count"}
    ) {
      Block {
        Date(minimum: Block_Date)
      }
      ChainId
      uniq(of: Block_Date)
      count
      buy_price: median(of: Trade_Buy_Price)
      buy_price_usd: median(of: Trade_Buy_PriceInUSD)
      buy_amount: sum(of: Trade_Buy_Amount)
      buy_amount_usd: sum(of: Trade_Buy_AmountInUSD)
      sell_amount: sum(of: Trade_Sell_Amount)
      sell_amount_usd: sum(of: Trade_Sell_AmountInUSD)
      sell_price: median(of: Trade_Sell_Price)
      sell_price_usd: median(of: Trade_Sell_PriceInUSD)
      Trade {
        Buy {
          Currency {
            Symbol
            SmartContract
            Name
          }
        }
        Sell {
          Currency {
            Symbol
            SmartContract
            Name
          }
        }
      }
    }
  }
}

Variables

{
  "network": "eth",
  "limit": 10,
  "offset": 0,
  "from": "2025-02-10",
  "till": "2025-02-17",
  "protocol": "seaport_v1.4"
}

Similar queries