Latest Bitcoin Price (Trading API)
Latest BTC price in USD aggregated across all chains from the Trading Currencies cube
What it returns
- currency ID
- currency name
- currency symbol
- block time
- is quoted in USD
- close
- mean
- USD
- market cap
Filters
- currency ID is bid:bitcoin
- time duration is 1
The query
query LatestBitcoinPrice {
Trading {
Currencies(
where: {Currency: {Id: {is: "bid:bitcoin"}}, Interval: {Time: {Duration: {eq: 1}}}, Block: {Time: {since_relative: {days_ago: 1}}}}
limit: {count: 1}
orderBy: {descending: Block_Time}
) {
Currency {
Id
Name
Symbol
}
Block {
Time
}
Price {
IsQuotedInUsd
Ohlc {
Close
}
Average {
Mean
}
}
Volume {
Usd
}
Supply {
MarketCap
}
}
}
}
Similar queries
- Currency Liquidity Across Chains · 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
- curriences_supply · Trading (all chains) · Currencies