Get the latest token USD price

Returns the latest DEX trade by token on Solana, where currency mint address is 9qzvgU…JYLS and DEX program address is 6EF8rr…wF6P: currency name, currency mint address, currency symbol, trade amount, amount in USD, trade price and price in USD.

By Akshat · saved 25 August 2024 · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  Solana {
    DEXTradeByTokens(
      limit:{count:1}
      orderBy:{descending:Block_Time}
      where: {Trade: {Currency: {MintAddress: {is: "9qzvgUMrrL5Xyadk2gyWxCWgTds8crkwGwgfjeN5JYLS"}}, Dex: {ProgramAddress: {is: "6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P"}}}, Transaction: {Result: {Success: true}}}
    ) {
      Trade {
        Currency {
          Name
          MintAddress
          Symbol
        }
        Amount
        AmountInUSD
        Price
        PriceInUSD
      }
    }
  }
}

Similar queries