投资组合再平衡器Portfolio Rebalancer
See what is actually out of balance, decide whether it deserves a trade, and compare the cost of precision with the cost of doing nothing.
What you own
Holdings & targets
Targets may be exact or bands. A band lets a position drift without creating pointless trades.
This workspace starts empty. Add an asset or load the clearly marked demo; nothing shown here is a published miaolay holding.
| Asset | Name | 类型Type | Class | Qty | Price | CCY | Cost | Value | Weight | Target | Band min | Band max | Drift | Lock |
|---|
Current vs target
The dark bar is current weight. The thin line is the target. Positions inside their allowed band can be left alone.
Rebalance only as much as needed
Exactness is optional. Lock positions, protect cash, ignore tiny trades, or use new contributions to dilute an overweight position naturally.
Rebalance frontier
How much allocation accuracy does each additional trade buy? The highlighted row is the first point that reaches your drift tolerance.
Can time fix the overweight?
For a position you do not want to sell, calculate the new capital required to dilute it to a target weight while its price stays unchanged.
Contribution routing
Project how recurring contributions can repair drift without selling. Prices are held constant so the result isolates the effect of cash flow.
Concentration you can explain
No black-box score. Each number has a direct interpretation and can be reproduced from the weights above.
Live data is optional
A quote is an input, not a recommendation. Manual prices remain first-class so the calculator still works when every API is unavailable.
Finnhub
free keyPrimary option for US equity quotes. User key stays in this browser.
Twelve Data
free keyFallback for equities and ETFs; useful when you want broader symbol coverage.
Alpha Vantage
free key · EOD fallbackLow-frequency fallback. Free GLOBAL_QUOTE should not be presented as live US pricing.
Frankfurter
no keyFX conversion. Open CORS, no daily/monthly quota, reference rates rather than trading quotes.
CoinGecko
演示密钥Demo keyOptional crypto quotes. Common symbols are mapped locally to CoinGecko IDs.
手动Manual
always availableNever block calculation because a provider is down, rate-limited, or missing a symbol.
A calculator is not a portfolio manager
Holdings, targets, API keys, and saved states are kept in this browser. Quote requests go directly from your browser to the provider you enable. The page can calculate allocation, drift, concentration, mechanical rebalancing, and simple shocks. It cannot know your tax jurisdiction, liquidity needs, execution quality, future returns, or whether a target allocation is appropriate.
API 密钥仅保存在本机API keys stay local
切勿把个人密钥提交到此文件。请在这里粘贴你自己的免费层密钥;它们只存储在本设备的 localStorage 中。自动模式会依次尝试已启用的提供方;如果全部失败,现有手动价格保持不变。Never commit personal keys into this file. Paste your own free-tier keys here; they are stored in localStorage on this device. Auto mode tries enabled providers in order and leaves the existing manual price untouched when all calls fail.