Trades of an address for a currency

Returns DEX trades by token on Ethereum: trade amount, buyer, currency name, currency symbol, smart contract, seller, trade price and 8 more fields.

By gaurav · saved 5 April 2024 · Bitquery API v2

What it returns

The query

{
  EVM(network: eth, dataset: combined) {
    DEXTradeByTokens(
      where: {any: [{Trade: {Currency: {SmartContract: {is: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"}}, Sender: {is: "0xe70920d37052cb34c003684c216145b4d68f15fe"}}}, {Trade: {Currency: {SmartContract: {is: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"}}, Buyer: {is: "0xe70920d37052cb34c003684c216145b4d68f15fe"}}}, {Trade: {Side: {Currency: {SmartContract: {is: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"}}, Buyer: {is: "0xe70920d37052cb34c003684c216145b4d68f15fe"}}}}]}
    ) {
      Trade {
        Amount
        Buyer
        Currency {
          Name
          Symbol
          SmartContract
        }
        Seller
        Price
        Dex {
          ProtocolName
          ProtocolVersion
          ProtocolFamily
          OwnerAddress
        }
        Side {
          Currency {
            SmartContract
            Symbol
            Name
          }
          Buyer
        }
      }
    }
  }
}

Similar queries