historical-ohlc-for-solana

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

By ytokpa · saved 5 December 2024 · run 4 times · Bitquery API v2

What it returns

Filters

The query

{
  Solana(dataset: archive) {
    DEXTradeByTokens(
      orderBy: {ascendingByField: "Block_Timefield"}
      where: {Trade: {Currency: {MintAddress: {is: "J22UfGMNMtDzwxE8RwYdcQZeyKEif2CwGepNmSkzhkwY"}}}}
      limit: {count: 1}
    ) {
      Trade {
        
        close: PriceInUSD(maximum: Block_Slot)
      }
      Block {
        Timefield: Time(interval: {in: minutes, count: 1})
      }
    }
  }
}

Similar queries