SolanaUI

Price Utilities

Some SolanaUI components require historical price data. These components are designed to be data source agnostic, however SolanaUI comes with an example using the birdeye API.

Historical Price Data

Copy the code below to lib/prices.ts, or wherever is convenient, just be sure to update the component imports too.

Use the fetchPriceHistory function in your codebase like so.