Skip to content

Commit

Permalink
markToMarket bug fix in the TradingAgent class
Browse files Browse the repository at this point in the history
markToMarket bug fix in the TradingAgent class
  • Loading branch information
mamahfouz authored Oct 2, 2020
2 parents ff302ad + 09f8434 commit 64f668e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agent/TradingAgent.py
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ def markToMarket (self, holdings, use_midpoint=False):
if bid is None or ask is None or midpoint is None:
value = self.last_trade[symbol] * shares
else:
value = midpoint
value = midpoint * shares
else:
value = self.last_trade[symbol] * shares

Expand Down

0 comments on commit 64f668e

Please sign in to comment.