latest usd price of a token

Returns the latest DEX trade by token on Solana, where currency mint address is J5FAZ6…pump and side currency mint address is 111111…1111: block time, currency name, currency symbol, currency mint address, trade price, price in USD, side currency name and side currency mint address.

By Akshat · saved 28 November 2024 · run 2 times · Bitquery API v2

What it returns

Filters

The query

{
  Solana {
    DEXTradeByTokens(
      orderBy: {descending: Block_Time}
      where: {Trade: {Currency: {MintAddress: {is: "J5FAZ6bV7CCGHcU4CTXWVG6nnKHcwD9Pn4DntY93pump"}}, Side: {Currency: {MintAddress: {is: "11111111111111111111111111111111"}}}}}
      limit: {count: 1}
    ) {
      Block{
        Time
      }
      Trade{
        Currency{
          Name
          Symbol
          MintAddress
        }
        Price
        PriceInUSD
        Side{
          Currency{
            Name
            MintAddress
          }
        }
      }
    }
  }
}

Similar queries