Commit Graph

1214 Commits

Author SHA1 Message Date
creslin
2c492341c2
Merge c227bb3139 into a0c9a9585d 2018-06-23 14:05:23 +00:00
creslinux
c227bb3139 Moved routes that do not need access to rpc.rpc self into their own
common file.

This is to reduce file size and separate api server routes with
privilege to access rpc.rpc defs and those that do not need access,
so should not.
2018-06-23 14:04:15 +00:00
creslinux
3fb680b3b4 removed change to cleanup() in api_server.py 2018-06-23 12:38:04 +00:00
creslinux
eedcb64962 Added api server shutdown function, and exposed on HTTP as /stop_api url
This will stop the running app gracefully - processing current api calls
then shutting the werkzueg (run) listening server.

Have also called this from the cleanup placeholder.
I'm not sure this is what is intended by cleanup def.
By which I mean there may be a thread left running with no app within -
not sure how to check this just yet.

tidied excessive logging.
2018-06-23 12:17:00 +00:00
creslinux
839d513bb8 Added api server shutdown function, and exposed on HTTP as /stop_api url
This will stop the running app gracefully - processing current api calls
then shutting the werkzueg (run) listening server.

Have also called this from the cleanup placeholder.
I'm not sure this is what is intended by cleanup def.
By which I mean there may be a thread left running with no app within -
not sure how to check this just yet.

tidied excessive logging.
2018-06-23 11:53:09 +00:00
gcarq
a0c9a9585d apiserver: implement tests for start() and stop() 2018-06-23 12:52:29 +02:00
gcarq
d0b729e78e implement name property in abstract class 2018-06-23 12:28:32 +02:00
gcarq
0f6c41389c rename ApiServerSuperWrap into ApiServer 2018-06-23 12:14:38 +02:00
creslinux
c72397936e Updated def comments to be __docstring__ compatible 2018-06-23 09:48:51 +00:00
creslinux
6c3ea7c5f9 flake 8 fix 2018-06-23 09:22:25 +00:00
creslinux
5cda78bf32 moved default page "/" index into self_register_other()
out of the block of URLs that call rpc.rcp functionality.
2018-06-23 09:19:34 +00:00
creslinux
d0d128d203 Moved registering application urls out of the run def
and into their own

Added 404 handling

Split registration of URLs that use rpc.rpc and others into
own def. Seems logical to be able to register separately for later use.
2018-06-23 09:08:39 +00:00
gcarq
418359ac9a Merge branch 'develop' of https://github.com/freqtrade/freqtrade into feature/flask-rest 2018-06-23 09:34:32 +02:00
gcarq
72b89e694a telegram: remove duplicate test for /status 2018-06-23 09:29:45 +02:00
gcarq
77d53b0b7c remove _rpc_status_table and reuse _rpc_status instead 2018-06-23 09:28:13 +02:00
gcarq
4aab55d27b api_server: fix flake8 warnings and implement missing methods 2018-06-23 09:27:28 +02:00
Janne Sinivirta
9a07d57ed7 fix flake8 2018-06-23 07:58:25 +03:00
Janne Sinivirta
f7e5d2c3a5 check that we set fee on backtesting init 2018-06-22 21:55:09 +03:00
Janne Sinivirta
c73b9f5c77 avoid calling exchange.get_fee inside loop 2018-06-22 21:04:07 +03:00
Janne Sinivirta
5fcdd3831c
Merge pull request #928 from freqtrade/feat/objectify_exchange
Objectify exchange
2018-06-22 06:36:14 +03:00
gcarq
a2426c3854 refactor _rpc_balance 2018-06-22 04:08:51 +02:00
gcarq
8d54a20122 return dict from _rpc_status and handle rendering in module impl 2018-06-22 03:54:10 +02:00
gcarq
ec4e6272d0 remove markdown formatting from exception string 2018-06-22 03:37:19 +02:00
gcarq
ada87ba3a0 convert start, stop and reload_conf to return a dict 2018-06-22 03:32:45 +02:00
gcarq
556d507317 move endpoint definitions to class scope 2018-06-22 02:56:10 +02:00
gcarq
8ecfbc2a35 make rpc modules optional 2018-06-22 02:55:49 +02:00
gcarq
814894da7b fix flake8 warnings 2018-06-22 02:55:27 +02:00
gcarq
089f633c06 Merge branch 'flask_rest' of https://github.com/creslinux/freqtrade into feature/flask-rest 2018-06-22 02:43:10 +02:00
xmatthias
7f927b4d7a Squashed commit of the following:
commit 435f299bcf
Author: Gert Wohlgemuth <berlinguyinca@gmail.com>
Date:   Wed Jun 20 01:57:28 2018 -0700

    improve readability of outdated history code
2018-06-21 20:47:53 +02:00
xmatthias
f7b46d5404 update docstring 2018-06-18 22:34:28 +02:00
xmatthias
896afe7118 convert get_name and get_id to properties 2018-06-18 22:20:50 +02:00
xmatthias
ef53134499 lowercase variables 2018-06-18 22:09:46 +02:00
xmatthias
c31519fdb2 lowercase _api object 2018-06-18 22:07:15 +02:00
xmatthias
162f948729 add test for non-configured exchange 2018-06-18 19:56:23 +02:00
xmatthias
ae4c4e77bf standardize exception tests - add one more 2018-06-18 19:46:42 +02:00
xmatthias
695beecf14 add test for get_markets 2018-06-18 19:36:36 +02:00
xmatthias
520c7feeab Add test for fetch_tickers 2018-06-17 23:38:07 +02:00
xmatthias
1e3d722bc2 add test for get_trades 2018-06-17 23:38:07 +02:00
xmatthias
c9f8dfc6c5 increase get_fee coverage 2018-06-17 23:38:07 +02:00
xmatthias
d156de39f1 Increase test-coverage 2018-06-17 23:38:07 +02:00
xmatthias
2b099a89e4 fix styling issues 2018-06-17 23:38:07 +02:00
xmatthias
6e6ec969eb cleanup mockings 2018-06-17 23:38:07 +02:00
xmatthias
e194af8d25 Streamline validate_pair patching 2018-06-17 23:38:07 +02:00
xmatthias
ace5198475 fix optimize tests 2018-06-17 23:38:07 +02:00
xmatthias
52d36c33cf fix optimie test 2018-06-17 23:38:07 +02:00
xmatthias
251f7db3ca require exchange object to delete pairs 2018-06-17 23:38:07 +02:00
xmatthias
c83e8b7cb5 fix rpc_test 2018-06-17 23:38:07 +02:00
xmatthias
64e09f74a1 fix rpc tests 2018-06-17 23:38:07 +02:00
xmatthias
63b568989a Fix rpc for exchange objectify 2018-06-17 23:38:07 +02:00
xmatthias
975b42caa3 fix tests for exchange objectify 2018-06-17 23:38:07 +02:00