Skip to content

curvefi/llamma-simulator_v2

Repository files navigation

Curve LLAMMA Simulator

Installation

Locally using uv

pip install uv
uv venv
uv sync

Recommended python version

It's recommended to use pypy to do faster simulations

uv python install pypy@3.11
uv venv --python pypy@3.11
uv sync -p pypy@3.11

Running simulations

Import data

Add pair to simulator/settings.py and import price data

python manage.py import_data {pair_name} (i.e. BTCUSDT)

Performing calculations

PDF will be added with more detailed explanation

  1. Change parameters in python manage.py for calculate command

  2. Run simulations

python manage.py calculate

Results automatically will be saved in results folder.

Separate scripts

Script ran for every pair is stored in simulator/pairs directory to save parameters used in calculations

export PYTHONPATH="${PYTHONPATH}:/path/to/your/directory"
python simulator/pairs/btcusd/calculate_a.py

About

Simulator for Curve LlammaLend

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages