traders who have traded both tokens archive

Returns 10 DEX trades by token on Solana, where currency mint address is So1111…1112, side currency mint address is EPjFWd…Dt1v and block date after 2025-03-27, sorted by vol, highest first: account address, account owner and sum of trade amount.

By Divyasshree · saved 7 May 2025 · run 1 time · Bitquery API v2

What it returns

Filters

The query

query alltradersoftoken($token: String, $base: String) {
  Solana(network: solana, dataset: archive) {
    DEXTradeByTokens(
      where: {Trade: {Currency: {MintAddress: {is: $base}}, Side: {Amount: {gt: "0"}, Currency: {MintAddress: {is: $token}}}}, Transaction: {Result: {Success: true}}, Block: {Date: {after: "2025-03-27", before: "2025-04-04"}}}
      orderBy: {descendingByField: "vol"}
      limit: {count: 10}
    ) {
      Trade {
        Account {
          Address
          Owner
        }
      }
      vol: sum(of: Trade_Amount)
      joinDEXTradeByTokens(
        join: inner
        Trade_Account_Owner: Trade_Account_Owner
        where: {Trade: {Currency: {MintAddress: {is: "3NZ9JMVBmGAqocybic2c7LQCJScmgsAZ6vQqTDzcqmJh"}}}}
      ) {
        vol_2: sum(of: Trade_Amount)
      }
    }
  }
}

Variables

{
  "base": "So11111111111111111111111111111111111111112",
  "token": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
}

Similar queries