diff --git a/docs/rest-api.md b/docs/rest-api.md index 075bd7e64..fc628ac71 100644 --- a/docs/rest-api.md +++ b/docs/rest-api.md @@ -104,7 +104,7 @@ By default, the script assumes `127.0.0.1` (localhost) and port `8080` to be use python3 scripts/rest_client.py --config rest_config.json [optional parameters] ``` -## Available commands +## Available endpoints | Command | Description | |----------|-------------| @@ -129,6 +129,11 @@ python3 scripts/rest_client.py --config rest_config.json [optional par | `whitelist` | Show the current whitelist | `blacklist [pair]` | Show the current blacklist, or adds a pair to the blacklist. | `edge` | Show validated pairs by Edge if it is enabled. +| `pair_candles` | Returns dataframe for a pair / timeframe combination while the bot is running. +| `pair_history` | Returns an analyzed dataframe for a given timerange, analyzed by a given strategy. +| `plot_config` | Get plot config from the strategy (or nothing if not configured). +| `strategies` | List strategies in strategy directory. +| `available_pairs` | List available backtest data. | `version` | Show version Possible commands can be listed from the rest-client script using the `help` command. diff --git a/freqtrade/rpc/api_server.py b/freqtrade/rpc/api_server.py index e2189b8e9..4d1c5731c 100644 --- a/freqtrade/rpc/api_server.py +++ b/freqtrade/rpc/api_server.py @@ -214,6 +214,7 @@ class ApiServer(RPC): view_func=self._trades, methods=['GET']) self.app.add_url_rule(f'{BASE_URI}/trades/', 'trades_delete', view_func=self._trades_delete, methods=['DELETE']) + self.app.add_url_rule(f'{BASE_URI}/pair_candles', 'pair_candles', view_func=self._analysed_candles, methods=['GET']) self.app.add_url_rule(f'{BASE_URI}/pair_history', 'pair_history', @@ -518,7 +519,7 @@ class ApiServer(RPC): @rpc_catch_errors def _analysed_candles(self): """ - Handler for /pair_history. + Handler for /pair_candles. Returns the dataframe the bot is using during live/dry operations. Takes the following get arguments: get: