no data for token

Returns DEX trades by token on Solana, where currency mint address is gc9yhr…tbhw, side currency mint address is 111111…1111, So1111…1112 or 4 more and block time after 2022-03-12, sorted by block time: block time, quantile of trade price in USD, price in USD and sum of trade side amount in USD.

By gaurav · saved 11 March 2025 · run 2 times · Bitquery API v2

What it returns

Filters

The query

query TradingView($token: String, $dataset: dataset_arg_enum, $time_ago: DateTime, $interval: Int) {
  Solana(dataset: $dataset) {
    DEXTradeByTokens(
      orderBy: {ascendingByField: "Block_Time"}
      where: {Trade: {Currency: {MintAddress: {is: $token}}, 
        Side: {Currency: {MintAddress: {in: ["11111111111111111111111111111111",
          "So11111111111111111111111111111111111111112", "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
          "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB", "JUPyiwrYJFskUPiHa7hkeR8VUtAeFoSYbKedZNsDvCN", "EKpQGSJtjMFqKZ9KQanSqYXRcF8fBopzLHYxdM65zcjm"]}}}}, Block: {Time: {after: $time_ago}}, Transaction: {Result: {Success: true}}}
    ) {
      Block {
        Time(interval: {count: $interval, in: seconds})
      }
      min: quantile(of: Trade_PriceInUSD, level: 0.05)
      max: quantile(of: Trade_PriceInUSD, level: 0.95)
      close: Trade {
        PriceInUSD(maximum: Block_Slot)
      }
      open: Trade {
        PriceInUSD(minimum: Block_Slot)
      }
      volume: sum(of: Trade_Side_AmountInUSD)
    }
  }
}

Variables

{
  "token": "gc9yhrcpcumxcw1yhavtcrub6zgbcv7ns363fzpdtbhw",
  "time_ago": "2022-03-12T10:13:12Z",
  "interval": 10800,
  "dataset": "archive"
}

Similar queries