matic-trades-for-a-specific-token

Returns the latest 10 DEX trades on Ethereum and Polygon, where base currency is 0x8a95…e472: transaction hash, address address, contract type, currency name, trade index, date date, block height and 10 more fields.

By Sayon · saved 11 August 2021 · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: matic) {
    dexTrades(options: {limit: 10, desc: "block.height"}, baseCurrency: {is: "0x8a953cfe442c5e8855cc6c61b1293fa648bae472"}) {
      transaction {
        hash
      }
      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