diff --git a/examples/example_market_maker.py b/examples/example_market_maker.py index f4424676..d0ef5f8e 100644 --- a/examples/example_market_maker.py +++ b/examples/example_market_maker.py @@ -179,6 +179,8 @@ def update_orders(contract_id: int, pred_low: float, pred_high: float, buy_order "Position = replaceIfNull(Position, 0.0)", "PositionDollars = Position * MidPrice", "MaxPositionDollars = max_position_dollars", + ]) \ + .update_view([ "BuyOrder = PositionDollars < MaxPositionDollars", "SellOrder = PositionDollars > -MaxPositionDollars", ]) \