Trades from x to y timestamps, correct order v3

Retrieve trades ranging between two predefined timestamps

Returns 10000 DEX trades by token on Solana, where currency mint address is 8APgYm…pump, block time after 2025-01-26 and block time before 2025-01-26: slot, block time, transaction signature, signer, transaction fee, transaction index, side type and 3 more fields.

By raff · saved 29 January 2025 · run 19 times · Bitquery API v2

What it returns

Filters

The query

query LatestTrades {
  Solana(dataset: realtime) {
    DEXTradeByTokens(
      where: {Trade: {Currency: {MintAddress: {is: "8APgYmmVEZpm3HSnqd68sGHboTLFEbSFFCEdpBeNpump"}}}, Block: {Time: {after: "2025-01-26T08:32:13Z", before: "2025-01-26T08:38:13Z"}}, Transaction: {Result: {Success: true}}}
      orderBy: [{ascending: Block_Slot}, {ascending: Transaction_Index}, {ascending: Instruction_Index}]
      limit: {count: 10000, offset: 0}
    ) {
      Block {
        Slot
        Time
      }
      Transaction {
        Signature
        Signer
        Fee
        Index
      }
      Trade {
        Side {
          Type
          AmountInUSD
        }
        PriceInUSD
        Amount
      }
    }
  }
}

Similar queries