Skip to content

Repository files navigation

Interest Rate Model Visualizer

Formulas

$$\text{Borrow Rate} = \begin{cases} \text{Base Borrow Rate} + (U \times \text{Low Slope Borrow Rate}) & \text{if } U \leq U_{optimal} \\\ \text{Base Borrow Rate} + (\text{Low Slope Borrow Rate} \times U_{optimal}) + \left( (U - U_{optimal}) \times \text{High Slope Borrow Rate} \right) & \text{if } U > U_{optimal} \end{cases}$$ $$\text{Supply Rate} = \text{Borrow Rate} \times \left(\frac{U}{100}\right) \times (1 - \text{Reserve Factor})$$

Separated visualiser use the same formula for borrow and supply.

Installation

  • Clone the Repository:
git clone https://github.com/zakrad/irm-visualizer.git
cd irm-visualizer
  • Create a Virtual Environment and Activate (Optional):

On Windows:

python -m venv venv
venv\Scripts\activate

On macOS/Linux:

python -m venv venv
source venv/bin/activate
  • Install Required Libraries:
pip install matplotlib numpy mplcursors
  • Run the Application:
python jump_rate_app.py
python separated_rate_app.py
python double_jump_rate.py

About

Interest Rate Model Visualization Tool

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages