一键导入
rebalancing
Rebalance a portfolio to target allocation weights. Computes required trades from current allocation and executes them with user confirmation.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Rebalance a portfolio to target allocation weights. Computes required trades from current allocation and executes them with user confirmation.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | rebalancing |
| description | Rebalance a portfolio to target allocation weights. Computes required trades from current allocation and executes them with user confirmation. |
Systematically rebalance a portfolio to target weights using the allocation and trading tools.
portfolio_allocation → compute target trades → confirm with user → execute via create_order
portfolio_allocation [quote=USDT]
Review per-asset weights and concentration warnings (>30%).
Ask the user what target weights they want, e.g.:
For each asset:
trade_value = (target_weight - current_weight) × total_portfolio_value
trade_amount = trade_value / current_price (from get_ticker)
Positive = buy; negative = sell.
Present the trade plan:
For each confirmed trade, call create_order:
get_orderbook) for large tradesget_order before proceeding to the nextCall portfolio_allocation again to confirm the rebalance completed as intended.
get_order_rate_status).get_open_orders to check for dangling orders.transfer_funds if assets need to be moved between spot and futures wallets first.Set up, manage, and automate Dollar Cost Averaging (DCA) plans. Supports buy (DCA-in) and sell (DCA-out) on any exchange, with optional indicator-gated triggers, per-plan lookback, and Settrade stock share ordering.
Fetch real-time and historical market data from configured exchanges — tickers, OHLCV candles, order books, and market catalogues.
Compute cost basis and profit/loss across exchange accounts — both unrealized (currently held) and realized (from closed trades). Use when the user asks about profit, loss, cost basis, ต้นทุน, กำไร/ขาดทุน, or returns on holdings across one or multiple portfolios.
Query exchange balances and portfolio values across configured exchange accounts — including crypto (Binance, Bitkub, OKX), Thai equities (Settrade/SET), and US equities (Webull).
Compute and interpret technical indicators (SMA, EMA, RSI, MACD, Bollinger Bands, ATR, Stochastic, VWAP) from live OHLCV data.
Place, monitor, and cancel orders on configured exchanges. Includes safety-first order lifecycle, paper trading simulation, and emergency stop.