ryuga latest buy

Trades for a specific token on the Pancake DEX

Returns the latest 100 DEX trades on Ethereum, where base currency is 0xc02a…6cc2, quote currency is 0x93f0…eefa and date after 2022-07-28: transaction hash, trade index, address address, contract type, currency name, date date, block height and 10 more fields.

By BillyBoy · saved 5 August 2022 · run 9 times · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: ethereum) {
    dexTrades(
      options: {desc: ["block.height", "tradeIndex"], limit: 100}
      baseCurrency: {is: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"}
      quoteCurrency: {is: "0x93f062dc30e9087a79224e80d7fc50fd41dceefa"}
      date: {after: "2022-07-28"}
    ) {
      transaction {
        hash
      }
      tradeIndex
      smartContract {
        address {
          address
        }
        contractType
        currency {
          name
        }
      }
      tradeIndex
      date {
        date
      }
      block {
        height
      }
      buyAmount
      buyAmountInUsd: buyAmount(in: USD)
      buyCurrency {
        symbol
        address
      }
      sellAmount
      sellAmountInUsd: sellAmount(in: USD)
      sellCurrency {
        symbol
        address
      }
      sellAmountInUsd: sellAmount(in: USD)
      tradeAmount(in: USD)
      transaction {
        gasValue
        gasPrice
        gas
      }
    }
  }
}

Similar queries