Skip to main content

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

1

Create a new pipeline

In the GoldRush Platform, navigate to Manage Pipelines and click Create Pipeline. Name it hl-analytics.
2

Select your source

Choose Hyperliquid as the chain and Fills as the data type. This streams every order fill event from Hyperliquid.
3

Configure the ClickHouse destination

Select ClickHouse as the destination type and enter your connection details:
4

Add a SQL transform (optional)

Add a transform to filter for specific trading pairs and map side codes to human-readable labels:
5

Deploy

Review and deploy. Fill events begin flowing to ClickHouse within seconds.

Verify Data

Sample Analytical Queries

Volume by coin over the last 24 hours:
Top traders by realized PnL:

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 fills entity for per-user fill data (includes PnL, fees). Use the trades entity for aggregate market trades (includes buyer/seller details).