summaryrefslogtreecommitdiff
path: root/app/trading/models.py
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2021-08-13 10:42:07 -0400
committerluxagraf <sng@luxagraf.net>2021-08-13 10:42:07 -0400
commit110c0517b808e9af77b3d105f1aefef7135b0b06 (patch)
treec3e9efa34842f5eae152411b89aa42e0951bffd5 /app/trading/models.py
parent0c8e041f22fb9c29242fe8b279cd2c11de000979 (diff)
trad: just testing
Diffstat (limited to 'app/trading/models.py')
-rw-r--r--app/trading/models.py2
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)