Crypto Portfolio Rebalancer
Pricing
Pay per usage
Crypto Portfolio Rebalancer
Calculate rebalancing trades for your crypto portfolio. Input current holdings and target allocation percentages. Get buy/sell recommendations with USD amounts and exact units. Uses CoinGecko for live prices. No API key. $0.002/run.
Pricing
Pay per usage
Rating
0.0
(0)
Developer
Hojun Lee
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
4 days ago
Last modified
Categories
Share
Calculate exact rebalancing trades for your crypto portfolio. Input current holdings and target allocation — get buy/sell amounts in USD and coin units. Live prices from CoinGecko. No API key required.
What It Does
Fetches current prices for your holdings, computes current allocation %, compares to your target allocation, and outputs the minimum trades needed to rebalance. Includes a drift score measuring how far off your portfolio is from target.
Input
Holdings (required)
[{"coinId": "bitcoin", "symbol": "BTC", "amount": 0.5},{"coinId": "ethereum", "symbol": "ETH", "amount": 5.0}]
Target Allocation (required, must sum to 100%)
[{"coinId": "bitcoin", "symbol": "BTC", "targetPct": 50},{"coinId": "ethereum", "symbol": "ETH", "targetPct": 30},{"coinId": "solana", "symbol": "SOL", "targetPct": 20}]
| Field | Type | Default | Description |
|---|---|---|---|
rebalanceThresholdPct | number | 5 | Only flag trade if deviation > this % |
includeCashBalance | boolean | false | Include USD cash in portfolio total |
cashBalanceUsd | number | 0 | USD cash balance |
Output
Returns one item with three sections:
summary
total_portfolio_usd— Current portfolio valuedrift_score— RMSD between current and target allocationsneeds_rebalance— Whether any position needs tradingtrades_required— Number of trades above threshold
positions
Each holding with current_pct, target_pct, deviation_pct, trade_action (BUY/SELL/HOLD), trade_usd, trade_units
trades
Only positions exceeding the rebalance threshold, sorted by action
Pricing
$0.002 flat per rebalance calculation.