24hr change on multi currency in trons

Returns 3 DEX trades on Tron, where base currency is TR7NHq…Lj6t, TXL6rJ…8MRT or 6 more, quote currency is TNUC9Q…jWFR and time till 2024-07-18, sorted by pfinal, highest first: base currency address, base currency symbol, quote currency address, quote currency symbol, minimum of block, maximum of block, expression and trade amount.

By bekoga · saved 19 October 2024 · run 4 times · Bitquery API v1

What it returns

Filters

The query

{
  tron {
    One_hr_Change: dexTrades(
      options: {desc: "pfinal", limitBy: {each: "baseCurrency.address", limit: 1}, limit: 3}
      baseCurrency: {in: ["TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t", "TXL6rJbvmjD46zeN1JssfgxvSo99qC8MRT","TAFjULxiVgT4qWk6UZwjqwZXTSaGaqnVp4","TPYmHEhy5n8TCEfYGqW2rPxsghSfzghPDn","TSSMHYeV2uE9qYH95DqyoCuNCzEL1NvU3S","TCFLL5dx5ZJdKnWuesXxi1VPwjLVmWZZy9","TUaUHU9Dy8x5yNi1pKnFYqHWojot61Jfto","TE2RzoSV3wFK99w6J9UnnZ4vLfXYoxvRwP"]}
      quoteCurrency: {is: "TNUC9Qb1rRpS5CbWLmNMxXBjyFoydXjWFR"}
      time: {till: "2024-07-18T11:00:00"}
    ) {
      baseCurrency {
        address
        symbol
      }
      quoteCurrency {
        address
        symbol
      }
      initialPrice: minimum(of: block, get: price)
      lastPrice: maximum(of: block, get: price)
      priceCalculation: expression(get: "lastPrice / initialPrice")
      pfinal: expression(get: "lastPrice / 100")
      tradeAmount(in: USD)
    }
  }
}

Similar queries