mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-10 18:23:50 +00:00
Sort closed trades by trade_id
This commit is contained in:
parent
3bc285ec7b
commit
2fc8854060
|
@ -81,7 +81,8 @@ export default {
|
|||
return state.selectedPair;
|
||||
},
|
||||
[BotStoreGetters.closedTrades](state: FtbotStateType) {
|
||||
return state.trades.filter((item) => !item.is_open);
|
||||
// Sort by trade_id desc
|
||||
return state.trades.filter((item) => !item.is_open).sort((a, b) => b.trade_id - a.trade_id);
|
||||
},
|
||||
[BotStoreGetters.timeframe](state: FtbotStateType): string {
|
||||
return state.botState?.timeframe || '';
|
||||
|
|
Loading…
Reference in New Issue
Block a user