Merge pull request #355 from Icyoung/beta

Beta Competition kline count change to 5
This commit is contained in:
Icyoung
2025-11-04 00:23:40 +08:00
committed by GitHub
2 changed files with 3 additions and 3 deletions

View File

@@ -116,7 +116,7 @@ export function CompetitionPage() {
{t('realTimePnL', language)}
</div>
</div>
<ComparisonChart traders={sortedTraders} />
<ComparisonChart traders={sortedTraders.slice(0, 5)} />
</div>
{/* Right: Leaderboard */}

View File

@@ -260,10 +260,10 @@ export const api = {
return res.json();
},
// 获取前10名交易员数据(无需认证)
// 获取前5名交易员数据(无需认证)
async getTopTraders(): Promise<any[]> {
const res = await fetch(`${API_BASE}/top-traders`);
if (!res.ok) throw new Error('获取前10名交易员失败');
if (!res.ok) throw new Error('获取前5名交易员失败');
return res.json();
},