aa

Returns 10000 DEX trades by token on Solana, where currency mint address is Dy8YSe…pump and block date since 2025-04-01, sorted by sold USD, highest first: account owner, currency symbol, currency name, currency mint address, sum of trade side amount in USD, sum of trade amount and count.

By gaurav · saved 18 August 2025 · run 1 time · Bitquery API v2

What it returns

Filters

The query

{
  Solana(dataset: combined) {
    DEXTradeByTokens(
      orderBy: {descendingByField: "sold_usd"}
      limit: {count: 10000}
      where: {Block: {Date: {since: "2025-04-01"}}, Trade: {Currency: 
        {MintAddress: {is: "Dy8YSeibzxR6xw4QYUPFhqnnycrr3GNJ3Xu4BqV8pump"}}}, 
        Transaction: {Result: {Success: true}}}
    ) {
      Trade {
        Account {
          Owner
        }
        Currency {
          Symbol
          Name
          MintAddress
        }
      }
      bought_usd: sum(
        of: Trade_Side_AmountInUSD
        if: {Trade: {Side: {Type: {is: buy}}}}
      )
      sold_usd: sum(
        of: Trade_Side_AmountInUSD
        if: {Trade: {Side: {Type: {is: sell}}}}
      )
      bought_tokens: sum(of: Trade_Amount, if: {Trade: {Side: {Type: {is: buy}}}})
      sold_tokens: sum(of: Trade_Amount, if: {Trade: {Side: {Type: {is: sell}}}})
      buy_transactions: count(if: {Trade: {Side: {Type: {is: buy}}}})
      sell_transactions: count(if: {Trade: {Side: {Type: {is: sell}}}})
    }
  }
}

Similar queries