summaryrefslogtreecommitdiff
path: root/app/trading
diff options
context:
space:
mode:
authorlxf <sng@luxagraf.net>2022-01-13 10:10:28 -0500
committerlxf <sng@luxagraf.net>2022-01-13 10:10:28 -0500
commitb017e4423d786eb2b739cf6dc51e9c49cad20b59 (patch)
tree493cb98e936a03def70cdcfa5bf8be00b0cb134c /app/trading
parenta4c0773335f0c1307bcb86132cc51cc2642fca2c (diff)
trad: got rid of some rounding
Diffstat (limited to 'app/trading')
-rw-r--r--app/trading/models.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/trading/models.py b/app/trading/models.py
index 17a1b85..63d094b 100644
--- a/app/trading/models.py
+++ b/app/trading/models.py
@@ -408,11 +408,11 @@ class LuxOptionPurchase(models.Model):
@property
def total_invested(self):
- return round(self.get_contract_count()*(self.luxoptioncontract_set.first().contract_open_price*100))
+ return self.get_contract_count()*(self.luxoptioncontract_set.first().contract_open_price*100)
@property
def trade_risk(self):
- return round(self.total_invested*.25)
+ return self.total_invested*.25
@property
def portfolio_risk(self):