A Home Assistant Custom Component (HACS integration) for monitoring your Ghostfolio portfolio performance.
This integration provides the following sensors for your Ghostfolio portfolio:
- Current Value: The current total value of your portfolio
- Net Performance: The absolute net performance of your portfolio
- Net Performance Percentage: The net performance as a percentage
- Total Investment: The total amount you have invested
- Net Performance With Currency Effect: Net performance including currency effects
- Net Performance Percentage With Currency Effect: Net performance percentage including currency effects
- Make sure you have HACS installed
- Add this repository as a custom repository in HACS:
- Go to HACS → Integrations
- Click the three dots in the top right corner
- Select "Custom repositories"
- Add this repository URL and select "Integration" as the category
- Install the integration from HACS
- Restart Home Assistant
- Download the latest release
- Copy the
custom_components/ghostfoliofolder to your Home Assistantcustom_componentsdirectory - Restart Home Assistant
- Go to Settings → Devices & Services
- Click "Add Integration" and search for "Ghostfolio"
- Enter your Ghostfolio instance details:
- Base URL: The URL of your Ghostfolio instance (e.g.,
https://your-ghostfolio.com) - Access Token: Your Ghostfolio access token
- Base URL: The URL of your Ghostfolio instance (e.g.,
- Log in to your Ghostfolio instance
- Go to your account settings
- Generate or copy your access token
- Use this token in the Home Assistant integration setup
This integration uses the following Ghostfolio API endpoints:
POST /api/v1/auth/anonymous- For authentication using the access tokenGET /api/v2/portfolio/performance?range=max- For retrieving portfolio performance data
The integration updates portfolio data every 15 minutes by default. This can be customized if needed.
For issues with this integration, please open an issue on the GitHub repository.
For issues with Ghostfolio itself, please refer to the Ghostfolio GitHub repository.
This project is licensed under the MIT License - see the LICENSE file for details.