查询前10 的持有代币数量

Latest Radiyum V4 pools created

Returns 10 DEX trades by token and balance updates on Solana, where buy currency mint address is B2REBJ…pump, sorted by block time: currency name, currency symbol, currency mint address, protocol name, protocol family, trade price, price in USD and 4 more fields.

By sh li · saved 26 November 2024 · run 4 times · Bitquery API v2

What it returns

Filters

The query

query MyQuery($dev: String, $token:String) {
  Solana {
    DEXTradeByTokens(
      where: {Trade: {Currency: {MintAddress: {is: $token}}}}
    ) {
      Trade {
        Currency {
          Name
          Symbol
          MintAddress  
        }
        Dex {
          ProtocolName
          ProtocolFamily
        }
        Price
        PriceInUSD
      }
      TradeVolume: sum(of: Trade_Amount)
    }
    BalanceUpdates(
      where: {BalanceUpdate: {Account: {Owner: {is: $dev}}, Currency: {MintAddress: {is: $token}}}}
    ){
      BalanceUpdate{
        balance:PostBalance(maximum:Block_Slot)
      }
    } 
     DEXTrades(
      where: {
        Trade: {
          Buy: {
            Currency: {
              MintAddress: {
                is: "B2REBJUiVbGpWJoSorv4QYuZXpdgoFYGd5biKgYRpump"
              }
            }
          }
        }
      }
      limit: { count: 10 }
      orderBy: { ascending: Block_Time }
    ) {
      Trade {
        Buy {
          Amount
          Account {
            Token {
              Owner
            }
          }
        }
      }
    }
    
  }
}

Similar queries