A Python-based tool that automatically captures and analyzes your cryptocurrency portfolio data from Debank.
- 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
- Python 3.8+
- Azure OpenAI API access
- Clone the repository:
git clone [repository-url]
cd portfolio-tracker- Create a virtual environment:
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate- Install dependencies:
pip install -r requirements.txtCreate 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_keyRun the script:
python main.pyThe script will:
- Capture screenshots from Debank
- Analyze the screenshots using AI
- Output the portfolio composition in JSON format
- main.py: Main script
- screens/: Directory for captured screenshots
- .env: Environment variables
- .gitignore: Git ignore rules