token price for solana

Returns the latest DEX trades on Solana, where buy currency mint address is HRw8mq…NuEP, Hk82ay…mKuL or 1 more: buy currency mint address and buy price in USD.

By anthony dopple · saved 12 August 2024 · run 11 times · Bitquery API v2

What it returns

Filters

The query

query CurrentPrices {
  token0: Solana {
    DEXTrades(
      limitBy: {count: 1, by: Trade_Buy_Currency_MintAddress}
      orderBy: {descending: Block_Time}
      where: {Trade: {Buy: {Currency: {MintAddress: {in: ["HRw8mqK8N3ASKFKJGMJpy4FodwR3GKvCFKPDQNqUNuEP", "Hk82ay38uGpYgqjdXXCiATavVQwAMaBNyxsUWbapmKuL", "So11111111111111111111111111111111111111112"]}}}}, Transaction: {Result: {Success: true}}}
    ) {
      Trade {
        Buy {
          Currency {
            MintAddress
          }
          PriceInUSD(selectWhere: {gt: 0})
        }
      }
    }
  }
}

Similar queries