token_price_by_token_address
Returns the latest 2 DEX trades on Ethereum, where buy currency smart contract is 0x6982…1933 or 0x2a6c…ccef: buy price, buy seller, buy currency name, buy currency symbol, sell price, sell buyer, sell currency name and 3 more fields.
What it returns
- buy price
- buy seller
- buy currency name
- buy currency symbol
- sell price
- sell buyer
- sell currency name
- sell currency symbol
- block number
- transaction hash
Filters
- buy currency smart contract is 0x6982…1933 or 0x2a6c…ccef
The query
query MyQuery {
EVM(dataset: combined, network: eth) {
DEXTrades(
where: {Trade: {Buy: {Currency: {SmartContract: {in: ["0x6982508145454ce325ddbe47a25d4ec3d2311933", "0x2a6cb837201da143df0a448cb862ab23b941ccef"]}}}}}
limit: {count: 2}
limitBy: {by: Trade_Buy_Currency_SmartContract, count: 1}
orderBy: {descending: Block_Number}
) {
Trade {
Buy {
Price
Seller
Currency {
Name
Symbol
}
}
Sell {
Price
Buyer
Currency {
Name
Symbol
}
}
}
Block {
Number
}
Transaction {
Hash
}
}
}
}
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