Skip to content

texttechnologylab/TradeTheNews

Repository files navigation

TradeTheNews

Backend

You can start the news scorer container with:

docker run --rm \
  -e LLM_URL="${LLM_URL}" \
  -e LLM_TOKEN="${LLM_TOKEN}" \
  -p 127.0.0.1:1001:9720 \
  org.ttlab/llm-impact-scorer:0.1

..and the embedding container with:

docker run --rm \
  -p 127.0.0.1:1000:9714 \
  org.ttlab/embeddings:latest

Compile the Java Application with maven. Run the Main whenever you want to analyze the news inside the Database. News can be loaded to the Database via the frontend. The Java Application is looking in the enviornment for the necessary variables to build the connection string (have a look in org.example.MongoDBHandler).

Frontend

Setup the Project tradeTheNews

1. For the Project you need:

Before starting, make sure you have:

  • Python 3.9+Download
  • pip (included with Python)

Check your installation:

python --version
pip --version

2. Furthermore you should do all the Installation in a Virtual Envirement

On Windows

python -m venv_name venv_name
venv_name\Scripts\activate

On macOS / Linux

python3 -m venv_name venv_name
source venv_name/bin/activate

To deactivate:

deactivate

3. Installing Dependencies/Requriements

pip install -r requirements_frontend.txt

4. Run the Project

python main.py

Add your own Trading Strategie

The screenshot of the file trading_strategies.py could not be loaded :(

First create a new entry in the List TRAINDING_STRATEGIES, then add a new Color Sting in the list COLORS. Now you just need to exend the if statement in the function trading_strategies. In the else-statement you can shoud calulate the amout you want to buy from the Stock. This value should be saved in the variable stock_to_buy.

How is the website structure defined?

The overview of the website system could not be loaded.

Database Structure

1. collection "stocks"

The overview of the "stock" collection could not be loaded.

2. collection "articles"

The overview of the "articles" collection could not be loaded.

3. collection "week_history"

The overview of the "week_history" collection could not be loaded.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •