1m Vol

Returns DEX trades by token on Solana, where currency mint address is 4tPXYM…pump, block time after 2024-08-04 and block time before 2024-11-06, sorted by block time: sum of trade side amount in USD and block time.

By HOD · saved 7 November 2024 · run 11 times · Bitquery API v2

What it returns

Filters

The query

query MyQuery($token: String, $time_before: DateTime, $resolution: OLAP_DateTimeIntervalUnits, $space: Int) {
  Solana(dataset: combined) {
    DEXTradeByTokens(
      orderBy: {ascendingByField: "Block_Time"}
      where: {Block: 
        {Time: {after: "2024-08-04T00:00:00.000Z" before: $time_before}, 
        Date: {}}, Trade: {Side: {Amount: {gt: "0"}}, 
          Currency: {MintAddress: {is: $token}}}}
    ) {
      volume: sum(of: Trade_Side_AmountInUSD)
      Block {
        Time(interval: {count: $space, in: $resolution})
      }
    }
  }
}

Variables

{
  "token": "4tPXYMCmLRjWofitRkxVb1uKRn3zhruDsHGdAY5Dpump",
  "time_before": "2024-11-06T10:02:26.516Z",
  "space": 1,
  "resolution": "days"
}

Similar queries