Objective
Turn timestamped order-book observations into consistent datasets for feature calculation and offline model evaluation.
DATA RESEARCH
A Python workflow for collecting streaming market observations, preparing structured datasets, and running offline machine learning experiments.
Architecture overview · no live market feed
01 / OVERVIEW
Turn timestamped order-book observations into consistent datasets for feature calculation and offline model evaluation.
Built asynchronous collection and data-processing stages, handled incomplete records, and prepared features and time-aligned labels for XGBoost experiments and backtesting.
02 / WORKFLOW
Receive timestamped observations with asynchronous Python WebSockets.
Use an in-memory queue to separate reception from append-only disk writing.
Handle missing order-book values and malformed records, sort by timestamp, and convert to Parquet.
Calculate mid-price, spread, order-book imbalance, micro-price, and temporal features.
Align five-minute prediction labels and run offline XGBoost classification and backtests.
03 / PROJECT RESULTS
| Area | Documented result |
|---|---|
| Collection | Recorded Indonesian stock-market data covering 170 tickers. |
| Transformation | Converted 14 GB of raw logs into 1.3 GB of Parquet data using out-of-core processing and Snappy compression. |
| Data preparation | Handled incomplete records and sorted historical data by timestamp. |
| Offline evaluation | Backtested XGBoost models using bid/ask execution prices and trading costs. |
These results describe data collection and processing. They do not establish validated prediction accuracy or trading profitability.
04 / RESEARCH CONSIDERATIONS
Time ordering, symbol boundaries, and feature availability matter when building predictors. Time-based validation must account for overlapping label horizons.
Queue capacity, shutdown behaviour, and persistence guarantees require separate validation. The documented architecture does not by itself establish production reliability.
05 / PUBLIC MATERIALS
The public repository contains architecture documentation, a fictional input-symbol list, and an ingestion dependency reference. The full implementation and datasets remain private because they include broker-specific access procedures and session handling.
Read the project documentationREFERENCE MATERIAL
More detail is available in the original repository.
View GitHub documentation