Custom Query

Returns DEX trades by token on Solana, where side type is buy, block time after 2025-02-04 and block time before 2025-02-05.

By Mahmoud Yousif · saved 5 February 2025 · run 1 time · Bitquery API v2

Filters

The query

query MyQuery($start: DateTime, $end: DateTime) {
  Solana(aggregates: yes, dataset: combined, network: solana) {
    DEXTradeByTokens(
      where: {Trade: {Side: {Type: {is: buy}, Currency: {}}}, Block: {Time: {after: $start, before: $end}}, Transaction: {Result: {Success: true}}}
    )
  }
}

Variables

{
  "start": "2025-02-04T20:33:34.700Z",
  "end": "2025-02-05T20:33:34.700Z"
}

Similar queries