Pairs Cube API (get price of a token from a specific trading pair on a specific chain)
Returns the latest 10 pairs, where market address is 3ucNos…sUxv, market network is Solana and time duration is 30: protocol, network, market name, market address, start, duration, end and 19 more fields.
What it returns
- protocol
- network
- market name
- market address
- start
- duration
- end
- base
- quote
- USD
- open
- high
- low
- close
- is quoted in USD
- simple moving
- weighted simple moving
- exponential moving
- estimate
- mean
- token name
- token symbol
- token address
- quote token name
- quote token symbol
- quote token address
Filters
- market address is 3ucNos…sUxv
- market network is Solana
- time duration is 30
The query
{
Trading {
Pairs(
limit: {count: 10}
orderBy: {descending: Block_Time}
where: {Market: {Network: {is: "Solana"}, Address: {is: "3ucNos4NbumPLZNWztqGHNFFgkHeRMBQAVemeeomsUxv"}}, Interval: {Time: {Duration: {eq: 30}}}, Price: {IsQuotedInUsd: true}}
) {
Market {
Protocol
Network
Name
Address
}
Interval {
Time {
Start
Duration
End
}
}
Volume {
Base
Quote
Usd
}
Price {
Ohlc {
Open
High
Low
Close
}
IsQuotedInUsd
Average {
SimpleMoving
WeightedSimpleMoving
ExponentialMoving
Estimate
Mean
}
}
Token {
Name
Symbol
Address
}
QuoteToken {
Name
Symbol
Address
}
}
}
}
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