TORA / WETH latest trades
Returns the latest 50 DEX trades by token on Ethereum, where side currency smart contract is 0xc02a…6cc2, currency smart contract is 0x1bb4…0de4 and side amount is above 0: block time, owner address, protocol family, protocol name, currency symbol, smart contract, currency name and 9 more fields.
What it returns
- block time
- owner address
- protocol family
- protocol name
- currency symbol
- smart contract
- currency name
- trade price
- amount in USD
- trade amount
- side type
- side currency symbol
- side smart contract
- side currency name
- side amount in USD
- side amount
Filters
- side currency smart contract is 0xc02a…6cc2
- currency smart contract is 0x1bb4…0de4
- side amount is above 0
- trade price is above 0
The query
query LatestTrades($network: evm_network, $token: String, $base: String) {
EVM(network: $network) {
DEXTradeByTokens(
orderBy: {descending: Block_Time}
limit: {count: 50}
where: {Trade: {Side: {Amount: {gt: "0"}, Currency: {SmartContract: {is: $base}}}, Currency: {SmartContract: {is: $token}}, Price: {gt: 0}}}
) {
Block {
allTime: Time
}
Trade {
Dex {
OwnerAddress
ProtocolFamily
ProtocolName
}
Currency {
Symbol
SmartContract
Name
}
Price
AmountInUSD
Amount
Side {
Type
Currency {
Symbol
SmartContract
Name
}
AmountInUSD
Amount
}
}
}
}
}
Variables
{
"network": "eth",
"token": "0x1bb4afbf2ce0c9ec86e6414ad4ba4d9aab1c0de4",
"base": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"
}
Similar queries
- CRV hourly OHLC on Curve - Ethereum · Ethereum · DEXTradeByTokens
- Top Metric liquidity pools by 24h volume on Ethereum · Ethereum · DEXTradeByTokens
- ATH of eth token · Ethereum · DEXTradeByTokens
- historical price and historical volume · Ethereum · DEXTradeByTokens
- topTraders EVM · Ethereum · DEXTradeByTokens