GET-trades-tokenAddress-owner-alt

Returns DEX trades by token on Solana, where currency mint address is So1111…1112 and account owner is 4aQ8jz…N588: trade amount, price in USD, protocol family, account owner, transaction signature and sum of trade amount.

By Kshitij Mahajan · saved 24 September 2024 · Bitquery API v2

What it returns

Filters

The query

query MyQuery{
  Solana {
    DEXTradeByTokens(
      where: {Trade: {Currency: {MintAddress: {is: "So11111111111111111111111111111111111111112"}}, Account: {Owner: {is: "4aQ8jzStqgryqXSaw5oxPmg7sw5G3hCdyzJmcBNmN588"}}}}
    ) {
      Trade {
        Amount
        PriceInUSD
        Dex {
          ProtocolFamily
        }
        Account {
          Owner
        }
      }
      Transaction {
        Signature
      }
      volume: sum(of: Trade_Amount)
    }
  }
}

Similar queries