|
@@ -207,11 +207,10 @@ class InfoCommands:
|
|
|
|
|
|
token_info = self.trading_engine.get_token_info(base_asset)
|
|
|
base_precision = token_info.get('precision', {}).get('amount', 6) if token_info and token_info.get('precision') else 6
|
|
|
- quote_precision = token_info.get('precision', {}).get('price', 2) if token_info and token_info.get('precision') else 2
|
|
|
|
|
|
formatter = get_formatter()
|
|
|
- entry_price_str = formatter.format_price_with_symbol(entry_price, base_asset, quote_precision)
|
|
|
- mark_price_str = formatter.format_price_with_symbol(mark_price, base_asset, quote_precision)
|
|
|
+ entry_price_str = formatter.format_price_with_symbol(entry_price, base_asset)
|
|
|
+ mark_price_str = formatter.format_price_with_symbol(mark_price, base_asset)
|
|
|
|
|
|
type_indicator = ""
|
|
|
|
|
@@ -234,7 +233,7 @@ class InfoCommands:
|
|
|
if margin_used is not None:
|
|
|
positions_text += f" 💳 Margin Used: ${margin_used:,.2f}\n"
|
|
|
if position_trade.get('liquidation_price') is not None and position_trade.get('liquidation_price') > 0:
|
|
|
- liq_price_str = formatter.format_price_with_symbol(position_trade.get('liquidation_price'), base_asset, quote_precision)
|
|
|
+ liq_price_str = formatter.format_price_with_symbol(position_trade.get('liquidation_price'), base_asset)
|
|
|
positions_text += f" ⚠️ Liquidation: {liq_price_str}\n"
|
|
|
|
|
|
|
|
@@ -326,7 +325,7 @@ class InfoCommands:
|
|
|
|
|
|
orders_text += "\n"
|
|
|
|
|
|
- orders_text += f"�� <b>Total Orders:</b> {len(orders)}\n"
|
|
|
+ orders_text += f"💼 <b>Total Orders:</b> {len(orders)}\n"
|
|
|
orders_text += f"💡 Use /coo [token] to cancel orders"
|
|
|
|
|
|
else:
|