Skip to content

Commit

Permalink
Credit supply positions do not have price structures
Browse files Browse the repository at this point in the history
  • Loading branch information
miohtama committed Oct 2, 2024
1 parent 96bb703 commit 940cd4a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tradeexecutor/strategy/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -1096,6 +1096,11 @@ def post_process_trade_decision(

if max_price_impact is not None:
for t in trades:

if t.is_credit_supply():
# Credit supply positions do not have price structure
continue

price_structure = t.price_structure

if execution_context.live_trading:
Expand Down

0 comments on commit 940cd4a

Please sign in to comment.