CAMPSMITH / StableOps

Analysis of opportunities derived from volatility in stablecoin pricing
MIT License
1 stars 0 forks source link

StableOps

StableOps is an analysis of potential arbitrage opportunities derived from volatility in stablecoin pricing. It was observed that many stablecoins have some volatility. Although usually pegged to a FIAT currency, like the US dollar, they sometimes drift to be a little over or under their peg value.

Paxos Price History Paxos Price Histogram

If this volatility could be harnessed, it might be profitable. The objective of this project is to analyze volatility in stablecoin pricing and assess whether this volatility could provide profitable arbitrage opportunities.


Data Sources

Dataset URL Description Size Records
daiusd.csv https://www.kaggle.com/datasets/tencars/392-crypto-currency-pairs-at-minute-resolution DAI USD price at 1 minute resolution, from the Kaggle 400+ crypto currency pairs at 1-minute resolution dataset 13.7 MB 256,066
paxusd.csv https://www.kaggle.com/datasets/tencars/392-crypto-currency-pairs-at-minute-resolution PAX USD price at 1 minute resolution, from the Kaggle 400+ crypto currency pairs at 1-minute resolution dataset 7.2 MB 143,564
ustusd.csv https://www.kaggle.com/datasets/tencars/392-crypto-currency-pairs-at-minute-resolution UST USD price at 1 minute resolution, from the Kaggle 400+ crypto currency pairs at 1-minute resolution dataset 13.7 MB 1,230,255
GUSD https://api.coingecko.com/api/v3/coins/gemini-dollar/market_chart?vs_currency=usd&days=1095&interval=daily Daily price for GUSD from coingecko API 1096
USDC https://api.coingecko.com/api/v3/coins/usd-coin/market_chart?vs_currency=usd&days=1095&interval=daily Daily price for USDC from coingecko API 1096
USDT https://api.coingecko.com/api/v3/coins/tether/market_chart?vs_currency=usd&days=1095&interval=daily Daily price for USDT from coingecko API 1095
PAX https://api.coingecko.com/api/v3/coins/paxos-standard/market_chart?vs_currency=usd&days=1095&interval=daily Daily price for PAX from coingecko API 1096
DAI https://api.coingecko.com/api/v3/coins/dai/market_chart?vs_currency=usd&days=1095&interval=daily Daily price for DAI from coingecko API 905
UST https://api.coingecko.com/api/v3/coins/nusd/market_chart?vs_currency=usd&days=1095&interval=daily Daily price for UST from coingecko API 1095
Gemini_USTUSD_1h.csv https://www.cryptodatadownload.com/data/gemini/ Hourly price data for Luna from Gemini 220 KB 2350
Gemini_LUNAUSD_1h.csv https://www.cryptodatadownload.com/data/gemini/ Hourly price data for Luna from Gemini 223 KB 2350
ust-usd-max.csv https://www.coingecko.com/en/coins/terra-usd/historical_data?end_date=2022-05-13&start_date=2022-04-29#panel Daily UST price, market cap and trading volume from coingecko 46 KB 589
luna-usd-max.csv https://www.coingecko.com/en/coins/terra-luna/historical_data?end_date=2022-05-13&start_date=2022-04-29#panel Daily LUNA price, market cap and trading volume from coingecko 86 KB 1102

Technologies Used


Installation Guide

Prerequisites

Start Jupyter Lab

Once your conda virtural environment is started with all prerequisites, start Jupyter Lab:

jupyter lab

Usage

StableOps Analysis Notebook

Once Jupyter Lab has started in your browser, select the StableOps.ipynb notebook from the Left Sidebar. This is the main analytical notebook.

launch Notebook StableOps.ipynb

StableOps Presentation Notebook

Launch the Desktop Jupyter Notebook app. Start by selecting View from the menu followed by Cell Toolbar and Slideshow.

launch StableOps_Presentation_01.ipynb

Once Slideshow is activated, changing the view will allow to set the type of slides for each cell. There are 5 Types of slides to choose from:

launch StableOps_Presentation_01.ipynb

YOU CAN HIDE THE CODES FROM THE SLIDE by changing the Cell Toolbar view into Tags (View -> Cell Toolbar View -> Tags). For each code cell that has visualisation element, enter "to_remove" on the field and press Add Tag.

launch StableOps_Presentation_01.ipynb

Run StableOps Presentation

Simply open the presentation file using a browser. run StableOps presentation

Run a New Version of the StableOps Presentation

In the StableOps directory type in:

jupyter nbconvert "StableOps_Presentation_01.ipynb" --to slides --no-prompt --TagRemovePreprocessor.remove_input_tags={\"to_remove\"} --post serve 

This will create a new "StableOps_Presentation_01.slides .html" and run the new presentation using a browser.

Additional Notebooks


Summary of Analysis and Results

Method

The following analysis was conducted:


Contributors


License

License: MIT