Avellaneda Stoikov
Avellaneda-Stoikov HFT market making algorithm implementation
Install / Use
npx skills add fedecaccia/avellaneda-stoikovInstalls into whichever agent you are using.
README
Avellaneda-Stoikov HFT model implementation
Avellaneda-Stoikov HFT market making algorithm implementation
Quickstart
Set up python environment:
python3 -m virtualenv venv
#source venv/bin/activate #linux
venv\Scripts\activate.bat # windows
Install dependencies:
pip install -r requirements.txt
Check model parameters in main.py and then execute the code:
python main.py
Results
Figure 1 show results of a simulation using the following parameters:
- gamma: 0.1
- sigma: 2
- T: 1
- k: 1.5
- M: 0.5
The first chart shows price, indiference price and bid, ask quotes evolution. The second chart shows the profit and loss evolution. The last chart shows the inventory evolution.

Figure 2 shows the distribution of PnL over 1000 simulations.

Related Skills
node-connect
385.5kDiagnose OpenClaw Android, iOS, or macOS node pairing, QR/setup code, route, auth, and connection failures.
blender-python-addon
40.5kBlender Python add-on rules for operators, panels, properties, registration, testing, and API-safe scripting
flutter-development-guidelines-cursorrules-prompt-file
40.5kCursor rules for Flutter development with MVVM architecture, Riverpod state management, Material widgets, and Dart style guidelines.
commit-push-pr
140.6kCommit, push, and open a PR
