Update history type

This commit is contained in:
Matthias 2020-07-11 17:10:37 +02:00
parent 135daaf119
commit b9bfab7722
2 changed files with 4 additions and 2 deletions

View File

@ -162,7 +162,7 @@ export default {
});
},
getPairHistory({ commit }, payload: PairHistoryPayload) {
if (payload.pair && payload.timeframe && payload.limit && payload.timerange) {
if (payload.pair && payload.timeframe && payload.timerange) {
return api
.get('/pair_history', {
params: { ...payload },

View File

@ -144,7 +144,9 @@ export interface PairCandlePayload {
limit: number;
}
export interface PairHistoryPayload extends PairCandlePayload {
export interface PairHistoryPayload {
pair: string;
timeframe: string;
timerange: string;
}