Latest Trades

Fetch Tokens under 3 filters.: Pumpfun token Price range between 0.000012 and 0.0002 It has had a transaction older than an 2 hours ago

By Abdirahman Waari · 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
        }
      }
    }
  }
}

Similar queries