샘플 앱으로 돌아가기
하이퍼리퀴드 트레이딩 대시보드
A dashboard for real-time whale trades, liquidations, and trending tokens from Hyperliquid using Quicknode's Hypercore gRPC.
프론트엔드 프레임워크/라이브러리:
Next.js
언어:
TypeScript
빌드 도구/개발 서버:
npm

개요
This sample app streams every trade from Hyperliquid via Quicknode's Hypercore gRPC and filters for whale trades, liquidations, and trending tokens. gRPC bidirectional streaming delivers data with sub-second latency, with no polling required.
추가 자료
For video walkthrough of building the app, check out our video
건축
Quicknode Hypercore gRPC
(stream every trade)
│
▼
┌─────────────────┐
│ Worker │
│ Filter + Agg │
└────────┬────────┘
│
┌────────────┼────────────┐
▼ ▼ ▼
Whales Liquidations Trending
(≥$50K) (1m buckets)
│ │ │
└────────────┼────────────┘
▼
┌─────────────────┐
│ PostgreSQL │
└────────┬────────┘
│
▼
┌─────────────────┐
│ Next.js │
│ [15m/30m/1h] │
└────────┬────────┘
│
▼
┌─────────────────┐
│ Dashboard │
└─────────────────┘
주요 기능
- Whale trade detection (≥$50K notional, configurable)
- Liquidation tracking with full metadata (user, mark price, method)
- Trending tokens ranked by trade count with buy/sell breakdown
- Time window filtering (15m, 30m, 1h)
- Custom coin tracking, any Hyperliquid token
- Volume sparklines with trend indicators
- Explorer deep links for trade verification
- 1-minute aggregation buckets for efficient trending queries
필수 조건
- Node.js 20+ installed
- A PostgreSQL instance, you can use a platform like Aiven to spin up a hosted instance. We'll need this for
DATABASE_URL. - Quicknode 계정 with Hypercore gRPC endpoint. We'll need this for
GRPC_ENDPOINT그리고AUTH_TOKEN.
시작하기
1. Clone and install
git clone https://github.com/quiknode-labs/qn-guide-examples.git
cd qn-guide-examples/sample-dapps/hyperliquid-trading-dashboard
npm install
2. Start PostgreSQL
If you are using a hosted PostgreSQL instance, skip this step.
npm run db:up
3. 환경 설정
export DATABASE_URL="postgresql://postgres:postgres@localhost:5432/hypercore"
export GRPC_ENDPOINT="your-endpoint.hype-mainnet.quiknode.pro:10000"
export AUTH_TOKEN="your_quicknode_token"
Note: Just paste these with values in two terminal windows. You'll need one window for the Next.js app and another for the database worker.
4. Initialize database
npm run db:push
5. Start the worker
npm run worker
This starts the worker process that:
- Connects to Quicknode HyperCore gRPC
- Streams live trading events
- Stores raw trades and aggregated data in PostgreSQL
- Tracks whale activity and liquidations
You should see:
Ping ok: { count: 1 }
Ingester running
WHALE_MIN_USD: 50000
6. Start the dashboard
npm run dev
Database
PostgreSQL with Prisma ORM. Two tables:
TradeEvent- Individual whale trades and liquidationsTradeAggMinute- Per-minute aggregations for trending
Common commands:
npm run db:up # Start PostgreSQL container
npm run db:push # Apply schema
npm run db:studio # Open Prisma Studio
API Endpoints
GET /api/whales?coin=BTC&windowMin=15&thresholdUsd=50000- Whale tradesGET /api/liquidations?windowMin=15- LiquidationsGET /api/trending?windowMin=15- Trending coinsGET /api/sparklines?windowMin=15&coins=BTC,ETH,SOL- Volume sparklinesGET /api/health- Health check
미리 보기

자세히 알아보기
기여 및 피드백
여러분의 의견을 듣고 싶으며, 이 샘플 앱에 대한 모든 기여를 환영합니다!
문제를 신고하거나 피드백을 공유하려면, 다음에서 GitHub 이슈를 생성해 주세요. qn-가이드-예시 저장소.
기여하시려면 다음 단계를 따르세요:
- 저장소를 포크하기
- 기능 브랜치 생성:git checkout -b feature/amazing-feature
- 변경 사항을 커밋하세요:git commit -m "멋진 기능 추가"
- 브랜치를 푸시하세요:git push origin feature/amazing-feature
- 풀 리퀘스트를 제출하세요.
더 많은 샘플 앱 살펴보기