Software
Matthias Buehlmaier leads a suite of open-source software projects at the intersection of finance and computer science, developed together with a group of contributors. Most projects are written in Clojure, a functional language on the JVM with immutable data, good support for concurrency, and interactive REPL-driven development. Several of them provide tools for finance and data work that were previously missing from the Clojure ecosystem.
- Investing Time Machine (ITM): An interactive R/Shiny web application for trading on historical data. Users make buy/sell decisions for any stock available on Yahoo Finance and see the consequences as the simulation moves forward in time, including portfolio value, P&L, technical indicators such as Bollinger Bands and ATR, and market regime estimates from Hidden Markov Models. It is designed as an experiential learning tool for finance courses, where students encounter compounding, timing risk, and behavioral biases in their own trading decisions.
- Clojask: A parallel dataframe library for Clojure that handles datasets larger than RAM. It supports group-by, joins, aggregations, and more, without leaving the Clojure ecosystem or resorting to Spark. It plays a role similar to Pandas/Dask in Python or dplyr/data.table in R, with lazy out-of-core processing and benchmarked speed advantages for finance/quant workflows. Over 120 GitHub stars.
- Datajure: A domain-specific language (DSL) for data science in Clojure. Datajure is a syntax layer on tech.ml.dataset in which a single declarative, query-like function covers filtering, grouping, aggregation, window functions, and as-of joins. This makes data wrangling more readable for finance analysts while staying idiomatic to Clojure.
- clj-yfinance: A lightweight, pure Clojure client for the Yahoo Finance API. It fetches prices, OHLCV history, dividends & splits, company fundamentals, full financial statements, earnings dates, analyst estimates, and options chains, with a single small dependency and no API key. Results convert directly to tech.ml.dataset for use with the Clojure data science stack, which makes the library well suited to prototyping quantitative strategies.
- Earnjure: A live web application for earnings announcement event studies, built on clj-yfinance and Datajure. Enter a stock ticker and Earnjure fetches its quarterly earnings history and computes abnormal returns (stock minus SPY) around each announcement, moving the event date to the next trading day for after-market-close releases. It displays an interactive chart, a color-coded abnormal-returns table with cross-event statistical inference, analyst estimates and price targets, and the upcoming earnings calendar. The app shows the Clojure finance stack at work from data retrieval through econometrics to the browser.
- edgarjure: A Clojure library for SEC EDGAR filings, financials, and XBRL data. It returns normalized income statements, balance sheets, and cash flows, extracts 10-K sections such as MD&A or Risk Factors, and parses insider trades and institutional holdings into datasets. A point-in-time mode restricts every query to data available on a given historical date, which keeps backtests and event studies free of look-ahead bias. It uses only the SEC's public endpoints and needs no API key.
- ecbjure: A pure Clojure library for official European Central Bank data, including daily FX reference rates back to 1999, EURIBOR and €STR interest rates, HICP inflation, and the full SDMX catalogue. Missing business days throw an error instead of being silently forward-filled, so that any gap-filling happens visibly in the user's own code and cannot introduce hidden look-ahead bias.
- Backtesting: A Clojure framework for backtesting quantitative trading and investing strategies day by day on historical data, using either CRSP-style files or prices and fundamentals downloaded from Yahoo Finance. Fundamentals are point-in-time, visible only from their report date, which avoids look-ahead bias. It supports margin and short selling, technical indicators, transaction costs, and benchmark comparison, and works from the REPL and in notebooks. One of the few backtesting frameworks in the Clojure ecosystem.
- mythjure: A looped (recurrent-depth) transformer built from scratch in pure Clojure. It is REPL-first and runs on a CPU, with manual backpropagation, gradients checked against finite differences, and an optional PyTorch backend for speed. It is the companion code to the paper "Spectral Margins and Memory Routing in Looped Transformers" and allows the stability mathematics of recurrent-depth models to be explored on a laptop.
- Portfolio Analysis Tool: A web-based portfolio analytics platform built for the HKUBS Center for Investment Management (CIM). It processes trades, computes returns and holdings history, and visualizes performance. As a web app it is accessible to students and practitioners without a Clojure background. A companion AI News Analyzer summarizes recent market news with LLM-based sentiment and investment signals.
- TDLEG: A collection of undergraduate research projects co-supervised by Matthias Buehlmaier and Prof. Dr. Gregor Dorfleitner (University of Regensburg), funded by the Teaching Development and Language Enhancement Grant (TDLEG) 2019–22. Through these projects students gained practical experience in building financial software, and several of the libraries listed here originated from them.
- Clojure in Finance: Most of the above and more are publicly available as open source on GitHub under the Clojure in Finance umbrella. Further projects include clojure-heap (a pure Clojure priority queue for order books and scheduling), clojask-io (multi-format file I/O for Clojask), and WeJure (a decentralized social network research prototype).