├── .devcontainer ├── Dockerfile └── requirements.txt ├── .env ├── .gitignore ├── .gitpod.yml ├── FinMem.mp4 ├── LICENSE ├── README.md ├── config ├── tsla_gemini_config.toml ├── tsla_gpt_config.toml └── tsla_tgi_config.toml ├── data-pipeline ├── 01-Refinitiv_Real_Time_News_download.sql ├── 01_Alpaca_News_API_download.py ├── 01_SEC_API_10k10q_download.py ├── 02-Raw_News_Data_Cleaning_Refinitiv.py ├── 03-model_wrapper.py ├── 03-summary.py ├── 04-data_pipeline.py ├── 05-get_sentiment_by_ticker.py ├── 06-Visualize-results.py ├── 07-metrics.py ├── 08-Wilcoxon-Test.py ├── Fake-Sample-Data.zip └── README.md ├── data ├── 01_raw │ └── .gitkeep ├── 02_intermediate │ └── .gitkeep ├── 03_model_input │ └── .gitkeep ├── 04_model_output_log │ └── .gitkeep ├── 05_train_model_output │ └── .gitkeep ├── 06_train_checkpoint │ └── .gitkeep ├── 07_test_model_output │ └── .gitkeep ├── 08_test_checkpoint │ └── .gitkeep └── 09_results │ └── .gitkeep ├── figures ├── character.png ├── memory_flow.png └── workflow.png ├── poetry.lock ├── puppy ├── __init__.py ├── agent.py ├── chat.py ├── embedding.py ├── environment.py ├── memory_functions │ ├── __init__.py │ ├── access_counter.py │ ├── compound_score.py │ ├── decay.py │ ├── importance_score.py │ └── recency.py ├── memorydb.py ├── portfolio.py ├── prompts.py ├── reflection.py └── run_type.py ├── pyproject.toml ├── run.py ├── run_gemini.sh ├── run_opeai.sh ├── run_tgi.sh └── save_file.py /.devcontainer/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackingthemarkets/FinMem-LLM-StockTrading/HEAD/.devcontainer/Dockerfile -------------------------------------------------------------------------------- /.devcontainer/requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackingthemarkets/FinMem-LLM-StockTrading/HEAD/.devcontainer/requirements.txt -------------------------------------------------------------------------------- /.env: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackingthemarkets/FinMem-LLM-StockTrading/HEAD/.env -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackingthemarkets/FinMem-LLM-StockTrading/HEAD/.gitignore -------------------------------------------------------------------------------- /.gitpod.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackingthemarkets/FinMem-LLM-StockTrading/HEAD/.gitpod.yml -------------------------------------------------------------------------------- /FinMem.mp4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackingthemarkets/FinMem-LLM-StockTrading/HEAD/FinMem.mp4 -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackingthemarkets/FinMem-LLM-StockTrading/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackingthemarkets/FinMem-LLM-StockTrading/HEAD/README.md -------------------------------------------------------------------------------- /config/tsla_gemini_config.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackingthemarkets/FinMem-LLM-StockTrading/HEAD/config/tsla_gemini_config.toml -------------------------------------------------------------------------------- /config/tsla_gpt_config.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackingthemarkets/FinMem-LLM-StockTrading/HEAD/config/tsla_gpt_config.toml -------------------------------------------------------------------------------- /config/tsla_tgi_config.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackingthemarkets/FinMem-LLM-StockTrading/HEAD/config/tsla_tgi_config.toml -------------------------------------------------------------------------------- /data-pipeline/01-Refinitiv_Real_Time_News_download.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackingthemarkets/FinMem-LLM-StockTrading/HEAD/data-pipeline/01-Refinitiv_Real_Time_News_download.sql -------------------------------------------------------------------------------- /data-pipeline/01_Alpaca_News_API_download.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackingthemarkets/FinMem-LLM-StockTrading/HEAD/data-pipeline/01_Alpaca_News_API_download.py -------------------------------------------------------------------------------- /data-pipeline/01_SEC_API_10k10q_download.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackingthemarkets/FinMem-LLM-StockTrading/HEAD/data-pipeline/01_SEC_API_10k10q_download.py -------------------------------------------------------------------------------- /data-pipeline/02-Raw_News_Data_Cleaning_Refinitiv.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackingthemarkets/FinMem-LLM-StockTrading/HEAD/data-pipeline/02-Raw_News_Data_Cleaning_Refinitiv.py -------------------------------------------------------------------------------- /data-pipeline/03-model_wrapper.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackingthemarkets/FinMem-LLM-StockTrading/HEAD/data-pipeline/03-model_wrapper.py -------------------------------------------------------------------------------- /data-pipeline/03-summary.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackingthemarkets/FinMem-LLM-StockTrading/HEAD/data-pipeline/03-summary.py -------------------------------------------------------------------------------- /data-pipeline/04-data_pipeline.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackingthemarkets/FinMem-LLM-StockTrading/HEAD/data-pipeline/04-data_pipeline.py -------------------------------------------------------------------------------- /data-pipeline/05-get_sentiment_by_ticker.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackingthemarkets/FinMem-LLM-StockTrading/HEAD/data-pipeline/05-get_sentiment_by_ticker.py -------------------------------------------------------------------------------- /data-pipeline/06-Visualize-results.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackingthemarkets/FinMem-LLM-StockTrading/HEAD/data-pipeline/06-Visualize-results.py -------------------------------------------------------------------------------- /data-pipeline/07-metrics.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackingthemarkets/FinMem-LLM-StockTrading/HEAD/data-pipeline/07-metrics.py -------------------------------------------------------------------------------- /data-pipeline/08-Wilcoxon-Test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackingthemarkets/FinMem-LLM-StockTrading/HEAD/data-pipeline/08-Wilcoxon-Test.py -------------------------------------------------------------------------------- /data-pipeline/Fake-Sample-Data.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackingthemarkets/FinMem-LLM-StockTrading/HEAD/data-pipeline/Fake-Sample-Data.zip -------------------------------------------------------------------------------- /data-pipeline/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackingthemarkets/FinMem-LLM-StockTrading/HEAD/data-pipeline/README.md -------------------------------------------------------------------------------- /data/01_raw/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /data/02_intermediate/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /data/03_model_input/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /data/04_model_output_log/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /data/05_train_model_output/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /data/06_train_checkpoint/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /data/07_test_model_output/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /data/08_test_checkpoint/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /data/09_results/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /figures/character.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackingthemarkets/FinMem-LLM-StockTrading/HEAD/figures/character.png -------------------------------------------------------------------------------- /figures/memory_flow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackingthemarkets/FinMem-LLM-StockTrading/HEAD/figures/memory_flow.png -------------------------------------------------------------------------------- /figures/workflow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackingthemarkets/FinMem-LLM-StockTrading/HEAD/figures/workflow.png -------------------------------------------------------------------------------- /poetry.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackingthemarkets/FinMem-LLM-StockTrading/HEAD/poetry.lock -------------------------------------------------------------------------------- /puppy/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackingthemarkets/FinMem-LLM-StockTrading/HEAD/puppy/__init__.py -------------------------------------------------------------------------------- /puppy/agent.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackingthemarkets/FinMem-LLM-StockTrading/HEAD/puppy/agent.py -------------------------------------------------------------------------------- /puppy/chat.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackingthemarkets/FinMem-LLM-StockTrading/HEAD/puppy/chat.py -------------------------------------------------------------------------------- /puppy/embedding.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackingthemarkets/FinMem-LLM-StockTrading/HEAD/puppy/embedding.py -------------------------------------------------------------------------------- /puppy/environment.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackingthemarkets/FinMem-LLM-StockTrading/HEAD/puppy/environment.py -------------------------------------------------------------------------------- /puppy/memory_functions/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackingthemarkets/FinMem-LLM-StockTrading/HEAD/puppy/memory_functions/__init__.py -------------------------------------------------------------------------------- /puppy/memory_functions/access_counter.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackingthemarkets/FinMem-LLM-StockTrading/HEAD/puppy/memory_functions/access_counter.py -------------------------------------------------------------------------------- /puppy/memory_functions/compound_score.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackingthemarkets/FinMem-LLM-StockTrading/HEAD/puppy/memory_functions/compound_score.py -------------------------------------------------------------------------------- /puppy/memory_functions/decay.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackingthemarkets/FinMem-LLM-StockTrading/HEAD/puppy/memory_functions/decay.py -------------------------------------------------------------------------------- /puppy/memory_functions/importance_score.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackingthemarkets/FinMem-LLM-StockTrading/HEAD/puppy/memory_functions/importance_score.py -------------------------------------------------------------------------------- /puppy/memory_functions/recency.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackingthemarkets/FinMem-LLM-StockTrading/HEAD/puppy/memory_functions/recency.py -------------------------------------------------------------------------------- /puppy/memorydb.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackingthemarkets/FinMem-LLM-StockTrading/HEAD/puppy/memorydb.py -------------------------------------------------------------------------------- /puppy/portfolio.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackingthemarkets/FinMem-LLM-StockTrading/HEAD/puppy/portfolio.py -------------------------------------------------------------------------------- /puppy/prompts.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackingthemarkets/FinMem-LLM-StockTrading/HEAD/puppy/prompts.py -------------------------------------------------------------------------------- /puppy/reflection.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackingthemarkets/FinMem-LLM-StockTrading/HEAD/puppy/reflection.py -------------------------------------------------------------------------------- /puppy/run_type.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackingthemarkets/FinMem-LLM-StockTrading/HEAD/puppy/run_type.py -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackingthemarkets/FinMem-LLM-StockTrading/HEAD/pyproject.toml -------------------------------------------------------------------------------- /run.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackingthemarkets/FinMem-LLM-StockTrading/HEAD/run.py -------------------------------------------------------------------------------- /run_gemini.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackingthemarkets/FinMem-LLM-StockTrading/HEAD/run_gemini.sh -------------------------------------------------------------------------------- /run_opeai.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackingthemarkets/FinMem-LLM-StockTrading/HEAD/run_opeai.sh -------------------------------------------------------------------------------- /run_tgi.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackingthemarkets/FinMem-LLM-StockTrading/HEAD/run_tgi.sh -------------------------------------------------------------------------------- /save_file.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hackingthemarkets/FinMem-LLM-StockTrading/HEAD/save_file.py --------------------------------------------------------------------------------