From 110c0517b808e9af77b3d105f1aefef7135b0b06 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Fri, 13 Aug 2021 10:42:07 -0400 Subject: trad: just testing --- app/trading/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/trading/models.py') diff --git a/app/trading/models.py b/app/trading/models.py index 837300b..2a71fb3 100644 --- a/app/trading/models.py +++ b/app/trading/models.py @@ -297,7 +297,7 @@ class LuxOptionsTrade(models.Model): if self.call_put == 0: self.pl = round(((self.contract_close_price*self.number_contracts)*100) - ((self.contract_price*self.number_contracts)*100), 2) else: - self.pl = round(((self.contract_price*self.number_contracts)*100) - ((self.contract_close_price*self.number_contracts)*100), 2) + self.pl = round(((self.contract_close_price*self.number_contracts)*100) - ((self.contract_price*self.number_contracts)*100), 2) if self.notes: self.notes_html = markdown_to_html(self.notes) -- cgit v1.2.3-70-g09d2