no-damm-v2-trade

Solana dextrades

Returns the latest DEX trades by token on Solana, where account owner is M6vNLX…9RkQ and currency mint address is EdhCrv…smbS: account owner, currency symbol, side type, block time, sum of trade amount, sum of trade amount in USD, sum of trade side amount in USD and transaction signature.

By WANG · saved 2 June 2025 · Bitquery API v2

What it returns

Filters

The query

query ($wallets: [String!]!, $token: String!) {
      Solana(dataset: realtime) {
        trades: DEXTradeByTokens(
          where: {
            Trade: {
              Account: {Owner: {in: $wallets}},
              Currency: {MintAddress: {is: $token}}
            }
          }
          orderBy: {descendingByField: "Block_Time"}
        ) {
          Trade { Account { Owner } Currency { Symbol } Side { Type } }
          Block { Time }
          tokens: sum(of: Trade_Amount)
          tokensInUSD: sum(of: Trade_AmountInUSD)
          tokens2InUSD: sum(of: Trade_Side_AmountInUSD)
          Transaction {
        		Signature
      		}
        }
      }
    }

Variables

{
  "wallets": [
    "M6vNLX9SFphEqbpaG3EF6iF8qxLPB5VxZG8WDaV9RkQ"
  ],
  "token": "EdhCrv9wh2dVy7LwA4kZ3pvBRhSXzhPrYeVqX7VcsmbS"
}

Similar queries