Building K-line (Candlestick) Charts with QuestDB and Grafana
Blog post from QuestDB
This tutorial guides users through creating K-line, or candlestick, charts that visualize crypto asset price movements over time using QuestDB and Grafana. By streaming real-time trade data from Polygon.io, the tutorial demonstrates how to efficiently aggregate open, high, low, and close (OHLC) data points using QuestDB's materialized views, which offer performance benefits by persisting data to disk and providing incremental refresh capabilities. The tutorial includes setting up QuestDB and Grafana via Docker Compose, ingesting data with Python scripts, and constructing visualizations in Grafana using its built-in Candlestick plugin. It emphasizes the flexibility and performance of materialized views and offers insights into using different data insertion protocols for varying throughput requirements.