Skip to content

wczubal1/LLM-Hackathon

Repository files navigation

LLM-Hackathon

Agent managing stock investments main.py defines agents and their interactions. util.py includes functions/tools to measure portfolio risk and adjust the portfolio allocation and compute returns that agents are using. There are two input files with stock data (sp500_stock_data.csv) and fundamental data (sp500_stock_data_fundaments.txt). You need to point to their location in the main.py. You also need OPENAI API key. Finally target risk is set at 2% daily (32% annually) and you can adjust it. This is all in the first four lines of coode in main.py:

config_list=[{"model": "gpt-4o-mini", "api_key": os.environ["OPENAI_API_KEY"]}]
file_path_SP500_fundaments = 'D:/Witold/Documents/Computing/LLMAgentsOfficial/Hackathon/sp500_stock_data_fundaments.txt'
file_path_SP500_returns = 'D:/Witold/Documents/Computing/LLMAgentsOfficial/Hackathon/sp500_stock_data.csv'
target_risk = 0.02

About

Agent managing stock investments

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages