Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
# app.py (V18.
|
| 2 |
import os
|
| 3 |
import sys
|
| 4 |
import traceback
|
|
@@ -492,7 +492,7 @@ async def get_full_status():
|
|
| 492 |
}
|
| 493 |
|
| 494 |
# ==============================================================================
|
| 495 |
-
# 📊 [ 💡 GEM-ARCHITECT: NEW UI LOGIC ]
|
| 496 |
# ==============================================================================
|
| 497 |
|
| 498 |
async def manual_close_current_trade():
|
|
@@ -548,7 +548,7 @@ async def check_live_pnl_and_status():
|
|
| 548 |
pnl_unrealized = current_capital * pnl_pct
|
| 549 |
dynamic_balance = current_capital + pnl_unrealized
|
| 550 |
|
| 551 |
-
# تنسيق عرض المحفظة
|
| 552 |
wallet_color = "#00ff00" if pnl_unrealized >= 0 else "#ff0000"
|
| 553 |
wallet_md = f"""
|
| 554 |
<div style='background-color: #1a1a1a; padding: 15px; border-radius: 8px; border: 1px solid #333;'>
|
|
@@ -557,7 +557,7 @@ async def check_live_pnl_and_status():
|
|
| 557 |
${dynamic_balance:,.2f}
|
| 558 |
</div>
|
| 559 |
<div style='font-size: 14px; color: {wallet_color};'>
|
| 560 |
-
({pnl_unrealized
|
| 561 |
</div>
|
| 562 |
<div style='font-size: 12px; color: #666; margin-top:5px;'>
|
| 563 |
الرصيد الأساسي: ${current_capital:,.2f}
|
|
|
|
| 1 |
+
# app.py (V18.1 - GEM-Architect: Syntax Fix + Full Stack)
|
| 2 |
import os
|
| 3 |
import sys
|
| 4 |
import traceback
|
|
|
|
| 492 |
}
|
| 493 |
|
| 494 |
# ==============================================================================
|
| 495 |
+
# 📊 [ 💡 GEM-ARCHITECT: NEW UI LOGIC (FIXED SYNTAX) ]
|
| 496 |
# ==============================================================================
|
| 497 |
|
| 498 |
async def manual_close_current_trade():
|
|
|
|
| 548 |
pnl_unrealized = current_capital * pnl_pct
|
| 549 |
dynamic_balance = current_capital + pnl_unrealized
|
| 550 |
|
| 551 |
+
# تنسيق عرض المحفظة (Fixed Syntax Here)
|
| 552 |
wallet_color = "#00ff00" if pnl_unrealized >= 0 else "#ff0000"
|
| 553 |
wallet_md = f"""
|
| 554 |
<div style='background-color: #1a1a1a; padding: 15px; border-radius: 8px; border: 1px solid #333;'>
|
|
|
|
| 557 |
${dynamic_balance:,.2f}
|
| 558 |
</div>
|
| 559 |
<div style='font-size: 14px; color: {wallet_color};'>
|
| 560 |
+
({pnl_unrealized:+,.2f} USD غير محقق)
|
| 561 |
</div>
|
| 562 |
<div style='font-size: 12px; color: #666; margin-top:5px;'>
|
| 563 |
الرصيد الأساسي: ${current_capital:,.2f}
|