Add 404 when strategy is not found

This commit is contained in:
Matthias
2020-09-17 07:53:22 +02:00
parent becccca3d1
commit b38f68b3b0
4 changed files with 36 additions and 1 deletions

View File

@@ -231,6 +231,14 @@ class FtRestClient():
"""
return self._get("strategies")
def strategy(self, strategy):
"""Get strategy details
:param strategy: Strategy class name
:return: json object
"""
return self._get(f"strategy/{strategy}")
def plot_config(self):
"""Return plot configuration if the strategy defines one.