This document presents an architecture for experiments in finance. The architecture builds on oTree, a modern platform for behavioral experiments, allowing for sophisticated economic environments, market institutions, and trader strategies. The system supports both continuous-and discrete-time markets, and allows for communication latencies at time resolutions of 10-20 milliseconds. Such precise communication latencies facilitate the experimental study of high-frequency trading. The architecture also modularizes its main components, which makes the system flexible, portable, and scalable.