{
  "sources": [
    {
      "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": "    `buy_filled_quantity` and `sell_filled_quantity` are the participant's\n    aggregate filled quantities from the previous step."
    },
    {
      "url": "https://raw.githubusercontent.com/danrobinson/prediction-market-challenge/b244530ee2a6247b5f930830eeca9dd950da0e7e/docs/orderbook_prediction_market_challenge.md",
      "quote": "- arrivals per step: `Poisson(lambda_retail)`"
    },
    {
      "url": "https://raw.githubusercontent.com/danrobinson/prediction-market-challenge/b244530ee2a6247b5f930830eeca9dd950da0e7e/orderbook_pm_challenge/market.py",
      "quote": "        if self.free_cash() + EPSILON < reserved_cash:\n            raise OrderBookError(\"Insufficient free cash for order collateral\")"
    },
    {
      "url": "https://raw.githubusercontent.com/danrobinson/prediction-market-challenge/b244530ee2a6247b5f930830eeca9dd950da0e7e/orderbook_pm_challenge/runner.py",
      "quote": "def sample_config(\n    base_config: ChallengeConfig,\n    variance: ParameterVariance,\n    *,\n    seed: int,\n) -> ChallengeConfig:\n    rng = random.Random(seed)"
    },
    {
      "url": "https://raw.githubusercontent.com/danrobinson/prediction-market-challenge/b244530ee2a6247b5f930830eeca9dd950da0e7e/orderbook_pm_challenge/engine.py",
      "quote": "                market.record_participant_fills(step_fills, probability=probability)\n                pending_buy_filled_quantity, pending_sell_filled_quantity = market.summarize_participant_fills(\n                    step_fills\n                )"
    }
  ]
}
