DEXTrades issue ticket

Decimals is 0 thus returning the non-floating value of AmountInUSD.

Returns the latest DEX trades on Ethereum, where transaction hash is 0xb8cb…5368, 0xa368…e843 or 1 more and block time after 2021-05-28: block number, block time, buy amount in USD, buy smart contract, buy currency symbol, buy decimals, buy price in USD and 12 more fields.

By Euss · saved 29 May 2024 · run 3 times · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  EVM(dataset: archive, network: eth) {
    DEXTrades(
      where: {Transaction: {Hash: {in: ["0xb8cbc46a431d4d58d4f58887fbc98ed695288308b79599c9aade753633d95368", "0xa368ee44f6e8973770d3275e85a93b8f5043cbc48a2b80209b816faaa3cce843", "0x2c3080c63bcb36ffe5c29fd22b2bb44889201dbaac10504aec01e4fc9cb042ce"]}}, TransactionStatus: {Success: true}, Block: {Time: {after: "2021-05-28T02:04:23Z"}}}
      orderBy: {descending: Block_Number, descendingByField: "Log_LogAfterCallIndex"}
    ) {
      Block {
        Number
        Time
      }
      Trade {
        Buy {
          AmountInUSD
          Currency {
            SmartContract
            Symbol
            Decimals
          }
          PriceInUSD
          Amount
        }
        Sell {
          AmountInUSD
          Currency {
            SmartContract
            Symbol
          }
          PriceInUSD
          Seller
          Amount
        }
        Dex {
          Pair {
            SmartContract
          }
        }
        Sender
      }
      Log {
        LogAfterCallIndex
        SmartContract
      }
      Transaction {
        From
        Hash
      }
    }
  }
}

Similar queries