Skip to main content

PLAN_TEMPLATE_YAML

Constant PLAN_TEMPLATE_YAML 

Source
pub const PLAN_TEMPLATE_YAML: &str = r#"version: 1
plan_id: example-rebalance-2026-06-19
title: Example partial rebalance
account_hash: "<hash-from-schwab-accounts-numbers>"
account_label: "My brokerage (...1234)"
created_at: "2026-06-19T12:00:00Z"
author: "llm-agent"
rationale: |
  Brief thesis for the rebalance.
assumptions:
  notes: "Limit prices based on last close; adjust before live run"
  limit_prices:
    SGOV: 100.55
    JPST: 50.50
execution:
  stop_on_error: true
  pause_seconds_between_steps: 2
  wait_for_fill: true
  fill_timeout_seconds: 3600
  poll_interval_seconds: 10
steps:
  - id: step-01-sell-sgov
    side: sell
    symbol: SGOV
    quantity: 14
    order_type: limit
    limit_price: 100.55
    wait_until: filled
    note: "Batch 1 — stay under safety limits"
  - id: step-02-buy-jpst
    side: buy
    symbol: JPST
    quantity: 28
    order_type: limit
    limit_price: 50.50
    note: "Batch 1 buy"
"#;