pl price query

Returns one DEX trade on Ethereum, where buy currency smart contract is 0xa0b8…eb48 and block time after tttt, sorted by block time: block time and buy price.

By Divyasshree N · saved 11 October 2023 · run 5 times · Bitquery API v2

What it returns

Filters

The query

{
  EVM(dataset: combined, network: eth) {
    min_trade: DEXTrades(
      where: {Trade: {Buy: {Currency: {SmartContract: {is: "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"}}}}, Block: {Time: {after: "tttt"}}}
      limit: {count: 1}
      orderBy: {ascending: Block_Time}
    ) {
      Block {
        Time
      }
      Trade {
        Buy {
          Price
        }
      }
    }
    latest: DEXTrades(
      where: {Trade: {Buy: {Currency: {SmartContract: {is: "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"}}}}, Block: {Time: {after: "tttt"}}}
      limit: {count: 1}
      orderBy: {ascending: Block_Time}
    ) {
      Block {
        Time
      }
      Trade {
        Buy {
          Price
        }
      }
    }
  }
}

Similar queries