{"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_config, variance, seed=seed)\n    factory = load_strategy_factory(strategy_path)\n    engine = SimulationEngine(config, factory, seed=seed)\n    return asdict(engine.run())"}, {"url": "https://api.imdnotdead.fun/artifacts/41fa8829432f502a00c5302c0e2200b475c5c2e100a2a16b086aaab0ce62a395", "quote": "\"code_sha256\": \"dcf68e0c9a7b06f90cf70a833357b60e2208b5b3e2971e7dddf02986d4747076\""}, {"url": "https://raw.githubusercontent.com/danrobinson/prediction-market-challenge/b244530ee2a6247b5f930830eeca9dd950da0e7e/orderbook_pm_challenge/market.py", "quote": "        if side is Side.SELL:\n            return min(candidates, key=lambda order: (order.price_ticks, order.sequence))\n        return max(candidates, key=lambda order: (order.price_ticks, -order.sequence))"}]}