mirror of
https://github.com/NoFxAiOS/nofx.git
synced 2026-07-11 14:56:57 +08:00
Reduce the request frequency to the Binance API and add backend caching.
This commit is contained in:
@@ -33,8 +33,9 @@ export function ComparisonChart({ traders }: ComparisonChartProps) {
|
||||
return Promise.all(promises);
|
||||
},
|
||||
{
|
||||
refreshInterval: 10000,
|
||||
refreshInterval: 30000, // 30秒刷新(对比图表数据更新频率较低)
|
||||
revalidateOnFocus: false,
|
||||
dedupingInterval: 20000,
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user