Live price of a token IN SOLANA with time in different pools

Live price of a token

Returns the latest 10 DEX trades by token on Solana, where currency mint address is So1111…1112 and side currency mint address is EPjFWd…Dt1v: block time, block date, block hash, slot, trade price, currency name, currency mint address and 3 more fields.

By Vishal · saved 31 May 2024 · run 15 times · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  Solana {
    DEXTradeByTokens(
      limit: {count: 10}
      orderBy: {descending: Block_Time}
      where: {Trade: {Currency: {MintAddress: {is: "So11111111111111111111111111111111111111112"}}, Side: {Currency: {MintAddress: {is: "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"}}}}, Block: {}}
      limitBy: {by: Trade_Dex_ProgramAddress, count: 1}
    ) {
      Block {
        Time
        Date
        Hash
        Slot
      }
      Trade {
        Price
        Currency {
          Name
          MintAddress
          Symbol
        }
        Dex {
          ProgramAddress
          ProtocolName
        }
      }
    }
  }
}

Similar queries