mirror of
https://github.com/NoFxAiOS/nofx.git
synced 2026-07-02 10:31:04 +08:00
Merge pull request #355 from Icyoung/beta
Beta Competition kline count change to 5
This commit is contained in:
@@ -116,7 +116,7 @@ export function CompetitionPage() {
|
||||
{t('realTimePnL', language)}
|
||||
</div>
|
||||
</div>
|
||||
<ComparisonChart traders={sortedTraders} />
|
||||
<ComparisonChart traders={sortedTraders.slice(0, 5)} />
|
||||
</div>
|
||||
|
||||
{/* Right: Leaderboard */}
|
||||
|
||||
@@ -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();
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user