Discover and explore top open-source AI tools and projects—updated daily.
Financial market simulation engine powered by a generative foundation model
Top 27.9% on SourcePulse
MarS is a financial market simulation engine designed for realistic, interactive, and controllable order generation, powered by a generative foundation model. It targets researchers and practitioners in quantitative finance, offering a platform to build and test trading strategies, analyze market impact, and validate simulation realism against stylized facts.
How It Works
MarS simulates financial markets at the order level, modeling individual order events (price, volume, direction) rather than directly predicting prices. This approach allows emergent market behavior and exploration of multiple future scenarios. The core engine, mlib
, handles orderbook updates and state management, providing a gym-like interface (Env
) for agent interactions. States are automatically updated with trade information, allowing custom state definitions.
Quick Start & Requirements
.devcontainer.json
or docker run
command, build the container, and install dependencies (pip install -e .[dev]
). Download necessary components with python download.py
.Highlighted Details
Maintenance & Community
The project is from Microsoft and has recently released its first version. It encourages community engagement via WeChat and Discord. The associated model is awaiting final review before public release.
Licensing & Compatibility
The repository is licensed under the MIT License. This license is permissive and generally compatible with commercial use and closed-source linking.
Limitations & Caveats
The core generative foundation model is not yet publicly released, limiting full functionality of demos and examples. Production deployment requires significant optimization and real-world order-level data. The project's experimental setup involves substantial GPU resources (128 GPUs mentioned).
1 month ago
1 week