pub struct Hip4OutcomeAggregate {Show 17 fields
pub outcome_id: i64,
pub name: Option<String>,
pub description_raw: Option<String>,
pub class: Option<String>,
pub underlying: Option<String>,
pub expiry: Option<String>,
pub target_price: Option<f64>,
pub period: Option<String>,
pub side_specs: Vec<Hip4SideSpec>,
pub is_settled: Option<bool>,
pub status: Option<String>,
pub source_seen_at: Option<String>,
pub display_title: Option<String>,
pub slug: Option<String>,
pub outcome_pair: Option<[String; 2]>,
pub aggregated_oi: Option<Hip4AggregatedOi>,
pub extra: HashMap<String, Value>,
}Expand description
A HIP-4 outcome market (per-outcome view, both sides combined).
Returned by /outcomes (list, no aggregated_oi) and /outcomes/{id}
(detail, with aggregated_oi populated). Also returned by
/outcomes/by-slug/{slug} and the ?slug= filter on /outcomes.
mark_price (when present on related endpoints like
Hip4OpenInterestRecord) is an implied probability in [0, 1], not a
USD price. The field name matches the perp/HIP-3 convention because the
Hyperliquid upstream uses markPx for both.
Fields§
§outcome_id: i64§name: Option<String>§description_raw: Option<String>§class: Option<String>§underlying: Option<String>§expiry: Option<String>§target_price: Option<f64>§period: Option<String>§side_specs: Vec<Hip4SideSpec>§is_settled: Option<bool>§status: Option<String>§source_seen_at: Option<String>§display_title: Option<String>Outcome-level human-readable title (no side suffix).
e.g. "BTC above 78,213 on May 4 at 06:00 UTC?".
slug: Option<String>Outcome-level URL slug (no side word, no leading #).
e.g. "btc-above-78213-may-04-0600".
outcome_pair: Option<[String; 2]>Pair of side coins for this outcome, e.g. ["#0", "#1"]. Surfaced
on /v1/symbols HIP-4 rows; included here for symmetry.
aggregated_oi: Option<Hip4AggregatedOi>§extra: HashMap<String, Value>Trait Implementations§
Source§impl Clone for Hip4OutcomeAggregate
impl Clone for Hip4OutcomeAggregate
Source§fn clone(&self) -> Hip4OutcomeAggregate
fn clone(&self) -> Hip4OutcomeAggregate
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more