Skip to main content

parse_yes_probability

Function parse_yes_probability 

Source
fn parse_yes_probability(prices_json: &str) -> Option<f64>
Expand description

Parse the “Yes” probability from a Polymarket outcomePrices JSON string. The field is double-encoded: "[\"0.705\",\"0.295\"]".