AllInformationInOneTrade

Returns the latest 2 DEX trades on Ethereum, where DEX smart contract is 0x88e6…5640: buy amount, buy amount in USD, buy buyer, buy currency name, buy smart contract, buy price, buy price in USD and 60 more fields.

By Akshat · saved 16 August 2024 · run 1 time · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  EVM(dataset: combined, mempool: false, network: eth) {
    DEXTrades(
      limit: {count: 2}
      orderBy: {descending: Block_Time}
      where: {Trade: {Dex: {SmartContract: {is: "0x88e6A0c2dDD26FEEb64F039a2c41296FcB3f5640"}}}}
    ) {
      Trade {
        Buy {
          Amount
          AmountInUSD
          Buyer
          Currency {
            Name
            SmartContract
          }
          Price
          PriceInUSD
          Seller
          Ids
          OrderId
          URIs
        }
        Dex {
          SmartContract
        }
        Fees {
          Amount
          AmountInUSD
          Payer
          Recipient
          Currency {
            SmartContract
            Symbol
          }
        }
        PriceAsymmetry
        Sell {
          Amount
          AmountInUSD
          Currency {
            Symbol
            SmartContract
          }
          Price
          PriceInUSD
          Buyer
        }
        Success(selectWhere: true)
        Sender
      }
      Transaction {
        Cost
        CostInUSD
        From
        Gas
        GasFeeCap
        GasFeeCapInUSD
        GasPrice
        GasPriceInUSD
        GasTipCap
        GasTipCapInUSD
        Hash
        Index
        Nonce
        Protected
        To
        Type
        Value
        ValueInUSD
      }
      TransactionStatus {
        EndError
        FaultError
        Success
      }
      Fee {
        Burnt
        BurntInUSD
        EffectiveGasPrice
        EffectiveGasPriceInUSD
        GasRefund
        MinerReward
        MinerRewardInUSD
        PriorityFeePerGas
        PriorityFeePerGasInUSD
        Savings
        SavingsInUSD
        SenderFee
        SenderFeeInUSD
      }
      Log {
        Index
        LogAfterCallIndex
      }
      Receipt {
        ContractAddress
        CumulativeGasUsed
        GasUsed
        Status
        Type
      }
    }
  }
}

Similar queries