The live website: https://0-hole-oracle-aggregator.vercel.app/
0hole Oracle Aggregator is a web3 app that fetches SOL/USD price data from Pyth Network and Chainlink oracles. The application displays the real-time prices and their average, and also visualizes the price history using a line chart. Users can filter the displayed data by selecting a specific oracle or view data from both oracles simultaneously.
- Fetch real-time SOL/USD prices from Pyth Network and Chainlink.
- Calculate and display the average price.
- Visualize the price history in a line chart.
- Dropdown to filter data by specific oracle providers.
- "Swap Now on Raydium" button that redirects to the Raydium swap page.
- Next.js
- React
- Chart.js
- Tailwind CSS
- Axios
-
Clone the repository:
git clone <repository_url>
-
Install the dependencies:
npm install
-
Start the development server:
npm run dev
-
Open your browser and navigate to
http://localhost:3000
.
/api/price
: Fetches the latest SOL/USD prices from Pyth Network and Chainlink, and calculates the average price.
- Open the application in your browser.
- Use the dropdown menu to filter data by specific oracle providers or view data from all providers.
- Click the "Swap Now on Raydium" button to go to the Raydium swap page.
This project is licensed under the MIT License.