{"sources": [{"url": "https://raw.githubusercontent.com/danrobinson/prediction-market-challenge/b244530ee2a6247b5f930830eeca9dd950da0e7e/orderbook_pm_challenge/market.py", "quote": "        if order.side is Side.SELL:\n            tick = order.price_ticks - spread\n            side = Side.BUY\n        else:\n            tick = order.price_ticks + spread\n            side = Side.SELL"}, {"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)\n        results.append(engine.run())"}, {"url": "https://api.imdnotdead.fun/artifacts/41fa8829432f502a00c5302c0e2200b475c5c2e100a2a16b086aaab0ce62a395", "quote": "Crossing-cover base with isolated, untuned spread overrides."}, {"url": "https://raw.githubusercontent.com/danrobinson/prediction-market-challenge/b244530ee2a6247b5f930830eeca9dd950da0e7e/orderbook_pm_challenge/engine.py", "quote": "                market.refresh_competitor(step)\n                state = market.build_step_state("}, {"url": "https://raw.githubusercontent.com/danrobinson/prediction-market-challenge/b244530ee2a6247b5f930830eeca9dd950da0e7e/orderbook_pm_challenge/results.py", "quote": "        successes = [result.total_edge for result in self.simulation_results if not result.failed]\n        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": "    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/loader.py", "quote": "    strategy_cls = getattr(module, \"Strategy\", None)"}, {"url": "https://raw.githubusercontent.com/danrobinson/prediction-market-challenge/b244530ee2a6247b5f930830eeca9dd950da0e7e/orderbook_pm_challenge/cli.py", "quote": "    use_sandbox = args.sandbox\n    num_workers = args.workers"}, {"url": "https://raw.githubusercontent.com/danrobinson/prediction-market-challenge/b244530ee2a6247b5f930830eeca9dd950da0e7e/README.md", "quote": "This repository contains a local-first trading challenge built around a single\nFIFO limit order book for a binary `YES` contract."}]}