Merge pull request #2540 from freqtrade/rpc/fixes

Improve rest api client / status response
This commit is contained in:
hroff-1902
2019-11-20 22:18:51 +03:00
committed by GitHub
3 changed files with 58 additions and 46 deletions

View File

@@ -340,8 +340,11 @@ class ApiServer(RPC):
Returns the current status of the trades in json format
"""
results = self._rpc_trade_status()
return self.rest_dump(results)
try:
results = self._rpc_trade_status()
return self.rest_dump(results)
except RPCException:
return self.rest_dump([])
@require_login
@rpc_catch_errors