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

Order book analytics using the N-Dimensional array

Blog post from QuestDB

Post Details
Company
Date Published
Author
Marko Topolnik
Word Count
3,806
Language
English
Hacker News Points
-
Summary

QuestDB's version 9 introduces N-dimensional arrays as a pivotal data type, akin to storing a NumPy array within a single database column, enhancing the efficiency of processing financial market data with vectorized SIMD instructions. This innovation simplifies the storage and analysis of order books, traditionally managed with multiple columns, by representing them as compact two-dimensional arrays, specifically for order book analytics where prices and volumes are stored in rows. This approach facilitates more streamlined and powerful analytics, such as calculating bid-ask spreads, total liquidity, and market impact analyses, all while optimizing performance and reducing query complexity. The blog post provides various examples of how these arrays can be used for market analysis, including liquidity concentration, order book imbalance, and spread monitoring, demonstrating the potential for sophisticated market microstructure analysis. By integrating time-series capabilities with these array operations, QuestDB offers a robust platform for exploring market dynamics, encouraging users to leverage this new feature for deeper insights into financial data.