summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/trading/models.py4
-rw-r--r--app/trading/templates/trading/list.html4
2 files changed, 4 insertions, 4 deletions
diff --git a/app/trading/models.py b/app/trading/models.py
index 80a67ed..f0f332c 100644
--- a/app/trading/models.py
+++ b/app/trading/models.py
@@ -288,11 +288,11 @@ class LuxOptionsTrade(models.Model):
@property
def trade_risk_percent(self):
- return round((self.risk_total/self.amount_invested)*100, 2);
+ return round((self.risk_total/self.amount_invested)*100, 0);
@property
def portfolio_risk_percent(self):
- return round((self.risk_total/10000)*100, 2);
+ return round((self.risk_total/10000)*100, 0);
@property
diff --git a/app/trading/templates/trading/list.html b/app/trading/templates/trading/list.html
index 38c7d46..a132cd6 100644
--- a/app/trading/templates/trading/list.html
+++ b/app/trading/templates/trading/list.html
@@ -116,8 +116,8 @@
<td>${{object.amount_invested}}</td>
<td>${{object.risk_per_contract}}</td>
<td>${{object.risk_total}}</td>
- <td>${{object.trade_risk_percent}}</td>
- <td>${{object.portfolio_risk_percent}}</td>
+ <td>{{object.trade_risk_percent}}%</td>
+ <td>{{object.portfolio_risk_percent}}%</td>
<td>${{object.profit_goal}}</td>
<td>{{object.risk_reward}}</td>
<td>