documentation/cookbook/index.md
The Cookbook is a collection of short, actionable recipes that demonstrate how to accomplish specific tasks with QuestDB. Each recipe follows a problem-solution-result format, making it easy to find and apply solutions quickly.
Unlike comprehensive reference documentation, the Cookbook focuses on practical examples for:
Each recipe provides a focused solution to a specific problem, with working code examples and expected results.
The Cookbook is organized into the following sections:
QuestDB's time-series joins (ASOF JOIN, HORIZON JOIN) and high-resolution timestamps make it well-suited for Transaction Cost Analysis (TCA) and post-trade workflows. The Execution & Post-Trade Analysis section includes recipes for:
Most recipes run directly on our live demo instance at demo.questdb.com without any local setup. Queries that can be executed on the demo site are marked with a direct link to run them.
For recipes that require write operations or specific configuration, the recipe will indicate what setup is needed.
The demo instance contains live FX market data with tables for core prices and order book snapshots. See the Demo Data Schema page for details about available tables and their structure.
Each recipe follows a consistent format:
Start by browsing the SQL Recipes section for common patterns, or jump directly to the recipe that matches your needs.