Make sure you have the necessary API Keys handy (see .env.example for that you need).
Create a .env file based on the .env.example.
Make sure you have a database up and running.
Run the model with ./update_model.sh
For a detailed description of the model see either the discussion or the code.
Special Thanks to the good people at archivenode.io for providing me with an API-key and technical support! Without them there would be no historical data to base this model on.