Skip to content

Commit

Permalink
fix: Modify examples to avoid update_view regression (#128)
Browse files Browse the repository at this point in the history
Modify examples to avoid update_view regression :
deephaven/deephaven-core#5998
  • Loading branch information
chipkent authored Aug 28, 2024
1 parent a4dcc6b commit e5f0164
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/example_market_maker.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
]) \
Expand Down

0 comments on commit e5f0164

Please sign in to comment.