fix: attempt to resolve JSX syntax errors in safe paper trading
This commit is contained in:
@@ -875,13 +875,13 @@ export default function SafePaperTradingPage() {
|
||||
<div className="text-right">
|
||||
<p className="text-sm text-gray-400">Virtual Balance</p>
|
||||
<p className={`text-lg font-bold ${paperBalance >= 1000 ? 'text-green-400' : 'text-red-400'}`}>
|
||||
${paperBalance.toFixed(2)}
|
||||
{paperBalance.toFixed(2)}
|
||||
</p>
|
||||
</div>
|
||||
<div className="text-right">
|
||||
<p className="text-sm text-gray-400">Total P&L</p>
|
||||
<p className={`text-lg font-bold ${totalPnL >= 0 ? 'text-green-400' : 'text-red-400'}`}>
|
||||
${totalPnL.toFixed(2)}
|
||||
{totalPnL.toFixed(2)}
|
||||
</p>
|
||||
</div>
|
||||
<div className="text-right">
|
||||
@@ -1242,7 +1242,7 @@ export default function SafePaperTradingPage() {
|
||||
<div className="grid grid-cols-1 md:grid-cols-3 gap-4 mb-4">
|
||||
<div className="bg-gray-700/50 rounded p-3">
|
||||
<p className="text-gray-400 text-sm">Entry Price</p>
|
||||
<p className="font-bold text-lg text-white">${currentAnalysis.entry?.price?.toFixed(2) || 'N/A'}</p>
|
||||
<p className="font-bold text-lg text-white">{currentAnalysis.entry?.price?.toFixed(2) || 'N/A'}</p>
|
||||
</div>
|
||||
<div className="bg-gray-700/50 rounded p-3">
|
||||
<p className="text-gray-400 text-sm">Analysis Mode</p>
|
||||
@@ -1379,7 +1379,7 @@ export default function SafePaperTradingPage() {
|
||||
<span className="text-yellow-400 mr-2">🎯</span>
|
||||
<span className="text-yellow-400 font-medium">Entry Point</span>
|
||||
</div>
|
||||
<p className="text-white font-mono text-lg">${currentAnalysis.entry?.price?.toFixed(2) || 'N/A'}</p>
|
||||
<p className="text-white font-mono text-lg">{currentAnalysis.entry?.price?.toFixed(2) || 'N/A'}</p>
|
||||
<p className="text-sm text-gray-400">
|
||||
{typeof currentAnalysis.entry?.reasoning === 'string'
|
||||
? currentAnalysis.entry.reasoning
|
||||
@@ -1395,7 +1395,7 @@ export default function SafePaperTradingPage() {
|
||||
<span className="text-red-400 mr-2">⭕</span>
|
||||
<span className="text-red-400 font-medium">Stop Loss</span>
|
||||
</div>
|
||||
<p className="text-white font-mono text-lg">${currentAnalysis.stopLoss?.price?.toFixed(2) || 'N/A'}</p>
|
||||
<p className="text-white font-mono text-lg">{currentAnalysis.stopLoss?.price?.toFixed(2) || 'N/A'}</p>
|
||||
<p className="text-sm text-gray-400">
|
||||
{typeof currentAnalysis.stopLoss?.reasoning === 'string'
|
||||
? currentAnalysis.stopLoss.reasoning
|
||||
@@ -1414,12 +1414,12 @@ export default function SafePaperTradingPage() {
|
||||
<div className="space-y-1">
|
||||
<div>
|
||||
<span className="text-blue-400 font-medium">TP1: </span>
|
||||
<span className="text-white font-mono">${currentAnalysis.takeProfits?.tp1?.price?.toFixed(2) || 'N/A'}</span>
|
||||
<span className="text-white font-mono">{currentAnalysis.takeProfits?.tp1?.price?.toFixed(2) || 'N/A'}</span>
|
||||
</div>
|
||||
{currentAnalysis.takeProfits?.tp2 && (
|
||||
<div>
|
||||
<span className="text-blue-400 font-medium">TP2: </span>
|
||||
<span className="text-white font-mono">${currentAnalysis.takeProfits.tp2.price?.toFixed(2)}</span>
|
||||
<span className="text-white font-mono">{currentAnalysis.takeProfits.tp2.price?.toFixed(2)}</span>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
@@ -1543,7 +1543,7 @@ export default function SafePaperTradingPage() {
|
||||
</span>
|
||||
</div>
|
||||
<div className="text-sm text-gray-400">
|
||||
Last: {learningInsights.lastTrade.symbol} ${learningInsights.lastTrade.pnl?.toFixed(2)}
|
||||
Last: {learningInsights.lastTrade.symbol} {learningInsights.lastTrade.pnl?.toFixed(2)}
|
||||
</div>
|
||||
<div className="text-sm text-gray-400">
|
||||
Confidence: {learningInsights.lastTrade.confidence}%
|
||||
@@ -1651,8 +1651,8 @@ export default function SafePaperTradingPage() {
|
||||
{trade.side}
|
||||
</span>
|
||||
<span className="text-white font-medium">{trade.symbol}</span>
|
||||
<span className="text-gray-400">${trade.entryPrice}</span>
|
||||
<span className="text-gray-400">Size: ${trade.positionSize?.toFixed(2)}</span>
|
||||
<span className="text-gray-400">{trade.entryPrice}</span>
|
||||
<span className="text-gray-400">Size: {trade.positionSize?.toFixed(2)}</span>
|
||||
</div>
|
||||
<div className="text-xs text-gray-400 mt-1">
|
||||
Entry: {new Date(trade.timestamp).toLocaleString()} |
|
||||
@@ -1699,11 +1699,11 @@ export default function SafePaperTradingPage() {
|
||||
{trade.side}
|
||||
</span>
|
||||
<span className="text-white">{trade.symbol}</span>
|
||||
<span className="text-gray-400">${trade.entryPrice} → ${trade.exitPrice}</span>
|
||||
<span className="text-gray-400">{trade.entryPrice} → {trade.exitPrice}</span>
|
||||
<span className={`font-medium ${
|
||||
(trade.pnl || 0) >= 0 ? 'text-green-400' : 'text-red-400'
|
||||
}`}>
|
||||
${(trade.pnl || 0).toFixed(2)}
|
||||
{(trade.pnl || 0).toFixed(2)}
|
||||
</span>
|
||||
<span className={`text-xs px-2 py-1 rounded ${
|
||||
trade.isWinner ? 'bg-green-600 text-white' : 'bg-red-600 text-white'
|
||||
@@ -1758,15 +1758,15 @@ export default function SafePaperTradingPage() {
|
||||
<div className="grid grid-cols-3 gap-4 text-sm">
|
||||
<div>
|
||||
<span className="text-gray-400">Entry: </span>
|
||||
<span className="text-white font-mono">${analysis.entry?.price?.toFixed(2) || 'N/A'}</span>
|
||||
<span className="text-white font-mono">{analysis.entry?.price?.toFixed(2) || 'N/A'}</span>
|
||||
</div>
|
||||
<div>
|
||||
<span className="text-gray-400">Stop: </span>
|
||||
<span className="text-white font-mono">${analysis.stopLoss?.price?.toFixed(2) || 'N/A'}</span>
|
||||
<span className="text-white font-mono">{analysis.stopLoss?.price?.toFixed(2) || 'N/A'}</span>
|
||||
</div>
|
||||
<div>
|
||||
<span className="text-gray-400">Target: </span>
|
||||
<span className="text-white font-mono">${analysis.takeProfits?.tp1?.price?.toFixed(2) || 'N/A'}</span>
|
||||
<span className="text-white font-mono">{analysis.takeProfits?.tp1?.price?.toFixed(2) || 'N/A'}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1783,3 +1783,4 @@ export default function SafePaperTradingPage() {
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
1785
app/safe-paper-trading/page.js.backup
Normal file
1785
app/safe-paper-trading/page.js.backup
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user