Trade metrics of Solana network of 1 hour duration on a particular date

Returns DEX trades on Solana, where buy currency mint address is So1111…1112, sell currency mint address is Es9vMF…wNYB and block time since 2024-04-23: count, sum of trade buy amount and sum of trade sell amount.

By Akshat · saved 23 April 2024 · run 28 times · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  Solana {
    DEXTrades(
      where: {Trade: {Buy: {Currency: {MintAddress: {is: "So11111111111111111111111111111111111111112"}}}, Sell: {Currency: {MintAddress: {is: "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB"}}}}, Block: {Time: {since: "2024-04-23T10:00:00Z", till: "2024-04-23T11:00:00Z"}}}
    ) {
      Unique_Buyers: count(distinct: Trade_Buy_Account_Address)
      Unique_sellers: count(distinct:Trade_Sell_Account_Address)
      total_transactions: count(distinct: Transaction_Signature)
      total_buy_amount: sum(of: Trade_Buy_Amount)
      total_sell_amount: sum(of: Trade_Sell_Amount)
    }
  }
}

Similar queries