trade by transaction

Returns one DEX trade on Ethereum and BNB Chain, where tx hash is 0x8667…19f2 and time since 2022-03-15, sorted by block height trade index: timestamp time, block height, trade index, protocol, full name, address address, annotation and 7 more fields.

By gaurav · saved 16 March 2022 · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!,  $limit: Int!, $offset: Int!) {
  ethereum(network: $network) { 
    dexTrades(
      options: {asc: ["block.height", "tradeIndex"], limit: $limit, offset: $offset}
      time: {since: "2022-03-15T08:50:00"}
      txHash: {is: "0x86673e6702559d7a38848efc152b1b21c0026dd375586013c215011ac6ac19f2"}
    ) {
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
        height
      }
      tradeIndex
      protocol
      exchange {
        fullName
      }
      smartContract {
        address {
          address
          annotation
        }
      }
      sellAmount: buyAmount
      sellCurrency: buyCurrency {
        address
        symbol
      }
      buyAmount: sellAmount
      buyCurrency: sellCurrency {
        address
        symbol
      }
      tradeAmount(in: USD)
    }
  }
}

Variables

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

Similar queries