Get Latest DEX Trades

Returns the latest 10 DEX trades on Ethereum, where buy currency smart contract is 0x5283…8b44: buy amount, buy buyer, buy seller, buy smart contract, buy currency name, protocol name, sell amount and 4 more fields.

By Ashish Bhintade · saved 11 April 2024 · run 4 times · Bitquery API v2

What it returns

Filters

The query

{
  EVM(dataset: combined, network: eth) {
    DEXTrades(
      limit: {count: 10}
      orderBy: {descending: Block_Date}
      where: {Trade: {Buy: {Currency: {SmartContract: {is: "0x5283d291dbcf85356a21ba090e6db59121208b44"}}}}}
    ) {
      Trade {
        Buy {
          Amount
          Buyer
          Seller
          Currency {
            SmartContract
            Name
          }
        }
        Dex {
          ProtocolName
        }
        Sell {
          Amount
          Seller
          Buyer
          Currency {
            Name
            SmartContract
          }
        }
      }
    }
  }
}

Similar queries