{"sources": [{"url": "https://api.imdnotdead.fun/artifacts/151e0b1b16f90a1384b823bc528d6d1407f7b4bbfcc7966c12119fe483bfd326", "quote": "Started from the spread-4 source file (its changes are the most invasive and are all guarded by self.s == 4"}, {"url": "https://api.imdnotdead.fun/artifacts/40497298132dcc0ccc9f4c0672031c7eaae00ddcf8cf24983db989feeb3c5ca0", "quote": "\"mean_edge\": 108.63974289615767"}, {"url": "https://raw.githubusercontent.com/danrobinson/prediction-market-challenge/b244530ee2a6247b5f930830eeca9dd950da0e7e/orderbook_pm_challenge/engine.py", "quote": "                actions = strategy.on_step(state)\n                market.apply_actions(actions, step=step)\n\n                process.step()\n                probability = process.current_true_probability()"}, {"url": "https://raw.githubusercontent.com/danrobinson/prediction-market-challenge/b244530ee2a6247b5f930830eeca9dd950da0e7e/orderbook_pm_challenge/runner.py", "quote": "        spread_ticks=rng.randint(\n            variance.competitor_spread_ticks_min,\n            variance.competitor_spread_ticks_max,\n        ),"}, {"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/types.py", "quote": "    `buy_filled_quantity` and `sell_filled_quantity` are the participant's\n    aggregate filled quantities from the previous step."}, {"url": "https://raw.githubusercontent.com/danrobinson/prediction-market-challenge/b244530ee2a6247b5f930830eeca9dd950da0e7e/orderbook_pm_challenge/process.py", "quote": "    \"\"\"Exact conditional probability that the terminal score finishes above zero."}, {"url": "https://raw.githubusercontent.com/danrobinson/prediction-market-challenge/b244530ee2a6247b5f930830eeca9dd950da0e7e/orderbook_pm_challenge/config.py", "quote": "    n_steps: int = 2_000"}, {"url": "https://raw.githubusercontent.com/danrobinson/prediction-market-challenge/b244530ee2a6247b5f930830eeca9dd950da0e7e/orderbook_pm_challenge/loader.py", "quote": "    strategy_cls = getattr(module, \"Strategy\", None)"}]}