Add some minor things to show_config
This commit is contained in:
parent
1b448f57b9
commit
e4023a6567
@ -94,6 +94,7 @@ class RPC:
|
|||||||
'dry_run': config['dry_run'],
|
'dry_run': config['dry_run'],
|
||||||
'stake_currency': config['stake_currency'],
|
'stake_currency': config['stake_currency'],
|
||||||
'stake_amount': config['stake_amount'],
|
'stake_amount': config['stake_amount'],
|
||||||
|
'max_open_trades': config['max_open_trades'],
|
||||||
'minimal_roi': config['minimal_roi'].copy(),
|
'minimal_roi': config['minimal_roi'].copy(),
|
||||||
'stoploss': config['stoploss'],
|
'stoploss': config['stoploss'],
|
||||||
'trailing_stop': config['trailing_stop'],
|
'trailing_stop': config['trailing_stop'],
|
||||||
@ -103,6 +104,7 @@ class RPC:
|
|||||||
'ticker_interval': config['ticker_interval'],
|
'ticker_interval': config['ticker_interval'],
|
||||||
'exchange': config['exchange']['name'],
|
'exchange': config['exchange']['name'],
|
||||||
'strategy': config['strategy'],
|
'strategy': config['strategy'],
|
||||||
|
'state': str(self._freqtrade.state)
|
||||||
}
|
}
|
||||||
return val
|
return val
|
||||||
|
|
||||||
|
@ -14,6 +14,9 @@ class State(Enum):
|
|||||||
STOPPED = 2
|
STOPPED = 2
|
||||||
RELOAD_CONF = 3
|
RELOAD_CONF = 3
|
||||||
|
|
||||||
|
def __str__(self):
|
||||||
|
return f"{self.name.lower()}"
|
||||||
|
|
||||||
|
|
||||||
class RunMode(Enum):
|
class RunMode(Enum):
|
||||||
"""
|
"""
|
||||||
|
@ -283,6 +283,7 @@ def test_api_show_config(botclient, mocker):
|
|||||||
assert 'dry_run' in rc.json
|
assert 'dry_run' in rc.json
|
||||||
assert rc.json['exchange'] == 'bittrex'
|
assert rc.json['exchange'] == 'bittrex'
|
||||||
assert rc.json['ticker_interval'] == '5m'
|
assert rc.json['ticker_interval'] == '5m'
|
||||||
|
assert rc.json['state'] == 'running'
|
||||||
assert not rc.json['trailing_stop']
|
assert not rc.json['trailing_stop']
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user