first price after a given time

Returns one DEX trade by token on Ethereum, where currency smart contract is 0xf211…a549 and block time after 2024-01-01, sorted by block time: price in USD, smart contract, currency symbol, block time and block number.

By gaurav · saved 23 October 2024 · run 2 times · Bitquery API v2

What it returns

Filters

The query

query LatestTokenPriceAfterTime {
  EVM(network: eth dataset:combined) {
    DEXTradeByTokens(
      limit: {count: 1}
      orderBy: {ascending: Block_Time}
      where: {Block: {Time: {after: "2024-01-01T00:00:00Z"}},
        Trade: {Currency: {SmartContract: {is: "0xf211b655431c10e72c1caeae37688ae9f7f7a549"}}}}
    ) {
      Trade {
        PriceInUSD
        Currency {
          SmartContract
          Symbol
        }
      }
      Block {
        Time
        Number
      }
    }
  }
}

Similar queries