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,
});
} 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);
},
[BotStoreActions.getPairCandles]({ commit }, payload: PairCandlePayload) {
if (payload.pair && payload.timeframe && payload.limit) {
if (payload.pair && payload.timeframe) {
return api
.get('/pair_candles', {
params: { ...payload },

View File

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