How jwallbridge/translob works
TransLOB is research code for predicting future limit-order-book price movements with a CNN followed by a Transformer. The README describes the product workflow, but the repository contains layer/function implementations rather than a runnable data, training, or inference pipeline. Accordingly, the graph shows the documented model stages and the Transformer’s implemented attention block without implying an executable end-to-end assembly; the README’s FI-2010 data and prediction-label details are represented as context, not as implemented ingestion or labeling components.
Main entry points: LobFeatures.py CNN Feature Extraction · LobTransformer.py Transformer Block · LobPosition.py Position Encoding · LobAttention.py Self-Attention
Components 8
LOB Features
- CNN Feature Extraction
python/LobFeatures.py - Causal Convolution
python/LobFeatures.py
Transformer Layers
- Position Encoding
python/LobPosition.py - Transformer Block
python/LobTransformer.py - Self-Attention
python/LobAttention.py
Prediction Context
- LOB Snapshots
- Price Movement Prediction
Other components
- Researcher
Connections 7
- Researcher → LOB Snapshots: provides snapshots
README.md - LOB Snapshots → CNN Feature Extraction: extracts features
README.md - CNN Feature Extraction → Transformer Block: feeds Transformer
README.md - CNN Feature Extraction → Position Encoding: adds position encoding
README.md - Transformer Block → Self-Attention: uses attention
python/LobTransformer.py - Transformer Block → Price Movement Prediction: predicts movements
README.md - Researcher → Price Movement Prediction: seeks prediction
README.md