mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-23 03:25:15 +00:00
Add strategy type to result
This commit is contained in:
parent
297f3e0420
commit
32fa21fbf8
|
@ -9,6 +9,7 @@ import {
|
|||
PairCandlePayload,
|
||||
PairHistoryPayload,
|
||||
PlotConfig,
|
||||
StrategyResult,
|
||||
EMPTY_PLOTCONFIG,
|
||||
} from '@/types';
|
||||
|
||||
|
@ -98,8 +99,8 @@ export default {
|
|||
setDetailTrade(state, trade: Trade) {
|
||||
state.detailTradeId = trade ? trade.trade_id : null;
|
||||
},
|
||||
updateStrategyList(state, list) {
|
||||
state.strategyList = list;
|
||||
updateStrategyList(state, result: StrategyResult) {
|
||||
state.strategyList = result.strategies;
|
||||
},
|
||||
updatePairCandles(state, { pair, timeframe, data }) {
|
||||
state.candleData = { ...state.candleData, [`${pair}__${timeframe}`]: data };
|
||||
|
|
|
@ -140,6 +140,10 @@ export interface ClosedTrade extends Trade {
|
|||
open_order_id?: string;
|
||||
}
|
||||
|
||||
export interface StrategyResult {
|
||||
strategies: Array<string>;
|
||||
}
|
||||
|
||||
export interface PairCandlePayload {
|
||||
pair: string;
|
||||
timeframe: string;
|
||||
|
|
Loading…
Reference in New Issue
Block a user