{
 "sources": [
  {
   "url": "https://raw.githubusercontent.com/danrobinson/prediction-market-challenge/main/docs/orderbook_prediction_market_challenge.md",
   "quote": "The score is participant edge, not terminal PnL."
  },
  {
   "url": "https://raw.githubusercontent.com/danrobinson/prediction-market-challenge/main/docs/orderbook_prediction_market_challenge.md",
   "quote": "- sell order: sell `notional / max(p_t, p_floor)` shares"
  },
  {
   "url": "https://raw.githubusercontent.com/danrobinson/prediction-market-challenge/main/docs/orderbook_prediction_market_challenge.md",
   "quote": "- buy order: spend `notional` cash on `YES`"
  },
  {
   "url": "https://raw.githubusercontent.com/danrobinson/prediction-market-challenge/main/docs/orderbook_prediction_market_challenge.md",
   "quote": "- uncovered resting asks reserve `(1 - price) * quantity` cash"
  },
  {
   "url": "https://raw.githubusercontent.com/danrobinson/prediction-market-challenge/main/docs/orderbook_prediction_market_challenge.md",
   "quote": "5. Let the arbitrageur sweep stale quotes against `p_t`."
  },
  {
   "url": "https://raw.githubusercontent.com/danrobinson/prediction-market-challenge/b244530ee2a6247b5f930830eeca9dd950da0e7e/orderbook_pm_challenge/market.py",
   "quote": "edge = fill.quantity * (probability - price) if fill.side is Side.BUY else fill.quantity * (price - probability)"
  },
  {
   "url": "https://raw.githubusercontent.com/danrobinson/prediction-market-challenge/b244530ee2a6247b5f930830eeca9dd950da0e7e/orderbook_pm_challenge/market.py",
   "quote": "tick = order.price_ticks + spread"
  },
  {
   "url": "https://raw.githubusercontent.com/danrobinson/prediction-market-challenge/b244530ee2a6247b5f930830eeca9dd950da0e7e/orderbook_pm_challenge/market.py",
   "quote": "max_quantity = quantize_down(remaining_cash / best_ask.price, self._config.share_quantum)"
  },
  {
   "url": "https://raw.githubusercontent.com/danrobinson/prediction-market-challenge/b244530ee2a6247b5f930830eeca9dd950da0e7e/orderbook_pm_challenge/engine.py",
   "quote": "order.notional / max(probability, self._config.retail.sell_quantity_price_floor),"
  },
  {
   "url": "https://raw.githubusercontent.com/danrobinson/prediction-market-challenge/b244530ee2a6247b5f930830eeca9dd950da0e7e/orderbook_pm_challenge/config.py",
   "quote": "competitor_spread_ticks_max: int = 4"
  },
  {
   "url": "https://api.imdnotdead.fun/artifacts/ecbc9087b4f238fc1b5b0d52f55af073f676c038bfb6756172b1e51480ac1741",
   "quote": "\"mean_edge\": 109.27254289017199"
  },
  {
   "url": "https://api.imdnotdead.fun/artifacts/ecbc9087b4f238fc1b5b0d52f55af073f676c038bfb6756172b1e51480ac1741",
   "quote": "\"code_sha256\": \"baef955ec10728839f7c3357016ec9eb0550e7ec689bbd5171b1cdd5c9e37273\""
  }
 ]
}