Currently, financial analysts (and any crypto user) need easily accessible information about the cryptocurrencies they want to invest in. But it's not just about seeing each pair; it's also about being able to compare one pair (in which they want to invest) against another to see volatility and have more information to decide whether to invest or look for another pair.
Kraken Analytics Visualizer is a real-time cryptocurrency trading data visualization application that connects to the Kraken exchange's WebSocket API to display live order book information, trading pair comparisons, and historical data analysis.
Track: Orderbook Visualizer
This project is built on Next.js due to its simplicity and lightweight nature compared to other frameworks (essential for efficient use of the websocket connection without excessive resource consumption). A websocket manager handles opening and calling, eliminating the need to open a connection each time (it's opened only once, and each call has its own subscription and unsubscription process).
Technologies
Installation
Clone the repository.
Install dependencies:
npm install
Create a .env file in the root directory and add the Kraken API URLs:
NEXT_PUBLIC_KRAKEN_API_PAIRS=https://api.kraken.com/0/public/AssetPairs NEXT_PUBLIC_KRAKEN_WS_URL=wss://ws.kraken.com/v2
Considering that URLs can change, I decided to put them as environment variables so that it works well even when they change.
Usage
Dashboard
Live Order Book
Trading Pair Comparison
GitHub repo: https://github.com/nescampos/krakenanalytics
Demo: https://krakenanalytics.vercel.app/
Video: https://youtu.be/n0TA0IckMWI