last_7_days_price

Returns DEX trades by token on Ethereum, where side currency smart contract is 0x5149…86CA, currency smart contract is 0xC02a…6Cc2 and block date after 2024-03-13, sorted by block time: block time, trade price and side currency name.

By Omkar_BQ · saved 19 March 2024 · run 13 times · Bitquery API v2

What it returns

Filters

The query

{
  EVM(dataset: combined, network: eth) {
    DEXTradeByTokens(
      orderBy: {ascendingByField: "Block_Time"}
      where: {Trade: {Side: {Currency: {SmartContract: {is: "0x514910771AF9Ca656af840dff83E8264EcF986CA"}}}, Currency: {SmartContract: {is: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"}}}, Block: {Date: {after: "2024-03-13"}}}
    ) {
      Block {
        Time(interval: {in: days, count: 1})
      }
      Trade {
        Price(maximum: Block_Number)
        Side {
          Currency {
            Name
          }
        }
      }
    }
  }
}

Similar queries