DexTrade_Wrong_Amount_

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

Returns DEX trades on Ethereum, where transaction hash is 0xb8cb…5368, 0xa368…e843 or 1 more: block number, buy amount in USD, buy smart contract, buy currency symbol, buy decimals, buy currency name, buy protocol name and 6 more fields.

By Omkar_BQ · saved 29 May 2024 · run 5 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"]}}}
    ) {
      Block {
        Number
      }
      Trade {
        Buy {
          AmountInUSD
          Currency {
            SmartContract
            Symbol
            Decimals
            Name
            ProtocolName
          }
          Amount
        }
        Sell {
          AmountInUSD
          Currency {
            SmartContract
            Symbol
          }
          Amount
        }
        Dex {
          Pair {
            SmartContract
          }
        }
      }
    }
  }
}

Similar queries