latest price of token

Returns one DEX trade by token on Solana, where currency mint address is Cwa6QN…pump, block date after 2025-03-01 and side amount is above 0, sorted by block time: price in USD and block time.

By gaurav · saved 2 April 2025 · Bitquery API v2

What it returns

Filters

The query

{
  Solana(dataset: combined) {
    DEXTradeByTokens(
      orderBy: {ascendingByField: "Block_Time"}
      limit: {count: 1}
      where: {Block: {Date: {after: "2025-03-01"}}, Trade: {Side: {Amount: {gt: "0"}}, Currency: {MintAddress: {is: "Cwa6QNeNP2Qh7zR34hdzJdgtDDmaD2Y96m7c9HBdpump"}}}}
    ) {
      Trade {
        latest: PriceInUSD(maximum: Block_Slot)
      }
      Block {
        Time(interval: {count: 1, in: minutes})
      }
    }
  }
}

Similar queries