latest-swaps-buys-only

get the latest swaps for ETH but only buys. BSC

Returns the latest 10 DEX trades on Ethereum and BNB Chain, where buy currency is 0x2170…33f8, date since 2022-05-05 and date till 2022-05-12: timestamp time, block height, trade index, protocol, full name, address address, annotation and 4 more fields.

By lukas · saved 27 July 2022 · run 19 times · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!, $token: String!, $limit: Int!, $offset: Int!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    dexTrades(
      options: {desc: ["block.height", "tradeIndex"], limit: $limit, offset: $offset}
      date: {since: $from, till: $till}
      buyCurrency: {is: $token}
    ) {
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
        height
      }
      tradeIndex
      protocol
      exchange {
        fullName
      }
      smartContract {
        address {
          address
          annotation
        }
      }
      buyAmount
      buyCurrency {
        address
        symbol
      }
      transaction {
        hash
      }
    }
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "network": "bsc",
  "token": "0x2170ed0880ac9a755fd29b2688956bd959f933f8",
  "from": "2022-05-05",
  "till": "2022-05-12T23:59:59",
  "dateFormat": "%Y-%m-%d"
}

Similar queries