查询前10 的持有代币数量

Latest Radiyum V4 pools created

Returns 10 DEX trades by token and balance updates on Solana, where currency mint address is B2REBJ…pump, account owner is 33zmqp…oA5t and 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 1 time · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  Solana {
    DEXTradeByTokens(
      where: {Trade: {Currency: {MintAddress: {is: "B2REBJUiVbGpWJoSorv4QYuZXpdgoFYGd5biKgYRpump"}}}}
    ) {
      Trade {
        Currency {
          Name
          Symbol
          MintAddress  
        }
        Dex {
          ProtocolName
          ProtocolFamily
        }
        Price
        PriceInUSD
      }
      TradeVolume: sum(of: Trade_Amount)
    }
    BalanceUpdates(
      where: {BalanceUpdate: {Account: {Owner: {is: "33zmqpdZV7q8zqgNpy53Z8caqKVuBwD33b5iFvUuoA5t"}}, Currency: {MintAddress: {is: "B2REBJUiVbGpWJoSorv4QYuZXpdgoFYGd5biKgYRpump"}}}}
    ){
      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