This project models and predicts funding rates for perpetual contracts using Monte Carlo simulations. It employs Merton’s jump diffusion process for index prices and the Ornstein-Uhlenbeck process for funding rates to derive metrics like expected liquidation time and probability. These figures enhance risk management in perpetual contracts trading.
The project requires the following Python libraries:
numpy
pandas
plotly
datetime
statsmodels
glob
- Clone the repository.
- Install the required libraries.
- Run the main script in a Jupyter Notebook or directly using a Python interpreter.
In this directory you will find:
- The project report
Project Report.pdf
detailing the modeling process, the pipeline architecture and the findings. - The
Data
directory containing the dataset on which this project was conducted. - The
Pipeline.ipynb
file containing the python pipeline of the project. - The
Contracts.csv
contaning the featued contracts in the study.
If you'd like to contribute to this project, feel free to fork the repository and submit a pull request. For major changes, please open an issue first to discuss what you would like to change.
This project is licensed under the MIT License - see the LICENSE file for details.
For any questions or suggestions, please reach out via Email on [yosri.benhalima@ept.ucar.tn].