Rebalance builder

Run Simulate first; live execution is allowed only when risks pass. Default portfolio — seed UUID.

Preview of the rebalance result without writing to the DB or enqueueing. Returns the order plan, drift and risk gates summary.Enqueues a job with dryRun=true: the full pipeline (router, risk, batch submit) runs without real venue calls.Real execution against venues. Active only if the latest Simulate confirmed all risk gates pass (liveExecuteAllowed=true).

Hint: run Simulate first to see risks and live-blocking.

Manual Drift Imitator (demo / testing only)

This is a testing tool for the dashboard — it pretends the market moved, so you can see how the agent would react. You pick one of your two assets and a shift amount (for example, 0.10 means "by 10% of the portfolio"). That asset's share of the portfolio goes up (or down, if you enter a negative number) by that much, and the other asset moves the opposite way to keep the whole thing balanced.

The total value of the portfolio and the asset prices stay exactly the same — only the proportions change. After you click Apply, open the Portfolio page: the donut chart and the bars will reflect the new mix, and Simulate will show the orders the agent would build to bring everything back to the targets you saved. Nothing is sent to the exchange.

Works for portfolios with two or more enabled targets. When you shift one asset, the remaining ones absorb the change proportionally to their own target weights — so the ratios between counter-assets stay the same.

Batch Ops · Orderbook Agent