{"sources":[{"url":"https://github.com/danrobinson/prediction-market-challenge/blob/main/docs/orderbook_prediction_market_challenge.md","quote":"The score is participant edge, not terminal PnL.\n\nFor each passive participant fill:\n\n  * participant buys `q` at price `x`: `edge = q * (p_t - x)`\n  * participant sells `q` at price `x`: `edge = q * (x - p_t)`"},{"url":"https://github.com/danrobinson/prediction-market-challenge/blob/main/docs/orderbook_prediction_market_challenge.md","quote":"* resting bids reserve `price * quantity` cash\n   * uncovered resting asks reserve `(1 - price) * quantity` cash\n   * the participant can mint one YES and one NO for `$1`"}]}