|
@@ -81,8 +81,8 @@ class PositionsCommands(InfoCommandsBase):
|
|
unrealized_pnl = (entry_price - mark_price) * abs_current_amount
|
|
unrealized_pnl = (entry_price - mark_price) * abs_current_amount
|
|
unrealized_pnl = unrealized_pnl or 0.0
|
|
unrealized_pnl = unrealized_pnl or 0.0
|
|
|
|
|
|
- # ROE Percentage from CCXT response
|
|
|
|
- roe_percentage = position_trade.get('returnOnEquity', 0.0) * 100
|
|
|
|
|
|
+ # ROE Percentage from database
|
|
|
|
+ roe_percentage = position_trade.get('unrealized_pnl_percentage', 0.0)
|
|
|
|
|
|
# Add to totals
|
|
# Add to totals
|
|
individual_position_value = position_trade.get('position_value')
|
|
individual_position_value = position_trade.get('position_value')
|