DEX Smart Contract Protocols

Returns 10 DEX trades on BNB Chain, where block date since 2024-02-21 and block date till 2024-02-28, sorted by trade DEX protocol name, highest first: chain ID, unique of trade buy currency name, unique of trade DEX smart contract, count, protocol name, protocol family and protocol version.

By Aparna Sridhar · saved 28 February 2024 · run 13 times · Bitquery API v2

What it returns

Filters

The query

query ($network: evm_network, $limit: Int!, $offset: Int!, $from: String, $till: String) {
  EVM(dataset: combined, network: $network) {
    DEXTrades(
      limit: {count: $limit, offset: $offset}
      where: {Block: {Date: {since: $from, till: $till}}}
      orderBy: {descending: Trade_Dex_ProtocolName}
    ) {
      ChainId
      currencies: uniq(of: Trade_Buy_Currency_Name)
      contracts: uniq(of: Trade_Dex_SmartContract)
      trades: count
      Trade {
        Dex {
          ProtocolName
          ProtocolFamily
          ProtocolVersion
        }
      }
    }
  }
}

Variables

{"network":"bsc","limit":10,"offset":0,"from":"2024-02-21","till":"2024-02-28","dateFormat":"%Y-%m-%d","date_middle":"2024-02-24"}

Similar queries