Latest price of a token on Solana

Returns the latest DEX trade by token on Solana, where currency mint address is 6n7Jan…caQS and side currency mint address is So1111…1112: block time, trade amount, trade price, currency symbol, currency name and side amount.

By Akshat · saved 10 April 2024 · run 4 times · Bitquery API v2

What it returns

Filters

The query

query{
  Solana {
    DEXTradeByTokens(
      where: {Trade: {Currency: {MintAddress: {is: "6n7Janary9fqzxKaJVrhL9TG2F61VbAtwUMu1YZscaQS"}}, Side: {Currency: {MintAddress: {is: "So11111111111111111111111111111111111111112"}}}}}
      orderBy: {descending: Block_Date}
      limit: {count: 1}
    ) {
      Block {
        Time
      }
      Trade {
        Amount
        Price
        Currency {
          Symbol
          Name
        }
        Side {
          Amount
        }
      }
    }
  }
}

Similar queries