Price of tokens against one sell currency

Returns 10 DEX trades, where sell currency smart contract is 0xc02a…6cc2: transaction hash, buy amount, buy currency name, buy currency symbol, buy smart contract, buy seller, sell amount and 4 more fields.

By gaurav · saved 28 April 2023 · run 11 times · Bitquery API v2

What it returns

Filters

The query

{
  EVM {
    DEXTrades(
      limit: {count: 10}
      limitBy: {by: Trade_Buy_Currency_ProtocolName, count: 1}
      where: {Trade: {Sell: {Currency: {SmartContract: {is: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"}}}}}
    ) {
      Transaction {
        Hash
      }
      Trade {
        Buy {
          Amount
          Currency {
            Name
            Symbol
            SmartContract
          }
          Seller
        }
        Sell {
          Amount
          Currency {
            Name
            Symbol
            SmartContract
          }
          Buyer
        }
      }
    }
  }
}

Similar queries