dex trade vol on solana

Returns 10 DEX trades on Solana, where buy currency mint address is 8KhfhN…Pt28, sell currency mint address is So1111…1112 and block time since 2024-05-24: median of trade buy price, count, sum of trade buy amount and sum of trade sell amount.

By gaurav · saved 24 May 2024 · run 21 times · Bitquery API v2

What it returns

Filters

The query

{
  Solana {
    DEXTrades(
      limit: {count: 10}
      where: {Block: {Time: {since: "2024-05-24T14:26:00Z",
        till: "2024-05-24T20:26:00Z"}}, 
        Transaction: {Result: {Success: true}}, 
        Trade: { 
          Buy: {Currency: {MintAddress: {is: "8KhfhNHsy62wbbRRSYBx7pameubiQ9guYn4KyD74Pt28"}}}, 
          Sell: {Currency: {MintAddress: {is: "So11111111111111111111111111111111111111112"}}}}}
    ) {
      Price: median(of: Trade_Buy_Price)
      Unique_Buyers: count(distinct: Trade_Buy_Account_Address)
      Unique_sellers: count(distinct: Trade_Sell_Account_Address)
      count
      buy_volume: sum(of: Trade_Buy_Amount)
      sell_volume: sum(of: Trade_Sell_Amount)
    }
  }
}

Similar queries