Add stoploss on exchange to botstatus view

This commit is contained in:
Matthias 2023-02-08 07:08:09 +01:00
parent 6d8961ac11
commit 8fd1fa4b34
2 changed files with 11 additions and 3 deletions

View File

@ -14,8 +14,15 @@
on
<strong>{{ botStore.activeBot.botState.exchange }}</strong> in
<strong>{{ botStore.activeBot.botState.trading_mode || 'spot' }}</strong> markets, with
Strategy
<strong>{{ botStore.activeBot.botState.strategy }}</strong>
Strategy <strong>{{ botStore.activeBot.botState.strategy }}</strong
>.
</p>
<p v-if="'stoploss_on_exchange' in botStore.activeBot.botState">
Stoploss on exchange is
<strong>{{
botStore.activeBot.botState.stoploss_on_exchange ? 'enabled' : 'disabled'
}}</strong
>.
</p>
<p>
Currently <strong>{{ botStore.activeBot.botState.state }}</strong

View File

@ -144,7 +144,6 @@ export interface BotState {
stake_currency: string;
stake_currency_decimals?: number;
available_balance?: number;
stoploss: number;
strategy: string;
/** Timeframe in readable form (e.g. 5m) */
timeframe: string;
@ -155,6 +154,8 @@ export interface BotState {
/** Given name of the bot */
bot_name: string;
stoploss: number;
stoploss_on_exchange?: boolean;
trailing_only_offset_is_reached: boolean;
trailing_stop: boolean;
trailing_stop_positive: number;