Eth_USD_Price
Returns the latest DEX trade on Ethereum, where buy currency smart contract is 0xdAC1…1ec7, sell currency smart contract is 0xC02a…6Cc2 and block time till 2023-11-24: sell currency symbol, sell currency name, sell price and block time.
What it returns
- sell currency symbol
- sell currency name
- sell price
- block time
Filters
- buy currency smart contract is 0xdAC1…1ec7
- sell currency smart contract is 0xC02a…6Cc2
- block time till 2023-11-24
The query
{
EVM(network: eth, dataset: combined) {
DEXTrades(
where: {Trade: {Buy: {Currency: {SmartContract: {is: "0xdAC17F958D2ee523a2206206994597C13D831ec7"}}}, Sell: {Currency: {SmartContract: {is: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"}}}}, Block: {Time: {till: "2023-11-24T07:31:00Z"}}}
orderBy: {descending: Block_Number}
limit: {count: 1}
) {
Trade {
Sell {
Currency {
Symbol
Name
}
Price
}
}
Block {
Time
}
}
}
}
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