Crypto Portfolio Rebalancer avatar

Crypto Portfolio Rebalancer

Pricing

Pay per usage

Go to Apify Store
Crypto Portfolio Rebalancer

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

Hojun Lee

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

4 days ago

Last modified

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}
]
FieldTypeDefaultDescription
rebalanceThresholdPctnumber5Only flag trade if deviation > this %
includeCashBalancebooleanfalseInclude USD cash in portfolio total
cashBalanceUsdnumber0USD cash balance

Output

Returns one item with three sections:

summary

  • total_portfolio_usd — Current portfolio value
  • drift_score — RMSD between current and target allocations
  • needs_rebalance — Whether any position needs trading
  • trades_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.