multi_token_live_price_usd

Returns DEX trades on Ethereum, where base currency is 0x5149…86CA, 0x9511…27cf or 2 more and time since 2024-05-30, sorted by trade amount, highest first: base amount, base currency address, base currency symbol, quote amount, quote currency address, quote currency symbol, expression and trade amount.

By Coinpedia · saved 12 June 2024 · run 10 times · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: ethereum) {
    dexTrades(
      options: {desc: "tradeAmount", limitBy: {each: "baseCurrency.address", limit: 1}}
      baseCurrency: {in: ["0x514910771AF9Ca656af840dff83E8264EcF986CA", "0x9511ff502f982643935a39206f98a6c18d4527cf", "0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984", "0x72e4f9f808c49a2a61de9c5896298920dc4eeea9"]}
      time: {since: "2024-05-30T10:49:02Z"}
    ) {
      baseAmount(calculate: anyLast)
      baseCurrency {
        address
        symbol
      }
      quoteAmountUSD : quoteAmount(in: USD, calculate: anyLast)
      quoteCurrency {
        address
        symbol
      }
      price: expression(get: "quoteAmountUSD / baseAmount")
      tradeAmount(in: USD)
    }
  }
}

Similar queries