token usd price using trading api
Returns 10 pairs, where token ID is bid:eth:0xa12cc123ba206d4031d1c7f6223d1c2ec249f4f3 and time duration is 1, sorted by interval time start, highest first: token name, token address, token ID, network bid, mean, estimate, exponential moving and 6 more fields.
What it returns
- token name
- token address
- token ID
- network bid
- mean
- estimate
- exponential moving
- simple moving
- weighted simple moving
- open
- high
- low
- close
Filters
- token ID is bid:eth:0xa12cc123ba206d4031d1c7f6223d1c2ec249f4f3
- time duration is 1
The query
query MyQuery {
Trading {
Pairs(
where: {Token: {Id: {is: "bid:eth:0xa12cc123ba206d4031d1c7f6223d1c2ec249f4f3"}}, Interval: {Time: {Duration: {eq: 1}}}, Price: {IsQuotedInUsd: true}}
limit: {count: 10}
orderBy: {descending: Interval_Time_Start}
) {
Token {
Name
Address
Id
NetworkBid
}
Price {
Average {
Mean
Estimate
ExponentialMoving
SimpleMoving
WeightedSimpleMoving
}
Ohlc {
Open
High
Low
Close
}
}
}
}
}
Similar queries
- Elysium pair OHLC candles (WHYPE/USDC, 5 min) · Trading (all chains) · Pairs
- Elysium top trading pairs by USD volume, 24h · Trading (all chains) · Pairs
- arc mainnet minara pool price · Trading (all chains) · Pairs
- Arc Mainnet Trading: Latest price of a token (v2) · Trading (all chains) · Pairs
- save with commit · Trading (all chains) · Tokens