Elysium WHYPE USDC daily DEX trades history
Returns daily DEX trades of WHYPE against USDC on the Elysium blockchain, with trade count, WHYPE and USDC volume and the open and close WHYPE price in USDC, from DEXTradeByTokens on the combined dataset.
What it returns
- block date
- count
- sum of trade amount
- sum of trade side amount
- trade price
Filters
- currency smart contract is 0xba87…5e81
- side currency smart contract is 0xb47c…0b65
The query
{
EVM(network: elysium, dataset: combined) {
DEXTradeByTokens(
where: {Trade: {Currency: {SmartContract: {is: "0xba876237b0f021a6c6d852d6c26e107997cc5e81"}}, Side: {Currency: {SmartContract: {is: "0xb47c4c8f73f009cc0c0d3f92b388d13e293f0b65"}}}}, Block: {Time: {since_relative: {days_ago: 60}}}}
orderBy: {descendingByField: "Block_Date"}
) {
Block { Date }
trades: count
whype_volume: sum(of: Trade_Amount)
usdc_volume: sum(of: Trade_Side_Amount)
Trade {
open: Price(minimum: Block_Time)
close: Price(maximum: Block_Time)
}
}
}
}
Similar queries
- Elysium first blocks since genesis (archive) · Elysium · Blocks
- Elysium daily blocks and transactions history · Elysium · Blocks