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>
|
||||
<DailyChart
|
||||
v-if="botStore.activeBot.dailyStats.data"
|
||||
:daily-stats="botStore.activeBot.dailyStats"
|
||||
:daily-stats="botStore.activeBot.dailyStatsSorted"
|
||||
/>
|
||||
</div>
|
||||
<div>
|
||||
|
|
|
@ -161,6 +161,12 @@ export function createBotSubStore(botId: string, botName: string) {
|
|||
botName: (state) => state.botState?.bot_name || 'freqtrade',
|
||||
allTrades: (state) => [...state.openTrades, ...state.trades] as Trade[],
|
||||
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: {
|
||||
botAdded() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user