duplicates

Returns the latest 100 DEX trades by token on Solana, where currency mint address is AS21eH…TASM, side currency mint address is So1111…1112 and block time since 2025-09-03: block time, trade price, currency mint address, market address, protocol name, protocol family, program address and 3 more fields.

By Divyasshree · saved 8 September 2025 · Bitquery API v2

What it returns

Filters

The query

{
  Solana(dataset: combined) {
    DEXTradeByTokens(
      limit: {count: 100}
      where: {Transaction: {Result: {Success: true}}, Trade: {Currency: {MintAddress: {is: "AS21eH1r9Ynn6ugqtdmMmoD8L8y9k8kzddGLwtVTASM"}}, Side: {Currency: {MintAddress: {is: "So11111111111111111111111111111111111111112"}}}}, Block: {Time: {since: "2025-09-03T19:00:00Z", before: "2025-09-03T20:00:00Z"}}}
      orderBy: {descendingByField: "Block_Timefield"}
    ) {
      Block {
        Timefield: Time(interval: {in: hours, count: 1})
      }
      Trade {
        price_in_sol_open: Price(minimum: Block_Slot)
        price_in_sol_close: Price(maximum: Block_Slot)
        Currency {
          MintAddress
        }
        Market {
          MarketAddress
        }
        Dex {
          ProtocolName
          ProtocolFamily
          ProgramAddress
        }
        Side {
          Currency {
            Name
            MintAddress
          }
        }
      }
      count
    }
  }
}

Similar queries