Use Case
You want to build a real-time trading analytics dashboard by streaming Hyperliquid fill events into ClickHouse. This gives you sub-second query performance over high-volume trading data for PnL tracking, volume analysis, and market monitoring.Pipeline Configuration
Create a new pipeline
In the GoldRush Platform, navigate to Manage Pipelines and click Create Pipeline. Name it
hl-analytics.Select your source
Choose Hyperliquid as the chain and Fills as the data type. This streams every order fill event from Hyperliquid.
Configure the ClickHouse destination
Select ClickHouse as the destination type and enter your connection details:
Add a SQL transform (optional)
Add a transform to filter for specific trading pairs and map side codes to human-readable labels:
Verify Data
Sample Analytical Queries
Volume by coin over the last 24 hours:Production Tips
- Batch size: ClickHouse performs best with large inserts. The default of 10,000 rows per batch is a good starting point. Increase to 50,000+ for high-throughput streams.
- ORDER BY key: Choose columns that match your most common query patterns.
(coin, block_number)works well for time-series analytics by trading pair. - Trades vs Fills: Use the
fillsentity for per-user fill data (includes PnL, fees). Use thetradesentity for aggregate market trades (includes buyer/seller details).