Trades of an address for a currency

Returns 10 DEX trades by token on Ethereum, where currency smart contract is 0xcdf7…bee5: from, transaction hash, trade amount, buyer, currency name, currency symbol, smart contract and 10 more fields.

By Aleksey · saved 9 April 2024 · run 1 time · Bitquery API v2

What it returns

Filters

The query

{
  EVM(network: eth, dataset: archive) {
    DEXTradeByTokens(
      where: {
        
        Trade: {
          Currency: {
          	SmartContract: {
              is: "0xcdf7028ceab81fa0c6971208e83fa7872994bee5"
            }
          }
        }
        
        any: [
      		{
            Transaction: {
              From: {
                is: "0x152a04d9fde2396c01c5f065a00bd5f6edf5c88d"
              }
            }
          }
          {
            Trade: {
              Buyer: {
                is: "0x152a04d9fde2396c01c5f065a00bd5f6edf5c88d"
              }
            }
          }
          {
            Trade: {
              Seller: {
                is: "0x152a04d9fde2396c01c5f065a00bd5f6edf5c88d"
              }
            }
          }
        ]}
    limit: {count: 10}
    ) {
      Transaction {
        From
        Hash
      }
      Trade {
        Amount
        Buyer
        Currency {
          Name
          Symbol
          SmartContract
        }
        Seller
        Price
        Dex {
          ProtocolName
          ProtocolVersion
          ProtocolFamily
          OwnerAddress
        }
        Side {
          Currency {
            SmartContract
            Symbol
            Name
          }
          Buyer
        }
      }
    }
  }
}

Similar queries