save with commit
Returns the latest token, where currency ID is bid:bitcoin and time duration is 1: token address, token ID, is native, token name, network, token symbol, block date and 17 more fields.
What it returns
- token address
- token ID
- is native
- token name
- network
- token symbol
- block date
- block time
- timestamp
- start
- duration
- end
- base
- quote
- USD
- is quoted in USD
- close
- high
- low
- open
- exponential moving
- mean
- simple moving
- weighted simple moving
Filters
- currency ID is bid:bitcoin
- time duration is 1
The query
{
# For more info on the endpoint visit - https://docs.bitquery.io/docs/trading/crypto-price-api/introduction/
# For faster results try using indexed feilds in where and orderBy clause - https://docs.bitquery.io/docs/graphql/indexed-fields-reference/
# For price of a currency from a particular pair use Pairs cube instead of Tokens
Trading {
Tokens(
where: {Currency: {Id: {is: "bid:bitcoin"}}, Interval: {Time: {Duration: {eq: 1}}}}
limit: {count: 1}
orderBy: {descending: Block_Time}
) {
Token {
Address
Id
IsNative
Name
Network
Name
Symbol
TokenId
}
Block {
Date
Time
Timestamp
}
Interval {
Time {
Start
Duration
End
}
}
Volume {
Base
Quote
Usd
}
Price {
IsQuotedInUsd
Ohlc {
Close
High
Low
Open
}
Average {
ExponentialMoving
Mean
SimpleMoving
WeightedSimpleMoving
}
}
}
}
}
Similar queries
- Elysium latest token price in USD · Trading (all chains) · Tokens
- Elysium top tokens by USD volume, 24h · Trading (all chains) · Tokens
- arc mainnet minara ohlcv candles · Trading (all chains) · Tokens
- Arc Mainnet Trading: OHLCV candles for a token (v2) · Trading (all chains) · Tokens