From b017e4423d786eb2b739cf6dc51e9c49cad20b59 Mon Sep 17 00:00:00 2001 From: lxf Date: Thu, 13 Jan 2022 10:10:28 -0500 Subject: trad: got rid of some rounding --- app/trading/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app') 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): -- cgit v1.2.3-70-g09d2