all buys neiro by trader

Returns the latest DEX trades by token on Ethereum, where currency smart contract is 0x4c6a…9a67 and trade buyer is 0x4c6a…9a67: block time, protocol family, amount in USD, price in USD, trade amount, side type, side currency symbol and 7 more fields.

By Divyasshree · saved 15 October 2024 · Bitquery API v2

What it returns

Filters

The query

query lastTrades($network: evm_network, $trader: String) {
  EVM(network: $network) {
    buys: DEXTradeByTokens(
      orderBy: {descending: Block_Time}
      where: {Trade: {Currency: {SmartContract: {is: "0x4c6a8f50433daec228f7cf5327cd095c1cdc9a67"}}, Buyer: {is: $trader}}}
    ) {
      Block {
        Time
      }
      Trade {
        Dex {
          ProtocolFamily
        }
        AmountInUSD
        PriceInUSD
        Amount
        Side {
          Type
          Currency {
            Symbol
            SmartContract
            Name
          }
          AmountInUSD
          Amount
        }
        Currency {
          Symbol
          SmartContract
          Name
        }
      }
    }
  }
}

Variables

{
  "network": "eth",
  "trader": "0x4c6a8f50433daec228f7cf5327cd095c1cdc9a67"
}

Similar queries