You should follow the project instruction first to have a fully working service
- Make a Conda environment
- Conda installation docs: https://conda.io/docs/user-guide/install/
- Conda env creation docs: https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html#creating-an-environment-with-commands
conda create -n myenv python=3.10.12
- Use python version 3.10.12 (recommendation)
- Clone this repository
git clone https://github.com/AutoBuySell/Backend_server.git
- Move into the cloned folder
- Install library requirements
pip install -r requirements.txt
- Set .env file
ALPACA_PAPER_BASEURL=https://paper-api.alpaca.markets/v2
ALPACA_PAPER_KEY=XXXXXXXXXXXXXX <= enter your key from Alpaca
ALPACA_PAPER_KEY_SECRET=XXXXXXXXXXXXXXXXXXXX <= enter your key secret
ALPACA_HISTORY_DATA_URL=https://data.alpaca.markets/v2
DATA_SERVER_URL=http://localhost:8000
PATH_MARKET_DATA=../data/market_data/
PATH_SETTING_DATA=../data/setting_data/
PATH_DEFAULT_SETTING=configs/default_settings.json- Start server with reload option and port number 8001
uvicorn main:app --reload --port 8001- You should change env values if you want to change the port numbers