This commit is contained in:
@@ -547,10 +547,11 @@
|
||||
|
||||
async function fetchData() {
|
||||
try {
|
||||
// Verwende limit für trades um Performance zu verbessern
|
||||
const [t, m, s] = await Promise.all([
|
||||
fetch(`${API}/trades?days=7`).then(r => r.json()),
|
||||
fetch(`${API}/trades?days=7&limit=1000`).then(r => r.json()),
|
||||
fetch(`${API}/metadata`).then(r => r.json()),
|
||||
fetch(`${API}/summary`).then(r => r.json())
|
||||
fetch(`${API}/summary?days=7`).then(r => r.json())
|
||||
]);
|
||||
store = { ...store, trades: t.dataset || [], metadata: m.dataset || [], summary: s.dataset || [] };
|
||||
updateDashboard();
|
||||
|
||||
Reference in New Issue
Block a user