From e1dae7c63082c5449379e26593e263d2a88f88f7 Mon Sep 17 00:00:00 2001 From: Matthias Date: Tue, 28 Feb 2023 18:05:44 +0100 Subject: [PATCH] Reduce network traffic (don't call getState every 5s) --- src/stores/ftbot.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stores/ftbot.ts b/src/stores/ftbot.ts index a0f14600..233e90f9 100644 --- a/src/stores/ftbot.ts +++ b/src/stores/ftbot.ts @@ -214,6 +214,7 @@ export function createBotSubStore(botId: string, botName: string) { this.refreshing = true; // TODO: Should be AxiosInstance const updates: Promise[] = []; + updates.push(this.getState()); updates.push(this.getPerformance()); updates.push(this.getProfit()); updates.push(this.getTrades()); @@ -232,7 +233,6 @@ export function createBotSubStore(botId: string, botName: string) { async refreshFrequent() { // Refresh data that's needed in near realtime await this.getOpenTrades(); - await this.getState(); await this.getLocks(); },