price by contract

Returns 100 DEX trades on Ethereum and BNB Chain, where smart contract address is 0xd32d…9d65, sorted by block height trade index: timestamp time, block height, trade index, protocol, full name, address address, annotation and 7 more fields.

By Aman · saved 2 March 2022 · Bitquery API v1

What it returns

Filters

The query

{
 ethereum(network: bsc) {
  dexTrades(
   options: {asc: ["block.height", "tradeIndex"], limit: 100}
   smartContractAddress: {is: "0xd32d01a43c869edcd1117c640fbdcfcfd97d9d65"},
  ) {
   block {
    timestamp {
     time(format: "%Y-%m-%d %H:%M:%S")
    }
    height
   }
   tradeIndex
   protocol
   exchange {
    fullName
   }
   smartContract {
    address {
     address
     annotation
    }
   }
   baseAmount
   baseCurrency {
    address
    symbol
   }
   quoteAmount
   quoteCurrency {
    address
    symbol
   }
   transaction {
    hash
   }
  }
 }
}

Similar queries