volume price x hours ago for a currency
Returns currencies: currency ID, currency name, currency symbol, sum of volume USD and average of price average mean.
What it returns
- currency ID
- currency name
- currency symbol
- sum of volume USD
- average of price average mean
The query
{
Trading {
Currencies(
where: {Currency: {Id: {includesCaseInsensitive: "9WHhgXJBGgxghkh5wAUWJFHVbnsRbonRYTnH2EChpump"}}, Block: {Time: {since_relative: {hours_ago: 24}}}}
) {
Currency {
Id
Name
Symbol
}
v1h: sum(of: Volume_Usd, if: {Block: {Time: {since_relative: {hours_ago: 1}}}})
v12h: sum(
of: Volume_Usd
if: {Block: {Time: {since_relative: {hours_ago: 12}}}}
)
v24: sum(of: Volume_Usd)
Price2h: average(
of: Price_Average_Mean
if: {Block: {Time: {since_relative: {hours_ago: 2}}}}
)
Price12h: average(
of: Price_Average_Mean
if: {Block: {Time: {since_relative: {hours_ago: 12}}}}
)
}
}
}
Similar queries
- Currency Liquidity Across Chains · Trading (all chains) · Currencies
- Latest Bitcoin Price (Trading API) · Trading (all chains) · Currencies
- Arbitrum mcap · Trading (all chains) · Currencies
- btc volume, tokens vs currency cube · Trading (all chains) · Currencies
- tv-currency · Trading (all chains) · Currencies