Skip to main content

Crate sharpebench_protocol

Crate sharpebench_protocol 

Source
Expand description

The language-agnostic agent ⇄ harness protocol.

Agents are external — a container or HTTP endpoint, in any language — not Rust code. Each decision step the harness sends a MarketObservation (JSON) and the agent replies with a Decision (JSON). Keeping this surface tiny and stable is what lets any vendor compete (and is the whole adoption story).

All observations are point-in-time: close_history, fundamentals and news only ever contain information available at or before date.

Structs§

Decision
What the agent returns.
MarketObservation
What the agent sees at one decision point.
Order
A single per-instrument instruction.
PositionState
The agent’s current holding in one instrument.
SymbolSnapshot
Point-in-time data for one instrument.

Enums§

Action
Discrete action label (sizing is carried by target_weight).