LeosBUY

leon and leos

Returns one DEX trade on Ethereum and BNB Chain, where buy currency is 0xbb4c…095c or 0xe9e7…7d56, sell currency is 0x27e8…0381 or 0x2c83…c2f1 and time since 2022-03-29, sorted by block height trade index: timestamp time, block height, trade index, protocol, exchange name, address address, buy amount and 9 more fields.

By LCS · saved 29 March 2022 · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: bsc) {
    dexTrades(
      options: {asc: ["block.height", "tradeIndex"], limit: 1, offset: 0}
      buyCurrency: {in: ["0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c", "0xe9e7cea3dedca5984780bafc599bd69add087d56"]}
      sellCurrency: {in: ["0x27e873bee690c8e161813de3566e9e18a64b0381", "0x2c8368f8f474ed9af49b87eac77061beb986c2f1"]}
      tradeAmountUsd: {gt: 5}
      time: {since: "2022-03-29T05:52:00"}
    ) {
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
        height
      }
      tradeIndex
      protocol
      exchange {
        name
      }
      smartContract {
        address {
          address
        }
      }
      sellAmount: buyAmount
      sellCurrency: buyCurrency {
        address
        symbol
        decimals
      }
      buyAmount: sellAmount
      buyCurrency: sellCurrency {
        address
        symbol
        decimals
      }
      tradeAmount(in: USD)
      transaction {
        hash
        txFrom {
          address
        }
      }
    }
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "network": "bsc"
}

Similar queries