mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-14 04:03:51 +00:00
Add botState type
This commit is contained in:
parent
61d6f54577
commit
6de14c33f5
|
@ -1,4 +1,5 @@
|
||||||
import { api } from '../../shared/apiService';
|
import { api } from '../../shared/apiService';
|
||||||
|
import { BotState } from '../types';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
namespaced: true,
|
namespaced: true,
|
||||||
|
@ -56,7 +57,7 @@ export default {
|
||||||
updateBalance(state, balance) {
|
updateBalance(state, balance) {
|
||||||
state.balance = balance;
|
state.balance = balance;
|
||||||
},
|
},
|
||||||
updateState(state, botState) {
|
updateState(state, botState: BotState) {
|
||||||
state.botState = botState;
|
state.botState = botState;
|
||||||
},
|
},
|
||||||
updateVersion(state, version) {
|
updateVersion(state, version) {
|
||||||
|
|
|
@ -2,6 +2,30 @@ export interface DailyInterface {
|
||||||
timescale: number;
|
timescale: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface BotState {
|
||||||
|
bid_strategy: object;
|
||||||
|
ask_strategy: object;
|
||||||
|
dry_run: boolean;
|
||||||
|
exchange: string;
|
||||||
|
forcebuy_enabled: boolean;
|
||||||
|
max_open_trades: number;
|
||||||
|
minimal_roi: object;
|
||||||
|
stake_amount: number;
|
||||||
|
stake_currency: string;
|
||||||
|
state: string;
|
||||||
|
stoploss: number;
|
||||||
|
strategy: string;
|
||||||
|
/** Timeframe in readable form (e.g. 5m) */
|
||||||
|
timeframe: string;
|
||||||
|
/** Timeframe in Milliseconds */
|
||||||
|
timeframe_ms: number;
|
||||||
|
|
||||||
|
trailing_only_offset_is_reached: boolean;
|
||||||
|
trailing_stop: boolean;
|
||||||
|
trailing_stop_positive: number;
|
||||||
|
trailing_stop_positive_offset: number;
|
||||||
|
}
|
||||||
|
|
||||||
export interface Trade {
|
export interface Trade {
|
||||||
trade_id: number;
|
trade_id: number;
|
||||||
pair: string;
|
pair: string;
|
||||||
|
@ -9,10 +33,16 @@ export interface Trade {
|
||||||
amount: number;
|
amount: number;
|
||||||
timeframe: string;
|
timeframe: string;
|
||||||
open_rate: number;
|
open_rate: number;
|
||||||
|
/** Open date in the format Y-M-d HH:mm:ss */
|
||||||
|
open_date: string;
|
||||||
|
open_timestamp: number;
|
||||||
fee_open: number;
|
fee_open: number;
|
||||||
fee_open_cost?: number;
|
fee_open_cost?: number;
|
||||||
fee_open_currency?: string;
|
fee_open_currency?: string;
|
||||||
|
|
||||||
|
/** Close date in the format Y-M-d HH:mm:ss */
|
||||||
|
close_date?: string;
|
||||||
|
close_timestamp?: number;
|
||||||
close_rate?: number;
|
close_rate?: number;
|
||||||
close_profit?: number;
|
close_profit?: number;
|
||||||
fee_close?: number;
|
fee_close?: number;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user