{"sources": [{"url": "https://raw.githubusercontent.com/danrobinson/prediction-market-challenge/b244530ee2a6247b5f930830eeca9dd950da0e7e/docs/orderbook_prediction_market_challenge.md", "quote": "The score is participant edge, not terminal PnL."}, {"url": "https://raw.githubusercontent.com/danrobinson/prediction-market-challenge/b244530ee2a6247b5f930830eeca9dd950da0e7e/docs/orderbook_prediction_market_challenge.md", "quote": "- same-price orders are FIFO"}, {"url": "https://raw.githubusercontent.com/danrobinson/prediction-market-challenge/b244530ee2a6247b5f930830eeca9dd950da0e7e/orderbook_pm_challenge/market.py", "quote": "return min(candidates, key=lambda order: (order.price_ticks, order.sequence))"}, {"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": "fills.extend(self._execute_buy_quantity(best_ask.remaining_quantity, aggressor=ARB, step=step))"}, {"url": "https://raw.githubusercontent.com/danrobinson/prediction-market-challenge/b244530ee2a6247b5f930830eeca9dd950da0e7e/orderbook_pm_challenge/market.py", "quote": "covered = min(order.reserved_yes, quantity)"}, {"url": "https://raw.githubusercontent.com/danrobinson/prediction-market-challenge/b244530ee2a6247b5f930830eeca9dd950da0e7e/orderbook_pm_challenge/types.py", "quote": "    remaining_quantity: float\n    submitted_step: int"}, {"url": "https://raw.githubusercontent.com/danrobinson/prediction-market-challenge/b244530ee2a6247b5f930830eeca9dd950da0e7e/orderbook_pm_challenge/retail.py", "quote": "notional = self._rng.lognormvariate(mu_ln, sigma)"}, {"url": "https://raw.githubusercontent.com/danrobinson/prediction-market-challenge/b244530ee2a6247b5f930830eeca9dd950da0e7e/orderbook_pm_challenge/retail.py", "quote": "count = _sample_poisson(self._rng, self._config.arrival_rate)"}, {"url": "https://raw.githubusercontent.com/danrobinson/prediction-market-challenge/b244530ee2a6247b5f930830eeca9dd950da0e7e/orderbook_pm_challenge/engine.py", "quote": "                step_fills.extend(market.execute_arbitrage(probability=probability, step=step))\n\n                for order in retail.generate_orders():"}, {"url": "https://raw.githubusercontent.com/danrobinson/prediction-market-challenge/b244530ee2a6247b5f930830eeca9dd950da0e7e/orderbook_pm_challenge/config.py", "quote": "    competitor_spread_ticks_min: int = 1\n    competitor_spread_ticks_max: int = 4"}, {"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://api.imdnotdead.fun/artifacts/5ec4e47200eb5e16cec281f133e5e7fbfd73b3157fcf5f2c60d013ffa9300b76", "quote": "Stale-quote defence with tick probes, a sub-tick belief and cheap YES stock."}, {"url": "https://raw.githubusercontent.com/danrobinson/prediction-market-challenge/b244530ee2a6247b5f930830eeca9dd950da0e7e/docs/orderbook_prediction_market_challenge.md", "quote": "- buy order: spend `notional` cash on `YES`"}]}