Trades By Pairs

Returns 10 DEX trades on Ethereum, where block date since 2023-07-11 and block date till 2023-07-11, sorted by trade buy amount, highest first: chain ID, unique of block date, count, buy currency symbol, buy smart contract, buy amount, sell currency symbol and sell smart contract.

By Nadia · saved 12 July 2023 · run 1 time · 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}}, Trade: {Sell: {Currency: {Symbol: {not: ""}}}, Buy: {Currency: {Symbol: {not: ""}}}}}
      orderBy: {descending: Trade_Buy_Amount}
    ) {
      ChainId
      uniq(of: Block_Date)
      count
      Trade {
        Buy {
          Currency {
            Symbol
            SmartContract
          }
          Amount
        }
        Sell {
          Currency {
            Symbol
            SmartContract
          }
        }
      }
    }
  }
}

Variables

{
  "network": "eth",
  "limit": 10,
  "offset": 0,
  "from": "2023-07-11",
  "till": "2023-07-11"
}

Similar queries