This api provides functionality including
- Fetching relevant stock data using APIs such as yfinance
- Doing the calculations created by the user from the front end. It receives a JSON data corresponding to an array of mathematical expressions used to define new variables (e.g all calculations involved in creating the Sharpe Ratio)
- It uses tools such as symbolab to aid in parsing the mathematical expressions, does the calculations and returns the results
You are working with Ubuntu 20~. If working with any other case, the directives provided below are not guaranteed to work
- Have venv and python3 installed in your system
- clone the repository using the command
git clone https://github.com/VinceXIV/intradr-api
- Navigate to the relevant directory (In this case intradr-api) using
cd intradr-api
- Create a virtual environment using the command
python3 -m venv dev-env
- Activate the virtual environment
source dev-env/bin/activate
- Install the requirements provided in the requirements.txt using
pip install -r requirements.txt
- Run the app;
flask --app intradr-api run