mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-23 03:25:15 +00:00
Fix daily payload
This commit is contained in:
parent
08f6ae7096
commit
7985a283fb
|
@ -1,5 +1,5 @@
|
|||
import { api } from '@/shared/apiService';
|
||||
import { BotState, BlacklistPayload, ForcebuyPayload, Logs } from '@/store/types';
|
||||
import { BotState, BlacklistPayload, ForcebuyPayload, Logs, DailyPayload } from '@/store/types';
|
||||
|
||||
export default {
|
||||
namespaced: true,
|
||||
|
@ -123,7 +123,7 @@ export default {
|
|||
.then((result) => commit('updateBalance', result.data))
|
||||
.catch(console.error);
|
||||
},
|
||||
getDaily({ commit }, payload = {}) {
|
||||
getDaily({ commit }, payload: DailyPayload) {
|
||||
const { timescale = 20 } = payload;
|
||||
return api
|
||||
.get('/daily', { params: { timescale } })
|
||||
|
|
|
@ -8,8 +8,8 @@ export interface BlacklistPayload {
|
|||
blacklist: Array<string>;
|
||||
}
|
||||
|
||||
export interface DailyInterface {
|
||||
timescale: number;
|
||||
export interface DailyPayload {
|
||||
timescale?: number;
|
||||
}
|
||||
|
||||
export interface ForcebuyPayload {
|
||||
|
|
Loading…
Reference in New Issue
Block a user