Skip to main content

Elysium Token Price API: HYPE and Token OHLC

Get token prices on Elysium in USD with Bitquery GraphQL. Elysium (network: elysium, chain ID 99901) is Kinetiq's Layer 2 for the Hyperliquid ecosystem, with HYPE as the gas token. Trading.Tokens holds pre-aggregated USD candles per token, and Trading.Pairs holds candles per token pair and liquidity pool. A token is picked with Token.Id: bid:elysium: followed by the contract address, or just bid:elysium for native HYPE.

API Key Required

To query or stream data outside the Bitquery IDE, you need an API access token.

Follow the steps here: How to generate Bitquery API token ➤


Latest price of a token​

The most recent one-minute candle gives the current price. This returns the WHYPE price, which tracks HYPE.

Run this query in the IDE

{
Trading {
Tokens(
where: {Token: {Id: {is: "bid:elysium:0xba876237b0f021a6c6d852d6c26e107997cc5e81"}}, Interval: {Time: {Duration: {eq: 60}}}}
orderBy: {descending: Interval_Time_Start}
limit: {count: 1}
) {
Token { Name Symbol Address Id }
Interval { Time { Start End } }
Price {
Ohlc { Close }
Average { Mean SimpleMoving ExponentialMoving }
}
Volume { Base Usd }
}
}
}

Close is the last traded price in the candle. Mean and the moving averages smooth out single outlier trades.


HYPE price: OHLC candles​

The last 24 one-hour candles for WHYPE. Duration: 3600 picks one-hour candles.

Run this query in the IDE

{
Trading {
Tokens(
where: {Token: {Id: {is: "bid:elysium:0xba876237b0f021a6c6d852d6c26e107997cc5e81"}}, Interval: {Time: {Duration: {eq: 3600}}}}
orderBy: {descending: Interval_Time_Start}
limit: {count: 24}
) {
Token { Name Symbol Address Id }
Interval { Time { Start End } }
Volume { Usd }
Price { IsQuotedInUsd Ohlc { Open High Low Close } }
}
}
}

Change Duration (60, 300, 900, 3600 seconds) for other candle sizes.


Stream live prices​

Run the candle query as a subscription to get each new one-minute candle as it forms.

Run this query in the IDE

subscription {
Trading {
Tokens(
where: {Token: {Id: {is: "bid:elysium:0xba876237b0f021a6c6d852d6c26e107997cc5e81"}}, Interval: {Time: {Duration: {eq: 60}}}}
) {
Token { Symbol Id }
Interval { Time { Start End } }
Price { Ohlc { Open High Low Close } }
Volume { Usd }
}
}
}

Prices of several tokens at once​

limitBy returns the newest candle for each token in the list. The list here is WHYPE, KNTQ and native HYPE.

Run this query in the IDE

{
Trading {
Tokens(
where: {Token: {Id: {in: ["bid:elysium:0xba876237b0f021a6c6d852d6c26e107997cc5e81", "bid:elysium:0xe45a355d9e9cad2ad85f2d03e3ee3102a036acf0", "bid:elysium"]}}, Interval: {Time: {Duration: {eq: 60}}}}
orderBy: {descending: Interval_Time_Start}
limitBy: {by: Token_Id, count: 1}
limit: {count: 10}
) {
Token { Name Symbol Id }
Interval { Time { Start } }
Price { Ohlc { Close } }
}
}
}

Candles of one token pair​

Trading.Pairs prices one token in another, per liquidity pool. This returns five-minute WHYPE/USDC candles.

Run this query in the IDE

{
Trading {
Pairs(
where: {Market: {NetworkBid: {is: "bid:elysium"}}, Token: {Id: {is: "bid:elysium:0xba876237b0f021a6c6d852d6c26e107997cc5e81"}}, QuoteToken: {Id: {is: "bid:elysium:0xb47c4c8f73f009cc0c0d3f92b388d13e293f0b65"}}, Interval: {Time: {Duration: {eq: 300}}}}
orderBy: {descending: Interval_Time_Start}
limit: {count: 24}
) {
Market { Protocol Address Id }
Interval { Time { Start End } }
Price { Ohlc { Open High Low Close } }
Volume { Base Quote Usd }
}
}
}

Price here is in the quote token (USDC), and Volume.Usd is the USD volume. Rows with different Market.Id are different liquidity pools of the same pair.


Top tokens by volume​

Summing Volume.Usd over the last 24 hours ranks the most traded tokens on Elysium.

Run this query in the IDE

{
Trading {
Tokens(
where: {Token: {Id: {startsWith: "bid:elysium"}}, Interval: {Time: {Duration: {eq: 3600}}}, Block: {Time: {since_relative: {hours_ago: 24}}}}
orderBy: {descendingByField: "volumeUsd"}
limit: {count: 20}
) {
Token { Name Symbol Address Id }
volumeUsd: sum(of: Volume_Usd)
}
}
}

FAQ​

How do I get the HYPE price on Elysium? Query Trading.Tokens with Token.Id bid:elysium:0xba876237b0f021a6c6d852d6c26e107997cc5e81 (WHYPE), as in Latest price of a token.

Is kHYPE priced 1:1 with HYPE? No. kHYPE is staked HYPE and has its own market price from the liquidity pools it trades in.

Why filter by Token.Id and not by symbol? Look-alike tokens exist on Elysium, for example fake USD Coin and Wrapped HYPE contracts. Token.Id contains the contract address, so it cannot match a look-alike.

Build with Bitquery

Ready to run this in production?

Get an API key and run these queries in minutes, or talk to us about plans and enterprise delivery.