Don't limit lookback to 500 candles

This commit is contained in:
Matthias 2022-01-29 20:17:15 +01:00
parent e37e901b8e
commit 66348322b4
3 changed files with 3 additions and 3 deletions

View File

@ -198,7 +198,7 @@ export default class CandleChartContainer extends Vue {
strategy: this.strategy, strategy: this.strategy,
}); });
} else { } else {
this.getPairCandles({ pair: this.pair, timeframe: this.timeframe, limit: 500 }); this.getPairCandles({ pair: this.pair, timeframe: this.timeframe });
} }
} }
} }

View File

@ -620,7 +620,7 @@ export function createBotSubStore(botId: string, botName: string) {
.catch(console.error); .catch(console.error);
}, },
[BotStoreActions.getPairCandles]({ commit }, payload: PairCandlePayload) { [BotStoreActions.getPairCandles]({ commit }, payload: PairCandlePayload) {
if (payload.pair && payload.timeframe && payload.limit) { if (payload.pair && payload.timeframe) {
return api return api
.get('/pair_candles', { .get('/pair_candles', {
params: { ...payload }, params: { ...payload },

View File

@ -170,7 +170,7 @@ export interface AvailablePairResult {
export interface PairCandlePayload { export interface PairCandlePayload {
pair: string; pair: string;
timeframe: string; timeframe: string;
limit: number; limit?: number;
} }
export interface PairHistoryPayload { export interface PairHistoryPayload {