Crypto portfolio widget backend for Homepage dashboard (gethomepage.dev)
1.5K
A lightweight Java microservice that aggregates cryptocurrency wallet balances and serves them as a JSON API for the Homepage Custom API widget.
docker run -d --name crypto-widget -p 8085:8085 \
-e CRYPTO_WALLETS_BTC=your_btc_address \
-e CRYPTO_WALLETS_ETH=0xyour_eth_address \
-e CRYPTO_STATIC_ETH=2.5 \
pcherepanov55/crypto-widget:latest
| Variable | Description |
|---|---|
CRYPTO_WALLETS_BTC | BTC addresses (comma-separated) |
CRYPTO_WALLETS_ETH | ETH addresses (comma-separated) |
CRYPTO_STATIC_BTC | Static BTC amount to add (e.g. staked) |
CRYPTO_STATIC_ETH | Static ETH amount to add (e.g. staked) |
ETH_RPC_URL | Custom Ethereum RPC endpoint (optional) |
- Crypto:
- Crypto Portfolio:
widget:
type: customapi
url: http://<host>:8085/api/portfolio
refreshInterval: 300000
display: block
mappings:
- field: btc
label: BTC
- field: eth
label: ETH
- field: totalUsd
label: Total USD
- field: totalRub
label: Total RUB
GET /api/portfolio
{
"btc": "0.50000000 BTC ($32,500.00)",
"eth": "10.000000 ETH ($25,000.00)",
"totalUsd": "$57,500.00",
"totalRub": "5,290,000 ₽"
}
Content type
Image
Digest
sha256:119365797…
Size
108.6 MB
Last updated
7 months ago
docker pull pcherepanov55/crypto-widget