Trades for a specific token on the uniswap

trades for a token on unidex

Returns the latest DEX trade on Ethereum, where base currency is 0x95b3…D96C and quote currency is 0xc02a…6cc2: transaction hash, currency name, block height, second, buy amount, buy currency symbol, buy currency address and 9 more fields.

By Krunal · saved 16 February 2021 · run 2 times · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: ethereum) {
    dexTrades(
      options: {limit: 1, desc: "block.height"}
      baseCurrency: {is: "0x95b3497bBcCcc46a8F45F5Cf54b0878b39f8D96C"}
    	quoteCurrency:{is: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"}
    ) {
      transaction {
        hash
      }
      smartContract {
        currency {
          name
        }
      }
      block {
        height
      }
      timeInterval {
        second
      }
      buyAmount
      buyCurrency {
        symbol
        address
      }
      sellAmount
      sellCurrency {
        symbol
        address
      }
      transaction {
        gasPrice
      }
      baseCurrency {
        symbol
        address
      }

      quoteCurrency {
        symbol
      }  
      quotePrice
      side
    }
  }
}

Similar queries