{"sources": [{"url": "https://api.imd.fun/artifacts/41fa8829432f502a00c5302c0e2200b475c5c2e100a2a16b086aaab0ce62a395", "quote": "if sticky and sum(o.remaining_quantity for o in orders if o.price_ticks == comp and o.order_id in self.ahead) >= P['min_ahead']:"}, {"url": "https://raw.githubusercontent.com/danrobinson/prediction-market-challenge/main/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/main/orderbook_pm_challenge/market.py", "quote": "max_quantity = quantize_down(remaining_cash / best_ask.price, self._config.share_quantum)"}, {"url": "https://raw.githubusercontent.com/danrobinson/prediction-market-challenge/main/orderbook_pm_challenge/runner.py", "quote": "config = sample_config(base, var, seed=seed)"}, {"url": "https://raw.githubusercontent.com/danrobinson/prediction-market-challenge/main/orderbook_pm_challenge/engine.py", "quote": "step_fills.extend(market.execute_retail_buy(notional=order.notional, step=step))"}]}