Trades from x to y timestamps

Retrieve trades ranging between two predefined timestamps

Returns the latest DEX trades by token on Solana, where currency mint address is CEnmLT…pump, side currency mint address is So1111…1112 and DEX protocol family is Raydium: slot, block time, transaction signature, signer, transaction fee, side type, side amount in USD and 2 more fields.

By raff · saved 24 January 2025 · run 1 time · Bitquery API v2

What it returns

Filters

The query

query LatestTrades {
  Solana {
    DEXTradeByTokens(
      orderBy: {descending: Block_Time}
      where: {Trade: {Currency: {MintAddress: {is: "CEnmLTaPYsMTm5hbEPdUm4ar94VKecUZV68yJs16pump"}}, Dex: {ProtocolFamily: {is: "Raydium"}}, Side: {Currency: {MintAddress: {is: "So11111111111111111111111111111111111111112"}}}}, Block: {Time: {before: "2025-01-24T08:49:45Z", after: "2025-01-24T08:47:15Z"}}}
      limit: {}
    ) {
      Block {
        Slot
        Time
      }
      Transaction {
        Signature
        Signer
        Fee
      }
      Trade {
        Side {
          Type
          AmountInUSD
        }
        PriceInUSD
        Amount
      }
    }
  }
}

Similar queries