Add /strategies endpoint

This commit is contained in:
Matthias
2020-07-31 07:31:20 +02:00
parent f227f6a755
commit 18bbfdd341
2 changed files with 26 additions and 2 deletions

View File

@@ -867,3 +867,12 @@ def test_api_plot_config(botclient):
assert_response(rc)
assert rc.json == ftbot.strategy.plot_config
assert isinstance(rc.json['main_plot'], dict)
def test_api_strategies(botclient):
ftbot, client = botclient
rc = client_get(client, f"{BASE_URI}/strategies")
assert_response(rc)
assert rc.json == ['DefaultStrategy', 'TestStrategyLegacy']