Applying condition on results of another

Returns the latest 100 DEX trades by token on Solana, where currency mint address is not 111111…1111, DEX protocol name is pump and block time before 2025-05-02: currency name, currency symbol, currency mint address and transaction signature.

By Divyasshree · saved 2 May 2025 · run 9 times · Bitquery API v2

What it returns

Filters

The query

{
  Solana {
    DEXTradeByTokens(
      where: {Trade: {Dex: {ProtocolName: {is: "pump"}}, Currency: {MintAddress: {not: "11111111111111111111111111111111"}}}, Block: {Time: {before: "2025-05-02T06:55:11Z"}}, Transaction: {Result: {Success: true}}}
      limitBy: {by: Trade_Currency_MintAddress, count: 1}
      limit: {count: 100}
      orderBy: {descending: Block_Time}
    ) {
      Trade {
        Currency {
          Name
          Symbol
          MintAddress
        }
      }
      joinDEXTradeByTokens(
        Trade_Currency_MintAddress: Trade_Currency_MintAddress
        where: {Trade: {Price: {ge: 0.000001, le: 0.002}}}
      ) {
        Transaction {
          Signature
        }
      }
    }
  }
}

Similar queries