mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-23 11:35:14 +00:00
Add some types
This commit is contained in:
parent
4cd0a1344a
commit
a7117cae2e
|
@ -33,7 +33,7 @@ export default class BotList extends Vue {
|
||||||
|
|
||||||
@ftbot.Getter [MultiBotStoreGetters.selectedBot]: string;
|
@ftbot.Getter [MultiBotStoreGetters.selectedBot]: string;
|
||||||
|
|
||||||
@ftbot.Getter [MultiBotStoreGetters.allIsBotOnline];
|
@ftbot.Getter [MultiBotStoreGetters.allIsBotOnline]: Record<string, boolean>;
|
||||||
|
|
||||||
@ftbot.Getter [MultiBotStoreGetters.allAvailableBots]: BotDescriptors;
|
@ftbot.Getter [MultiBotStoreGetters.allAvailableBots]: BotDescriptors;
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { BotDescriptor, BotDescriptors, MultiClosedTrades } from '@/types';
|
import { BotDescriptor, BotDescriptors } from '@/types';
|
||||||
import { AxiosInstance } from 'axios';
|
import { AxiosInstance } from 'axios';
|
||||||
import { BotStoreActions, BotStoreGetters, createBotSubStore } from './ftbot';
|
import { BotStoreActions, BotStoreGetters, createBotSubStore } from './ftbot';
|
||||||
|
|
||||||
|
|
|
@ -79,7 +79,3 @@ export interface TradeResponse {
|
||||||
/** Total trade count */
|
/** Total trade count */
|
||||||
total_trades: number;
|
total_trades: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface MultiClosedTrades {
|
|
||||||
[key: string]: ClosedTrade;
|
|
||||||
}
|
|
||||||
|
|
|
@ -147,7 +147,7 @@ import {
|
||||||
ProfitInterface,
|
ProfitInterface,
|
||||||
DailyPayload,
|
DailyPayload,
|
||||||
BotState,
|
BotState,
|
||||||
MultiClosedTrades,
|
ClosedTrade,
|
||||||
} from '@/types';
|
} from '@/types';
|
||||||
import { BotStoreGetters } from '@/store/modules/ftbot';
|
import { BotStoreGetters } from '@/store/modules/ftbot';
|
||||||
import { MultiBotStoreGetters } from '@/store/modules/botStoreWrapper';
|
import { MultiBotStoreGetters } from '@/store/modules/botStoreWrapper';
|
||||||
|
@ -169,7 +169,7 @@ const layoutNs = namespace('layout');
|
||||||
export default class Dashboard extends Vue {
|
export default class Dashboard extends Vue {
|
||||||
@ftbot.Getter closedTrades!: Trade[];
|
@ftbot.Getter closedTrades!: Trade[];
|
||||||
|
|
||||||
@ftbot.Getter [MultiBotStoreGetters.allClosedTrades]!: MultiClosedTrades;
|
@ftbot.Getter [MultiBotStoreGetters.allClosedTrades]!: Record<string, ClosedTrade>;
|
||||||
|
|
||||||
@ftbot.Getter [BotStoreGetters.dailyStats]!: DailyReturnValue;
|
@ftbot.Getter [BotStoreGetters.dailyStats]!: DailyReturnValue;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user