Currency Cube API (get price of a Currency aggregated on all chain)
Returns the latest currencie, where currency ID is bid:bitcoin and time duration is 60: currency ID, currency name, currency symbol, start, duration, end, base and 10 more fields.
What it returns
- currency ID
- currency name
- currency symbol
- start
- duration
- end
- base
- base attributed to USD
- quote
- USD
- is quoted in USD
- open
- high
- low
- close
- mean
- exponential moving
Filters
- currency ID is bid:bitcoin
- time duration is 60
The query
{
Trading {
Currencies(
where: {Currency: {Id: {is: "bid:bitcoin"}}, Interval: {Time: {Duration: {eq: 60}}}}
limit: {count: 1}
orderBy: {descending: Block_Time}
) {
Currency {
Id
Name
Symbol
}
Interval {
Time {
Start
Duration
End
}
}
Volume {
Base
BaseAttributedToUsd
Quote
Usd
}
Price {
IsQuotedInUsd
Ohlc {
Open
High
Low
Close
}
Average {
Mean
ExponentialMoving
}
}
}
}
}
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