Copy of dexscreenerprice

Returns the latest DEX trade on Ethereum, where pair smart contract is 0x7c5c…448d: buy currency symbol, buy price in USD, buy price and sell currency symbol.

By George · saved 5 July 2024 · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  EVM(network: eth, dataset: realtime) {
    DEXTrades(
      limit: {count: 1}
      orderBy: {descending: Block_Time}
      where: {Trade: {Dex: {Pair: {SmartContract: {is: "0x7c5c502bf26ad232eefb06ef1444ce8e45bd448d"}}}}, TransactionStatus: {Success: true}}
    ) {
      Trade {
        Buy {
          Currency {
            Symbol
          }
          Price_In_USD: PriceInUSD
          Price_against_sell_currency: Price
        }
        Sell {
          Currency {
            Symbol
          }
        }
      }
    }
  }
}

Similar queries