Skip to content

Polapo-Invest/Polapo-Invest-PBP

Repository files navigation

Polapo Invest Portfolio Backtesting Platform

🏆 Ranked Top 30 in the Upstage 2024 Global AI Week Hackathon

Global-AI-Week-Polapo-Invest

🔑 INSTALLATION GUIDES

  1. Clone the repository:
git clone https://github.com/Polapo-Invest/Polapo-Invest-PBP.git
  1. Navigate to folder:
cd OPT-WEP
  1. Install dependencies:
pip install -r requirements.txt
  1. Create .env file in the OPT-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'
  1. Run application:
python main.py

📌 Project Overview

1. Background (Problem we're solving)

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.

2. Solution

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.

3. Core technology

• 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

4. Customer audience

• 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.

💻 Usage

You can watch the video by clicking the image below.

Polap_Invest

⚙️ System Configuration and Architecture

image image image

About

Polapo Invest Portfolio Backtesting Platform

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •