Papers
In preparation.
Doctoral research · Tampere University · 2024–
Doctoral research in financial data science. Main supervisor Prof. Juho Kanniainen, co-supervisor Dr. Henri Hansen, University Lecturer.
A limit order book is the live list of every outstanding order to buy or sell a stock. Each new order, cancellation and trade changes it, and the busiest stocks produce millions of these events in a single trading day. The mid-price, halfway between the best bid and the best ask, moves as a result.
My models read a segment of the latest events, 512 of them in the figure here, and give three probabilities: that the mid-price will be lower, about the same or higher a set number of events later, here 50. I study whether context from the whole trading day improves that prediction, and whether a memory that keeps learning while the market trades builds that context better than simpler ways of carrying state.
A model sees only a short segment of recent events, but something from hours earlier, such as a large seller active since the open or a volatile morning, can still move the price at noon.
As in language modelling, each order-book event becomes a token from a small vocabulary (side, message type, distance from the best price, size), refined by a few continuous values such as the spread and the time since the previous event, and paired with a snapshot of the ten best price levels on each side of the book.
The memory is a small neural network whose weights are rewritten by gradient steps while the model reads the day, on a self-supervised objective: given this key, reproduce this value. Surprising events are written strongly, and learned forgetting lets stale content fade.
The models form a ladder from windowed LSTMs and transformers, through stateful and relational memories, to the test-time-trained memories. Each rung adds one capability to the one below, so a difference in performance can be pinned on that capability.
Event-level Nasdaq data from LOBSTER under an academic licence, and GPU nodes on the LUMI supercomputer and on the GH200 cluster of the Roihu supercomputer at CSC – IT Center for Science.
Papers
In preparation.