TradesLog show all trades (from all bots)

This commit is contained in:
Matthias 2021-09-18 19:49:36 +02:00
parent 7685703b8c
commit 8eada44433

View File

@ -84,7 +84,7 @@
drag-allow-from=".drag-header" drag-allow-from=".drag-header"
> >
<DraggableContainer header="Trades Log"> <DraggableContainer header="Trades Log">
<TradesLogChart :trades="closedTrades" :show-title="false" /> <TradesLogChart :trades="allTradesAllBots" :show-title="false" />
</DraggableContainer> </DraggableContainer>
</GridItem> </GridItem>
</GridLayout> </GridLayout>
@ -110,14 +110,7 @@ import {
LayoutActions, LayoutActions,
LayoutGetters, LayoutGetters,
} from '@/store/modules/layout'; } from '@/store/modules/layout';
import { import { Trade, DailyReturnValue, DailyPayload, ClosedTrade } from '@/types';
Trade,
DailyReturnValue,
ProfitInterface,
DailyPayload,
BotState,
ClosedTrade,
} from '@/types';
import { BotStoreGetters } from '@/store/modules/ftbot'; import { BotStoreGetters } from '@/store/modules/ftbot';
import { MultiBotStoreGetters } from '@/store/modules/botStoreWrapper'; import { MultiBotStoreGetters } from '@/store/modules/botStoreWrapper';
@ -137,8 +130,6 @@ const layoutNs = namespace('layout');
}, },
}) })
export default class Dashboard extends Vue { export default class Dashboard extends Vue {
@ftbot.Getter closedTrades!: Trade[];
@ftbot.Getter [MultiBotStoreGetters.botCount]!: number; @ftbot.Getter [MultiBotStoreGetters.botCount]!: number;
@ftbot.Getter [MultiBotStoreGetters.allOpenTradesAllBots]!: Trade[]; @ftbot.Getter [MultiBotStoreGetters.allOpenTradesAllBots]!: Trade[];
@ -147,12 +138,6 @@ export default class Dashboard extends Vue {
@ftbot.Getter [MultiBotStoreGetters.allDailyStatsAllBots]!: Record<string, DailyReturnValue>; @ftbot.Getter [MultiBotStoreGetters.allDailyStatsAllBots]!: Record<string, DailyReturnValue>;
@ftbot.Getter [BotStoreGetters.openTrades]!: Array<Trade>;
@ftbot.Getter [BotStoreGetters.botState]?: BotState;
@ftbot.Getter [BotStoreGetters.profit]!: ProfitInterface;
@ftbot.Getter [BotStoreGetters.performanceStats]!: PerformanceEntry[]; @ftbot.Getter [BotStoreGetters.performanceStats]!: PerformanceEntry[];
@ftbot.Action getPerformance; @ftbot.Action getPerformance;
@ -162,6 +147,10 @@ export default class Dashboard extends Vue {
@ftbot.Action getTrades; @ftbot.Action getTrades;
@ftbot.Action getOpenTrades;
@ftbot.Action getProfit;
@layoutNs.Getter [LayoutGetters.getDashboardLayoutSm]!: GridItemData[]; @layoutNs.Getter [LayoutGetters.getDashboardLayoutSm]!: GridItemData[];
@layoutNs.Getter [LayoutGetters.getDashboardLayout]!: GridItemData[]; @layoutNs.Getter [LayoutGetters.getDashboardLayout]!: GridItemData[];
@ -170,10 +159,6 @@ export default class Dashboard extends Vue {
@layoutNs.Getter [LayoutGetters.getLayoutLocked]: boolean; @layoutNs.Getter [LayoutGetters.getLayoutLocked]: boolean;
@ftbot.Action getOpenTrades;
@ftbot.Action getProfit;
formatPrice = formatPrice; formatPrice = formatPrice;
localGridLayout: GridItemData[] = []; localGridLayout: GridItemData[] = [];