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

Transaction Cost Analysis with QuestDB and Polars: VWAP, Slippage and Markout

Blog post from QuestDB

Post Details
Company
Date Published
Author
QuestDB
Word Count
2,839
Company Posts That Month
5
Language
English
Hacker News Points
-
Post removed?
No
Summary

QuestDB is an open-source time-series database designed for high-performance workloads, such as those on trading floors, offering ultra-low latency, high ingestion throughput, and a multi-tier storage engine. It natively supports Parquet and SQL, allowing for data portability and AI-readiness without vendor lock-in. The text outlines a process for building a transaction cost analysis (TCA) pipeline using QuestDB, ConnectorX, and Polars, capturing live crypto market data to simulate and analyze the costs of a TWAP execution. QuestDB handles time-series data queries, ConnectorX efficiently transfers query results to Python, and Polars processes the data to generate actionable insights, such as comparing the average fill price against the market's volume-weighted average price (VWAP). The analysis highlights the impact of trading strategies on execution costs, emphasizing the importance of understanding market dynamics and adverse selection. The pipeline can be adapted for various real-world applications, including execution scorecards and backtesting, demonstrating the flexibility and power of open-source tools in financial data analysis.

Trends Found in this Post

No tracked trend matches for this post yet.

Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.