pub struct Brief {
pub timestamp: Option<String>,
pub fear_greed: Option<i64>,
pub open_positions: Option<u32>,
pub positions: Vec<Position>,
pub recent_signals: Vec<Value>,
pub approaching: Vec<Value>,
pub last_cycle: Value,
pub extra: BTreeMap<String, Value>,
}Expand description
GET /brief — the engine’s situational readout. Shape matches the
real wire payload (see tests/fixtures/brief.json): a timestamp, a
fear-greed reading, open positions + their snapshots, recent
signals, coins approaching a gate, and the last macro cycle
summary. The CLI renders a concise header line and optionally
expands into the lists.
Historical note: earlier struct advertised headline/summary
fields. The engine never sent them; the CLI always rendered
“(engine has no briefing right now)”. Those two fields are gone.
Fields§
§timestamp: Option<String>§fear_greed: Option<i64>§open_positions: Option<u32>§positions: Vec<Position>§recent_signals: Vec<Value>§approaching: Vec<Value>§last_cycle: Value§extra: BTreeMap<String, Value>Implementations§
Source§impl Brief
impl Brief
Sourcepub fn has_content(&self) -> bool
pub fn has_content(&self) -> bool
Best-effort “is there anything to tell the operator?” signal. Returns true when any of the narrative lists have at least one item or a fear-greed reading is available. A fully-empty brief deserves the honest “nothing right now” line; anything else should render the data the engine actually sent.