buys, sells, buy volume, sell volume, trade volume, price

Returns DEX trades by token on Solana, where currency mint address is 2sjdF9…pump and side currency mint address is So1111…1112: currency name, currency mint address, currency symbol, price in USD, protocol name, protocol family, program address and 6 more fields.

By Akshat · saved 17 September 2025 · run 1 time · Bitquery API v2

What it returns

Filters

The query

query MyQuery($token: String!) {
  Solana {
    DEXTradeByTokens(
      where: {Transaction: {Result: {Success: true}}, Trade: {Currency: {MintAddress: {is: $token}}, Side: {Currency: {MintAddress: {is: "So11111111111111111111111111111111111111112"}}}}, Block: {Time: {since_relative: {days_ago: 1}}}}
    ) {
      Trade {
        Currency {
          Name
          MintAddress
          Symbol
        }
        start: PriceInUSD(minimum: Block_Time)
        end: PriceInUSD(maximum: Block_Time)
        min5: PriceInUSD(
          maximum: Block_Time
          if: {Block: {Time: {till_relative: {minutes_ago: 5}}}}
        )
        Dex {
          ProtocolName
          ProtocolFamily
          ProgramAddress
        }
        Market {
          MarketAddress
        }
        Side {
          Currency {
            Symbol
            Name
            MintAddress
          }
        }
      }
      traded_volume_24h: sum(of: Trade_Side_AmountInUSD)
      buy_volume_24h: sum(
        of: Trade_Side_AmountInUSD
        if: {Trade: {Side: {Type: {is: buy}}}}
      )
      sell_volume_24h: sum(
        of: Trade_Side_AmountInUSD
        if: {Trade: {Side: {Type: {is: sell}}}}
      )
      buys_24h: count(if: {Trade: {Side: {Type: {is: buy}}}})
      sells_24h: count(if: {Trade: {Side: {Type: {is: sell}}}})
    }
  }
}

Variables

{
  "token": "2sjdF9vLNWkTpK2XgY2kVWCL4YTMu6vaVA4VxrzUpump"
}

Similar queries