fix: 持仓面板 pnl_est 显示改为美元符号(后台已改为USD)
This commit is contained in:
@@ -244,7 +244,7 @@ function PositionsCard({ positions }) {
|
|||||||
<td className="text-right">${(p.amount_usd || 0).toFixed(0)}</td>
|
<td className="text-right">${(p.amount_usd || 0).toFixed(0)}</td>
|
||||||
<td className="text-right">{(p.entry_spread || 0).toFixed(4)}%</td>
|
<td className="text-right">{(p.entry_spread || 0).toFixed(4)}%</td>
|
||||||
<td className="text-right">{p.current_spread != null ? p.current_spread.toFixed(4) + '%' : '-'}</td>
|
<td className="text-right">{p.current_spread != null ? p.current_spread.toFixed(4) + '%' : '-'}</td>
|
||||||
<td className={'text-right ' + pnlClass(p.pnl_est)}><strong>{p.pnl_est != null ? p.pnl_est.toFixed(4) + '%' : '-'}</strong></td>
|
<td className={'text-right ' + pnlClass(p.pnl_est)}><strong>{p.pnl_est != null ? '$' + p.pnl_est.toFixed(4) : '-'}</strong></td>
|
||||||
<td className="text-right">{p.scales || 0}</td>
|
<td className="text-right">{p.scales || 0}</td>
|
||||||
<td>{p.duration || '-'}</td>
|
<td>{p.duration || '-'}</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
Reference in New Issue
Block a user