token prices

Returns the latest DEX trades on Solana, where buy currency mint address is HRw8mq…NuEP or Hk82ay…mKuL, buy currency mint address is So1111…1112 and sell currency mint address is Es9vMF…wNYB: buy currency mint address and buy price in USD.

By gaurav · saved 12 August 2024 · run 4 times · Bitquery API v2

What it returns

Filters

The query

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

Similar queries