prof_ly_1

Streams 10 DEX trades on Ethereum as they happen, where block date since 2023-05-02 and block date till 2023-05-09: block time, block number, block date, sell buyer, sell amount, sell currency symbol, buy price and 4 more fields.

By Divyasshree N · saved 6 June 2023 · Bitquery API v2

What it returns

Filters

The subscription

subscription ($network: evm_network, $limit: Int!, $offset: Int!, $from: String, $till: String) {
  EVM(network: $network) {
    DEXTrades(
      limit: {offset: $offset, count: $limit}
      where: {Block: {Date: {since: $from, till: $till}}}
    ) {
      Block {
        Time
        Number
        Date
      }
      Trade {
        Sell {
          Buyer
          Amount
          Currency {
            Symbol
          }
        }
        Buy {
          Price
          Amount
          Currency {
            Symbol
          }
        }
        Dex {
          ProtocolName
          SmartContract
        }
      }
    }
  }
}

Variables

{
  "network": "eth",
  "limit": 10,
  "offset": 0,
  "from": "2023-05-02",
  "till": "2023-05-09"
}

Similar queries