small cleanup

This commit is contained in:
Matthias 2019-04-26 10:12:39 +02:00
parent cb271f51d1
commit bc4342b2d0
2 changed files with 4 additions and 5 deletions

View File

@ -101,7 +101,6 @@ class ApiServer(RPC):
Label can be used as a shortcut when refactoring
:return:
"""
# TODO: actions should not be GET...
# Actions to control the bot
app.add_url_rule('/start', 'start', view_func=self._start, methods=['POST'])
app.add_url_rule('/stop', 'stop', view_func=self._stop, methods=['POST'])
@ -141,8 +140,8 @@ class ApiServer(RPC):
logger.info('Starting HTTP Server at {}:{}'.format(rest_ip, rest_port))
if not IPv4Address(rest_ip).is_loopback:
logger.info("SECURITY WARNING - Local Rest Server listening to external connections")
logger.info("SECURITY WARNING - This is insecure please set to your loopback,"
logger.warning("SECURITY WARNING - Local Rest Server listening to external connections")
logger.warning("SECURITY WARNING - This is insecure please set to your loopback,"
"e.g 127.0.0.1 in config.json")
# Run the Server

View File

@ -95,7 +95,7 @@ class FtRestClient():
def balance(self):
"""
get the account balance
Get the account balance
:returns: json object
"""
return self._get("balance")