Speeding Up Feature Calculation on a Small Dataset for HFT on the Exchange
summary
The talk covers reducing feature-calculation latency for HFT on very small datasets (hundreds to <1000 rows). It explains why low latency matters in high-frequency trading, discusses optimizations to reduce the number of computations, proposes using NumPy structured arrays instead of Pandas DataFrame, and revisits mathematical simplifications to further cut operations.
AI-written summary · about
chapters (20)
- 0:00Introduction
- 3:16Latency types in HFT
- 5:04Exchange data stream
- 7:13Pandas performance
- 9:02NumPy arrays
- 10:50Numba acceleration
- 11:52Numba vs NumPy
- 12:57Process separation
- 14:20Optimizing features
- 16:31Final feature scheme
- 17:35Performance results
- 23:32Python vs C++
- 24:37Number of indicators
- 25:46Moving averages
- 26:50Handling price spikes
- 27:52Startup constraints
- 28:56Q&A
- 29:17Exchange details
- 29:38Hardware scaling
- 30:42DataFrame trade-offs
