mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-11 02:33:51 +00:00
parent
be563c62a8
commit
0160fbe61b
|
@ -9,7 +9,7 @@
|
||||||
<div>
|
<div>
|
||||||
<DailyChart
|
<DailyChart
|
||||||
v-if="botStore.activeBot.dailyStats.data"
|
v-if="botStore.activeBot.dailyStats.data"
|
||||||
:daily-stats="botStore.activeBot.dailyStats"
|
:daily-stats="botStore.activeBot.dailyStatsSorted"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
|
|
|
@ -161,6 +161,12 @@ export function createBotSubStore(botId: string, botName: string) {
|
||||||
botName: (state) => state.botState?.bot_name || 'freqtrade',
|
botName: (state) => state.botState?.bot_name || 'freqtrade',
|
||||||
allTrades: (state) => [...state.openTrades, ...state.trades] as Trade[],
|
allTrades: (state) => [...state.openTrades, ...state.trades] as Trade[],
|
||||||
activeLocks: (state) => state.currentLocks?.locks || [],
|
activeLocks: (state) => state.currentLocks?.locks || [],
|
||||||
|
dailyStatsSorted: (state): DailyReturnValue => {
|
||||||
|
return {
|
||||||
|
...state.dailyStats,
|
||||||
|
data: Object.values(state.dailyStats.data).sort((a, b) => (a.date > b.date ? 1 : -1)),
|
||||||
|
};
|
||||||
|
},
|
||||||
},
|
},
|
||||||
actions: {
|
actions: {
|
||||||
botAdded() {
|
botAdded() {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user