This Home Assistant integration allows you to view your 3Commas bot statistics directly in your Home Assistant dashboard. Monitor your trading profits, active deals, and locked funds all in one place.
- View overall USD profit from your 3Commas bots
- Track today's USD profit
- Monitor active deals USD profit
- See funds locked in active deals
- Support for both HMAC and RSA authentication methods
- Option to select between Paper and Real trading modes
- Ensure that HACS is installed.
- Search for "3Commas" in the HACS Integrations tab.
- Click Install.
- Restart Home Assistant.
- Go to Settings → Devices & Services and click + Add Integration.
- Search for "3Commas" and follow the setup instructions.
- Copy the
custom_components/three_commasdirectory from this repository to your Home Assistantcustom_componentsdirectory. - Restart Home Assistant.
- Go to Settings → Devices & Services and click + Add Integration.
- Search for "3Commas" and follow the setup instructions.
The integration can be configured via the Home Assistant UI:
- Go to Settings → Devices & Services and click + Add Integration.
- Search for "3Commas" and select it.
- Choose your authentication method:
- HMAC Authentication: Requires API key and API secret
- RSA Authentication: Requires API key and private key (PEM format)
- Select your trading mode:
- Paper Trading: For using 3Commas in paper trading mode
- Real Trading: For live trading with real funds
To use this integration, you'll need to create API keys from your 3Commas account:
- Log in to your 3Commas account
- Go to API in your profile settings
- Create a new API key with "Read" permission
- For HMAC authentication:
- Save both the API key and Secret
- For RSA authentication:
- Generate an RSA key pair
- Upload your public key to 3Commas
- Keep your private key secure for use with this integration
If you encounter issues with the integration:
- Verify your API credentials are correct and have proper permissions
- Check that your network allows connections to the 3Commas API
- For RSA authentication issues, ensure your private key is in the correct PEM format
- Enable debug logging for more information:
logger: default: info logs: custom_components.three_commas: debug
If you'd like to contribute to this project, please read the Contributing Guidelines.
