Skip to content

Python portfolio tracker built using Streamlit and supercharged with LangChain.

Notifications You must be signed in to change notification settings

Epommier/portfolio-tracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Portfolio Tracker

A Python-based tool that automatically captures and analyzes your cryptocurrency portfolio data from Debank.

Features

  • Automated screenshot capture of your Debank wallet
  • AI-powered portfolio analysis using Phi-3.5 Vision
  • Extracts token balances and USD values
  • Clean and structured output in JSON format

Prerequisites

  • Python 3.8+
  • Azure OpenAI API access

Installation

  1. Clone the repository:
git clone [repository-url]
cd portfolio-tracker
  1. Create a virtual environment:
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
  1. Install dependencies:
pip install -r requirements.txt

Configuration

Create a .env file with the following variables:

AZURE_OPENAI_ENDPOINT=your_azure_endpoint
AZURE_OPENAI_API_VERSION=your_api_version
AZURE_OPENAI_API_KEY=your_api_key
INFERENCE_API_ENDPOINT=your_inference_endpoint
INFERENCE_API_VERSION=your_inference_version
INFERENCE_API_KEY=your_inference_key

Usage

Run the script:

python main.py

The script will:

  1. Capture screenshots from Debank
  2. Analyze the screenshots using AI
  3. Output the portfolio composition in JSON format

Project Structure

  • main.py: Main script
  • screens/: Directory for captured screenshots
  • .env: Environment variables
  • .gitignore: Git ignore rules

About

Python portfolio tracker built using Streamlit and supercharged with LangChain.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages