Running Freqtrade {{ version }}
@@ -49,7 +49,7 @@ export default class BotStatus extends Vue {
@ftbot.State profit;
- @ftbot.State botState!: BotState;
+ @ftbot.State botState?: BotState;
formatPercent = formatPercent;
diff --git a/src/store/modules/ftbot/state.ts b/src/store/modules/ftbot/state.ts
index 288304c9..9b14a772 100644
--- a/src/store/modules/ftbot/state.ts
+++ b/src/store/modules/ftbot/state.ts
@@ -4,7 +4,6 @@ import {
BotState,
Trade,
PlotConfig,
- EMPTY_PLOTCONFIG,
StrategyResult,
BalanceInterface,
DailyReturnValue,
@@ -24,24 +23,24 @@ export interface FtbotStateType {
blacklist: string[];
// TODO: type me
profit: {};
- botState: BotState | undefined;
+ botState?: BotState;
balance: BalanceInterface | {};
dailyStats: DailyReturnValue | {};
pairlistMethods: string[];
- detailTradeId: number | undefined;
+ detailTradeId?: number;
selectedPair: string;
// TODO: type me
candleData: {};
// TODO: type me
history: {};
- strategyPlotConfig: PlotConfig | {};
+ strategyPlotConfig?: PlotConfig;
customPlotConfig: PlotConfigStorage;
plotConfigName: string;
availablePlotConfigNames: string[];
strategyList: string[];
strategy: StrategyResult | {};
pairlist: string[];
- currentLocks: LockResponse | undefined;
+ currentLocks?: LockResponse;
}
const state: FtbotStateType = {
version: '',
@@ -62,7 +61,7 @@ const state: FtbotStateType = {
selectedPair: '',
candleData: {},
history: {},
- strategyPlotConfig: {},
+ strategyPlotConfig: undefined,
customPlotConfig: {},
plotConfigName: getPlotConfigName(),
availablePlotConfigNames: getAllPlotConfigNames(),