trading api check 2
Returns the latest 150 pairs, where token ID is B6uecu…pump, market address is 8pVR83…Lyky and time duration is 60: block time, open, high, low, close and base.
What it returns
- block time
- open
- high
- low
- close
- base
Filters
- token ID is B6uecu…pump
- market address is 8pVR83…Lyky
- time duration is 60
The query
query GetOHLCV($tokenId: String!, $market: String!, $duration: Int!, $limit: Int!) {
Trading {
Pairs(
where: {
Token: { Id: { is: $tokenId } }
Market: { Address: { is: $market } }
Interval: { Time: { Duration: { eq: $duration } } }
Price: { IsQuotedInUsd: false }
}
limit: { count: $limit }
orderBy: { descending: Block_Time }
) {
Block { Time }
Price { Ohlc { Open High Low Close } }
Volume { Base }
}
}
}
Variables
{
"tokenId": "B6uecug9Z4ABKpaHYWjh6ikC9CsZYkZTNT5ZtSyQpump",
"market": "8pVR838Emi6EytsjYh55GS1ywSGaT9S3F4kF1vtuLyky",
"duration": 60,
"limit": 150
}
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