Home / Companies / QuestDB / Blog / Post Details
Content Deep Dive

Building K-line (Candlestick) Charts with QuestDB and Grafana

Blog post from QuestDB

Post Details
Company
Date Published
Author
Yitaek Hwang
Word Count
1,359
Language
English
Hacker News Points
-
Summary

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.