This commit is contained in:
薇薇安 2026-01-22 20:31:10 +08:00
parent d914b64294
commit 18eeac233a

View File

@ -242,15 +242,15 @@ const TradeList = () => {
stats && ( stats && (
<div > <div >
<div style={{ fontSize: '1.1rem' }}>整体统计</div> <div style={{ fontSize: '1.1rem' }}>整体统计</div>
<div style={{ display: 'flex', flexDirection: 'column', gap: '4px' }}> <div style={{ display: 'flex', justifyContent: 'space-between', gap: '4px' }}>
<div style={{ fontSize: '1.1rem' }}>总交易数{stats.total_trades} </div> <div style={{ fontSize: '1.1rem' }}>总交易数{stats.total_trades} </div>
<div style={{ fontSize: '1.1rem' }}>胜率{stats.win_rate.toFixed(2)}%</div> <div style={{ fontSize: '1.1rem' }}>胜率{stats.win_rate.toFixed(2)}%</div>
</div> </div>
<div style={{ display: 'flex', flexDirection: 'column', gap: '4px' }}> <div style={{ display: 'flex', justifyContent: 'space-between', gap: '4px' }}>
<div style={{ fontSize: '1.1rem' }}>总盈亏{stats.total_pnl.toFixed(2)} USDT</div> <div style={{ fontSize: '1.1rem' }}>总盈亏{stats.total_pnl.toFixed(2)} USDT</div>
<div style={{ fontSize: '1.1rem' }}>平均盈亏{stats.avg_pnl.toFixed(2)} USDT</div> <div style={{ fontSize: '1.1rem' }}>平均盈亏{stats.avg_pnl.toFixed(2)} USDT</div>
</div> </div>
<div style={{ display: 'flex', flexDirection: 'column', gap: '4px' }}> <div style={{ display: 'flex', justifyContent: 'space-between', gap: '4px' }}>
<div style={{ fontSize: '1.1rem' }}>平均持仓时长分钟{stats.avg_duration_minutes ? Number(stats.avg_duration_minutes).toFixed(0) : 0}</div> <div style={{ fontSize: '1.1rem' }}>平均持仓时长分钟{stats.avg_duration_minutes ? Number(stats.avg_duration_minutes).toFixed(0) : 0}</div>
<div style={{ fontSize: '1.1rem' }}>平仓原因有意义交易 <div style={{ fontSize: '1.1rem' }}>平仓原因有意义交易
<div style={{ fontSize: '1.1rem' }}> <div style={{ fontSize: '1.1rem' }}>
@ -274,7 +274,7 @@ const TradeList = () => {
</div> </div>
</div> </div>
</div> </div>
<div style={{ display: 'flex', flexDirection: 'column', gap: '4px' }}> <div style={{ display: 'flex', justifyContent: 'space-between', gap: '4px' }}>
<div style={{ fontSize: '1.1rem' }}>平均盈利 / 平均亏损期望 3:1{Number(stats.avg_win_loss_ratio || 0).toFixed(2)} : 1</div> <div style={{ fontSize: '1.1rem' }}>平均盈利 / 平均亏损期望 3:1{Number(stats.avg_win_loss_ratio || 0).toFixed(2)} : 1</div>
<div style={{ fontSize: '1.1rem' }}>总交易量名义{Number(stats.total_notional_usdt || 0).toFixed(2)} USDT</div> <div style={{ fontSize: '1.1rem' }}>总交易量名义{Number(stats.total_notional_usdt || 0).toFixed(2)} USDT</div>
</div> </div>