{"sources": [{"url": "https://api.imd.fun/artifacts/7236701c55bd1d2e0674854545ae0bbe4d4b54508c7f7a7c914261696b02e158", "quote": "Defends against the arbitrageur by knowing where p is before quoting."}, {"url": "https://raw.githubusercontent.com/danrobinson/prediction-market-challenge/b244530ee2a6247b5f930830eeca9dd950da0e7e/docs/orderbook_prediction_market_challenge.md", "quote": "- buy order: spend `notional` cash on `YES`\n- sell order: sell `notional / max(p_t, p_floor)` shares"}, {"url": "https://raw.githubusercontent.com/danrobinson/prediction-market-challenge/b244530ee2a6247b5f930830eeca9dd950da0e7e/orderbook_pm_challenge/market.py", "quote": "        if action.side is Side.BUY:\n            reserved_cash = round(price * quantity, 10)"}, {"url": "https://raw.githubusercontent.com/danrobinson/prediction-market-challenge/b244530ee2a6247b5f930830eeca9dd950da0e7e/orderbook_pm_challenge/process.py", "quote": "    for n_jumps, weight in enumerate(weights):\n        future_mean = n_jumps * config.jump_mean"}, {"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/runner.py", "quote": "        config = sample_config(base, var, seed=seed)\n        engine = SimulationEngine(config, strategy_factory, seed=seed)"}, {"url": "https://raw.githubusercontent.com/danrobinson/prediction-market-challenge/b244530ee2a6247b5f930830eeca9dd950da0e7e/orderbook_pm_challenge/results.py", "quote": "        return sum(successes) / len(successes) if successes else 0.0"}, {"url": "https://raw.githubusercontent.com/danrobinson/prediction-market-challenge/b244530ee2a6247b5f930830eeca9dd950da0e7e/orderbook_pm_challenge/config.py", "quote": "    retail_arrival_rate_min: float = 0.154\n    retail_arrival_rate_max: float = 0.352"}, {"url": "https://raw.githubusercontent.com/danrobinson/prediction-market-challenge/b244530ee2a6247b5f930830eeca9dd950da0e7e/orderbook_pm_challenge/types.py", "quote": "Action = Union[PlaceOrder, CancelOrder, CancelAll]"}]}