Price Feed Integration Real-time price aggregation from multiple sources
const priceFeed = new PriceFeedIntegration(client);// Get prices from Jupiterconst prices = await priceFeed.getJupiterPrices(['SOL_MINT', 'USDC_MINT']);// Get aggregated priceconst solPrice = await priceFeed.getAggregatedPrice('SOL_MINT'); Copy
const priceFeed = new PriceFeedIntegration(client);// Get prices from Jupiterconst prices = await priceFeed.getJupiterPrices(['SOL_MINT', 'USDC_MINT']);// Get aggregated priceconst solPrice = await priceFeed.getAggregatedPrice('SOL_MINT');
Static
Rest
Optional
Calls each of the listeners registered for a given event.
Return an array listing the events for which the emitter has registered listeners.
Get aggregated price from multiple sources
Get token price from Birdeye
Get token prices from Jupiter
Get multiple token prices (batch)
Return the number of listeners listening to a given event.
Return the listeners registered for a given event.
Add a listener for a given event.
Add a one-time listener for a given event.
Remove all listeners, or those of the specified event.
Remove the listeners of a given event.
Stream price updates (polling-based)
Price Feed Integration Real-time price aggregation from multiple sources
Example