latest price

Returns one DEX trade by token on Solana, where currency mint address is GyP7eq…H5f6, sorted by block time: trade price, price in USD and block time.

By gaurav · saved 19 March 2025 · Bitquery API v2

What it returns

Filters

The query

{
  Solana(dataset: combined) {
    DEXTradeByTokens(
      limit: {count: 1}
      orderBy: {ascendingByField: "Block_Time"}
      where: {Trade: {Currency: {MintAddress: {is: "GyP7eqXc3tCqXjq8HGWAE45zMWtyLdWBLq6VxMC9H5f6"}}}}
    ) {
      Trade {
        latestP: Price(maximum: Block_Slot)
        latest: PriceInUSD(maximum: Block_Slot)
      }
      Block {
        Time(interval: {count: 1, in: minutes})
      }
    }
  }
}

Similar queries