This repository contains code and data for a study on predicting decentralized exchange (DEX) token valuations using fundamental metrics. The project is organised into several modules:
- data/: Raw and processed data. Raw API responses should be stored in
data/raw/and processed, cleaned datasets indata/processed/. - src/: Core source code for data collection, preprocessing, model training, and evaluation.
- notebooks/: Jupyter notebooks used for exploration and analysis.
- results/: Figures and tables produced by the analysis.
-
Install the required packages:
python -m venv .venv && source .venv/bin/activate pip install -r requirements.txt
-
Populate the
.envfile with your API keys and RPC URLs. See.env.examplefor guidance. -
Run the data collection script to fetch daily metrics for each protocol. Refer to the functions in
src/data_collection.pyand update them with real API requests. -
Validate and preprocess the data using
src/validation.pyandsrc/preprocessing.py. -
Train and evaluate models using the scripts provided in
src/models.pyandsrc/evaluation.pyor explore the data with notebooks innotebooks/.
The data dictionary is provided in data/data_dictionary.md. Further documentation can be found within individual source files.