mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-26 21:15:15 +00:00
Don't limit lookback to 500 candles
This commit is contained in:
parent
e37e901b8e
commit
66348322b4
|
@ -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 });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 },
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user