Trades from x to y timestamps

Retrieve trades ranging between two predefined timestamps

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

By raff · saved 25 January 2025 · run 40 times · Bitquery API v2

What it returns

Filters

The query

query LatestTrades {
  Solana {
    DEXTradeByTokens(
      orderBy: {ascending: Block_Time}
      where: {Trade: {Currency: {MintAddress: {is: "5n3DiSGoQbNnRFkZ3dJwjanwBVS5pBy1MuipLEWNpump"}}, Dex: {ProtocolFamily: {is: "Raydium"}}, Side: {Currency: {MintAddress: {is: "So11111111111111111111111111111111111111112"}}}}, Block: {Time: {after: "2025-01-25T14:37:00Z", before: "2025-01-25T14:47:10Z", }}}
    ) {
      Block {
        Slot
        Time
      }
      Transaction {
        Signature
        Signer
        Fee
      }
      Trade {
        Side {
          Type
          AmountInUSD
        }
        PriceInUSD
        Amount
      }
    }
  }
}

Similar queries