multi_token_live_price_usd

Returns the latest DEX trades on Ethereum, where sell currency smart contract is 0x5149…86CA, 0x9511…27cf or 2 more: buy currency symbol, buy price in USD, buy price and sell currency symbol.

By George · saved 8 July 2024 · run 14 times · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  EVM(network: eth, dataset: realtime) {
    DEXTrades(
      orderBy: {descending: Block_Time}
      where: {Trade: {Sell: {Currency: {SmartContract: {in: ["0x514910771AF9Ca656af840dff83E8264EcF986CA", "0x9511ff502f982643935a39206f98a6c18d4527cf", "0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984", "0x72e4f9f808c49a2a61de9c5896298920dc4eeea9"]}}}}, TransactionStatus: {Success: true}}
      limitBy: {by: Trade_Sell_Currency_Symbol, count: 1}
    ) {
      Trade {
        Buy {
          Currency {
            Symbol
          }
          Price_In_USD: PriceInUSD
          Price_against_sell_currency: Price
        }
        Sell {
          Currency {
            Symbol
          }
        }
      }
    }
  }
}

Similar queries