{"sources": [{"url": "https://github.com/danrobinson/prediction-market-challenge/blob/b244530ee2a6247b5f930830eeca9dd950da0e7e/orderbook_pm_challenge/market.py", "quote": "edge = fill.quantity * (probability - price) if fill.side is Side.BUY else fill.quantity * (price - probability)"}]}