diff options
author | luxagraf <sng@luxagraf.net> | 2021-08-13 10:42:07 -0400 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2021-08-13 10:42:07 -0400 |
commit | 110c0517b808e9af77b3d105f1aefef7135b0b06 (patch) | |
tree | c3e9efa34842f5eae152411b89aa42e0951bffd5 /app/trading/models.py | |
parent | 0c8e041f22fb9c29242fe8b279cd2c11de000979 (diff) |
trad: just testing
Diffstat (limited to 'app/trading/models.py')
-rw-r--r-- | app/trading/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |