{
 "sources": [
  {
   "url": "https://raw.githubusercontent.com/danrobinson/prediction-market-challenge/b244530ee2a6247b5f930830eeca9dd950da0e7e/docs/orderbook_prediction_market_challenge.md",
   "quote": "- sell order: sell `notional / max(p_t, p_floor)` shares"
  },
  {
   "url": "https://raw.githubusercontent.com/danrobinson/prediction-market-challenge/b244530ee2a6247b5f930830eeca9dd950da0e7e/docs/orderbook_prediction_market_challenge.md",
   "quote": "- buy order: spend `notional` cash on `YES`"
  },
  {
   "url": "https://raw.githubusercontent.com/danrobinson/prediction-market-challenge/b244530ee2a6247b5f930830eeca9dd950da0e7e/docs/orderbook_prediction_market_challenge.md",
   "quote": "- buy every resting ask with `ask_price < p_t`"
  },
  {
   "url": "https://raw.githubusercontent.com/danrobinson/prediction-market-challenge/b244530ee2a6247b5f930830eeca9dd950da0e7e/docs/orderbook_prediction_market_challenge.md",
   "quote": "- sell into every resting bid with `bid_price > p_t`"
  },
  {
   "url": "https://raw.githubusercontent.com/danrobinson/prediction-market-challenge/b244530ee2a6247b5f930830eeca9dd950da0e7e/docs/orderbook_prediction_market_challenge.md",
   "quote": "- uncovered resting asks reserve `(1 - price) * quantity` cash"
  },
  {
   "url": "https://raw.githubusercontent.com/danrobinson/prediction-market-challenge/b244530ee2a6247b5f930830eeca9dd950da0e7e/docs/orderbook_prediction_market_challenge.md",
   "quote": "- participant buys `q` at price `x`: `edge = q * (p_t - x)`"
  },
  {
   "url": "https://raw.githubusercontent.com/danrobinson/prediction-market-challenge/b244530ee2a6247b5f930830eeca9dd950da0e7e/orderbook_pm_challenge/market.py",
   "quote": "            reserved_yes = min(quantity, available_yes)"
  },
  {
   "url": "https://raw.githubusercontent.com/danrobinson/prediction-market-challenge/b244530ee2a6247b5f930830eeca9dd950da0e7e/orderbook_pm_challenge/market.py",
   "quote": "raise OrderBookError(\"Insufficient free cash for order collateral\")"
  }
 ]
}