- Clone the repository:
git clone https://github.com/Polapo-Invest/Polapo-Invest-PBP.git
- Navigate to folder:
cd OPT-WEP
- Install dependencies:
pip install -r requirements.txt
- Create
.env
file in theOPT-WEP
directory for storing API keys and store all necessary key values
GEMINI_API_KEY_SECRET='INPUT_YOUR_GEMINI_API_KEY_VALUE_HERE'
PREDIBASE_API_KEY='INPUT_YOUR_PREDIBASE_API_KEY_VALUE_HERE'
PINECONE_API_KEY='INPUT_YOUR_PINECONE_API_KEY_VALUE_HERE'
- Run application:
python main.py
The Polapo Invest PBP is an abbreviation of our project name, 'Polapo Invest Portfolio Backtesting Platform'.
We believe that people working in finance, such as portfolio managers, quant researchers, and quant traders, need a platform where they can easily and efficiently access to not only plain financial data like stock prices, but intuitive investment portfolio insights.
Also, many individual beginner stock investors have high possibilities to be exposed to the risk of panic trading. We think this is due to a lack of investment experience and an unsystematic investment strategy.
To solve the problem stated above, we've worked on developing a platform with features of a portfolio backtesting engine based on asset allocation modeling and LLM-based chatbots for the users to gain investment insights and establish investment strategies based on figures and data.
• Asset allocation modeling: Building cross-sectional models such as equal weight (EW) and global minimum variance (GMV) and time-series models such as volatility targeting(VT) and CVaR targeting to derive the optimal asset allocation ratio
• Portfolio Backtesting Engine: An engine that analyzes the profitability and performance of a user's investment portfolio based on asset allocation modeling
• LLM-based chatbots: Utilized Predibase and LlamaIndex for fine-tuning Solar LLM (solar-1-mini-chat-240612) and setting up a RAG system with SEC data (Section 1A - Risk Factors, Section 7 - Management’s Discussion and Analysis of Financial Condition and Results of Operations). Gemini 1.5 pro model was also used for general chatting and financial graph and chart analysis.
• Web App: Implemented above features in a Flask web application in a user-friendly UI
• People working in the finance field such as portfolio managers, quant researchers, and quant traders, who want more efficiency in their workflow.
• From individual beginner investors exposed to the risk of panic trading to advanced investors who want easy access to investment portfolio insights.
You can watch the video by clicking the image below.