trade_volume META xStock

Returns DEX trades by token on Solana, where currency mint address is Xsa62P…o5Zu, side currency mint address is EPjFWd…Dt1v and block time since 2025-06-20, sorted by traded volume, highest first: currency name, currency mint address, currency symbol, side currency name, side currency symbol, side currency mint address, sum of trade side amount in USD and sum of trade amount.

By gaurav · saved 3 July 2025 · run 2 times · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  Solana(dataset: combined) {
    DEXTradeByTokens(
      orderBy: {descendingByField: "traded_volume"}
      where: {Block: {Time: {since: "2025-06-20T01:00:00Z"}}, Transaction: {Result: {Success: true}}, Trade: {Currency: {MintAddress: {is: "Xsa62P5mvPszXL1krVUnU5ar38bBSVcWAB6fmPCo5Zu"}}, Side: {Currency: {MintAddress: {is: "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"}}}}}
    ) {
      Trade {
        Currency {
          Name
          MintAddress
          Symbol
        }
        Side {
          Currency {
            Name
            Symbol
            MintAddress
          }
        }
      }
      traded_volume_USD: sum(of:Trade_Side_AmountInUSD)
      traded_volume: sum(of: Trade_Amount)
      buy_volume: sum(of: Trade_Amount, if: {Trade: {Side: {Type: {is: buy}}}})
      sell_volume: sum(of: Trade_Amount, if: {Trade: {Side: {Type: {is: sell}}}})
    }
  }
}

Similar queries