This program simulates simplified option pools. Option pools are an upcoming feature in the Dopex protocol where option buyers can purchase any amount of options at any strike price. Liquidity providers fund these pools in exchange for fees. The option buyers' earnings and the LPs' yields depend on the underlying asset's exercise price at the end of the epoch.
- Install git
- Using your Command Prompt or Terminal, navigate into the folder you want this repository to live
- Run
git clone https://github.com/ljlinsc/option-pool-simulator.git
- If you are prompted to enter your GitHub username and password, do the following:
- In your web browser, go to https://github.com/settings/tokens
- Click "Generate new token"
- Fill in the "Note" text input - it can be anything (example: "My Windows Laptop")
- Change the "Expiration" to "No expiration"
- Check all of the boxes under "Select scopes"
- Copy the personal access token before it disappears
- Back in your Command Prompt or Terminal, enter your credientials:
- Username: Your GitHub username (example: ljlinsc)
- Password: The personal access token you just generated
Run git pull
(make sure to do this frequently)
- Save all of your files
- Run
git status
and check that all of your changed files are listed - Run
git add .
(the.
is not a typo!) - Run
git commit -m "short description of what you did"
(example:git commit -m "Add weekly chain data"
) - Run
git push
- Install Python 3.7 - 3.9
- Run
pip install -r requirements.txt
- Run
python -m streamlit run streamlit_app.py
- The Streamlit app will appear in a new tab in your web browser (your first run might take a while)