get all pump tokens in a price range

Returns the latest 50 DEX trades by token on Solana, where DEX protocol name is pump, block time after 2025-01-02 and trade price is above 0.000012: market address, protocol name, protocol family, side currency symbol, side currency mint address, side currency name, trade price and 2 more fields.

By Divyasshree · saved 2 January 2025 · Bitquery API v2

What it returns

Filters

The query

query LatestTrades($time_ago: DateTime) {
  Solana {
    DEXTradeByTokens(
      orderBy: {descending: Block_Time}
      limit: {count: 50}
      where: {Trade: {Price: {gt: 0.000012, lt: 0.0002}, Dex: {ProtocolName: {is: "pump"}}}, Block: {Time: {after: $time_ago}}}
      limitBy: {by: Trade_Currency_MintAddress, count: 1}
    ) {
      Trade {
        Market {
          MarketAddress
        }
        Dex {
          ProtocolName
          ProtocolFamily
        }
        Side {
          Currency {
            Symbol
            MintAddress
            Name
          }
        }
        Price
        Currency {
          MintAddress
          Name
        }
      }
    }
  }
}

Variables

{
  "time_ago": "2025-01-02T00:24:24Z"
}

Similar queries