0 amountInUSD query in Solana

Returns 5 DEX trades by token on Solana, where currency mint address is ZpXcEX…pump: trade amount, amount in USD, trade price, price in USD, protocol name, protocol family, program address and 4 more fields.

By Akshat · saved 5 July 2024 · run 9 times · Bitquery API v2

What it returns

Filters

The query

query TopTraders($token: String) {
  Solana {
    DEXTradeByTokens(
      limit: {count: 5}
      where: { 
        Trade: {
          Currency: {
            MintAddress: {
              is: $token
            }
          }
        }
        Transaction: {Result: {Success: true}}}
    ) {
      
      Trade {
        Amount
        AmountInUSD
        Price
        PriceInUSD
        Dex {
          ProtocolName
          ProtocolFamily
          ProgramAddress
        }
        Currency {
          Symbol
          Name
          MintAddress
        }
        
        Account {
          Address
        }
      
      }
      
  }
}
}

Variables

{
  "token": "ZpXcEXDvM5GQPSbBFpds8brgXKyQrGihYsT2jropump"
}

Similar queries