- Create a virtual environment:
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate- Install dependencies:
pip install -r requirements.txt- Run the server:
python main.pyThe API will be available at http://localhost:8000
GET /- Health checkPOST /train- Train algorithms on stock data
{
"symbol": "AAPL"
}Returns data for 4 different algorithms with their performance metrics and growth data.