mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-26 21:15:15 +00:00
Reduce network traffic (don't call getState every 5s)
This commit is contained in:
parent
f76773be39
commit
e1dae7c630
|
@ -214,6 +214,7 @@ export function createBotSubStore(botId: string, botName: string) {
|
||||||
this.refreshing = true;
|
this.refreshing = true;
|
||||||
// TODO: Should be AxiosInstance
|
// TODO: Should be AxiosInstance
|
||||||
const updates: Promise<unknown>[] = [];
|
const updates: Promise<unknown>[] = [];
|
||||||
|
updates.push(this.getState());
|
||||||
updates.push(this.getPerformance());
|
updates.push(this.getPerformance());
|
||||||
updates.push(this.getProfit());
|
updates.push(this.getProfit());
|
||||||
updates.push(this.getTrades());
|
updates.push(this.getTrades());
|
||||||
|
@ -232,7 +233,6 @@ export function createBotSubStore(botId: string, botName: string) {
|
||||||
async refreshFrequent() {
|
async refreshFrequent() {
|
||||||
// Refresh data that's needed in near realtime
|
// Refresh data that's needed in near realtime
|
||||||
await this.getOpenTrades();
|
await this.getOpenTrades();
|
||||||
await this.getState();
|
|
||||||
await this.getLocks();
|
await this.getLocks();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user