← Back to directory

Compute buys and sells that restore target weights with tolerance bands, a cash ...

https://www.brainiac.software/api/v1/portfolio-analytics/rebalance-trades

Overview

Compute buys and sells that restore target weights with tolerance bands, a cash buffer, minimum trade size and whole-share rounding. Docs: https://www.brainiac.software/api/portfolio-analytics/rebalance-trades

Protocol x402 (POST)
Price $0.03
Payment Asset USD Coin
Payment Network eip155:8453
Category crypto/wallet
Provider Rebalance Trades Target Weights
Source bazaar
Indexed 2026-11-24 19:01:01

Health

Status unknown
Latency (p50) —
Uptime (30d) —
Reliability Score —
Last Checked Never
Last Healthy Never
Consecutive Failures 0

x402 Payment Validation

Payment Requirements —
Asset Verified —
Facilitator —

Input Schema

{ "body": { "band": { "type": "absolute", "value": 0.02 }, "cash": 5000, "cashBuffer": 0.01, "fractional": false, "holdings": [ { "price": 250, "quantity": 200, "symbol": "VTI" }, { "price": 72, "quantity": 300, "symbol": "BND" }, { "price": 60, "quantity": 100, "symbol": "VXUS" } ], "minTradeValue": 100, "restricted": [], "targets": { "BND": 0.3, "VTI": 0.6, "VXUS": 0.1 } }, "bodyType": "json", "method": "POST", "type": "http" }

Output Schema

{ "example": { "cashAfter": 884, "investable": 81774, "limitations": [ "Outputs are calculations on caller-supplied inputs for human review. No market data is fetched, and this is not investment or tax advice.", "Sells execute first. Buys are scaled pro rata when they would breach the cash buffer. Whole-share rounding truncates toward zero unless fractional is true." ], "sources": [ { "retrievedAt": "2026-11-14", "source": "Caller-supplied holdings, returns, valuations and transactions processed locally", "status": "ok", "url": "https://www.brainiac.software/api/v1/portfolio-analytics" } ], "totalValue": 82600, "trades": [ { "quantity": 33, "side": "buy", "symbol": "BND", "value": 2376 }, { "quantity": 29, "side": "buy", "symbol": "VXUS", "value": 1740 } ], "untouched": [ { "drift": 0.0053268765133172025, "reason": "within_band", "symbol": "VTI" } ], "weightsAfter": { "BND": 0.29026634382566585, "VTI": 0.6053268765133172, "VXUS": 0.0937046004842615 } }, "type": "json" }