applying 1 condition on results of another

Returns the latest 100 DEX trades by token on Solana, where 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 1 time · Bitquery API v2

What it returns

Filters

The query

{
  Solana {
    DEXTradeByTokens(
      where: {Trade: {Dex: {ProtocolName: {is: "pump"}}}, 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