delabs_price_eth
Returns the latest DEX trade on Ethereum, where buy currency smart contract is 0xaaeE…1C7a, sell currency smart contract is 0xC02a…6Cc2 and pair smart contract is 0xc2ea…539d: buy currency symbol, buy decimals, buy currency name, buy price in USD, buy price, sell currency symbol, sell decimals and sell currency name.
What it returns
- buy currency symbol
- buy decimals
- buy currency name
- buy price in USD
- buy price
- sell currency symbol
- sell decimals
- sell currency name
Filters
- buy currency smart contract is 0xaaeE…1C7a
- sell currency smart contract is 0xC02a…6Cc2
- pair smart contract is 0xc2ea…539d
The query
query MyQuery {
EVM(network: eth, dataset: realtime) {
DEXTrades(
limit: {count: 1}
orderBy: {descending: Block_Time}
where: {Trade: {Buy: {Currency: {SmartContract: {is: "0xaaeE1A9723aaDB7afA2810263653A34bA2C21C7a"}}}, Sell: {Currency: {SmartContract: {is: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"}}}, Dex: {Pair: {SmartContract: {is: "0xc2eaB7d33d3cB97692eCB231A5D0e4A649Cb539d"}}}}, TransactionStatus: {Success: true}}
) {
Trade {
Buy {
Currency {
Symbol
Decimals
Name
}
Price_In_USD: PriceInUSD
Price_against_sell_currency: Price
}
Sell {
Currency {
Symbol
Decimals
Name
}
}
}
}
}
}
Similar queries
- Latest Curve DEX swaps on Ethereum · Ethereum · DEXTrades
- Top Curve liquidity pools by 24h volume on Ethereum · Ethereum · DEXTrades
- STRN_TOKEN_MULTIPLE_DECIMALS_DEX_TRADES · Ethereum · DEXTrades
- USDT DECIMAL SHOWING 0 · Ethereum · DEXTrades
- Trades - 0xEE61159E8A72A08371c52D62c19Efd0C7914f917 · Ethereum · DEXTrades