From 09f8434b25d0f61b768101d8b2e93d654f68faae Mon Sep 17 00:00:00 2001 From: selimamrouni Date: Fri, 2 Oct 2020 14:35:04 -0400 Subject: [PATCH] modified markToMarket bug --- agent/TradingAgent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent/TradingAgent.py b/agent/TradingAgent.py index b6108b413..55d10bc9b 100644 --- a/agent/TradingAgent.py +++ b/agent/TradingAgent.py @@ -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