Commit Graph

2070 Commits

Author SHA1 Message Date
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
Michael Egger 6389869fda Merge pull request #943 from creslinux/feature/flask-rest
Moved registering application urls out of the run def
2018-06-23 11:54:15 +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
Michael Egger 168ed91fe1 Merge pull request #941 from freqtrade/avoid-fee-calls-backtesting
avoid calling exchange.get_fee inside loop
2018-06-23 08:17:25 +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
Samuel Husso c413e94f83 Merge pull request #940 from freqtrade/pyup-scheduled-update-2018-06-22
Scheduled daily dependency update on friday
2018-06-22 16:14:20 +03:00
pyup-bot 98cd8970f9 Update ccxt from 1.14.242 to 1.14.253 2018-06-22 14:24:06 +02: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
Matthias 99e3c6e526 Merge pull request #936 from freqtrade/pyup-scheduled-update-2018-06-21
Scheduled daily dependency update on thursday
2018-06-21 15:20:22 +02:00
pyup-bot c7976f51e2 Update ccxt from 1.14.230 to 1.14.242 2018-06-21 14:24:06 +02:00
Michael Egger 2c43590268 Merge pull request #933 from freqtrade/pyup-scheduled-update-2018-06-20
Scheduled daily dependency update on wednesday
2018-06-20 14:36:44 +02:00
pyup-bot 36cfea3d0f Update pytest from 3.6.1 to 3.6.2 2018-06-20 14:23:08 +02:00
pyup-bot a493a2ceef Update ccxt from 1.14.224 to 1.14.230 2018-06-20 14:23:06 +02:00
Michael Egger 96b7273b8f Merge pull request #931 from freqtrade/pyup-scheduled-update-2018-06-19
Scheduled daily dependency update on tuesday
2018-06-19 16:27:30 +02:00
pyup-bot e66b861c9e Update ccxt from 1.14.211 to 1.14.224 2018-06-19 14:23:05 +02:00
Michael Egger e0db31e9db Merge pull request #929 from freqtrade/backtest_docker
Update Documentation to include backtesting with docker
2018-06-18 22:54:18 +02:00
xmatthias a7be15d72f Update Documentation to include backtesting with docker 2018-06-18 22:42:14 +02:00
xmatthias f7b46d5404 update docstring 2018-06-18 22:34:28 +02:00
xmatthias 488f1717a1 update plot_dataframe script to objectify exchange 2018-06-18 22:32:29 +02:00
xmatthias 2b0ef54595 update download_script for exchange objectify 2018-06-18 22:28:51 +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
Samuel Husso cb015dec7b Merge pull request #927 from freqtrade/pyup-scheduled-update-2018-06-18
Scheduled daily dependency update on monday
2018-06-18 15:47:43 +03:00
pyup-bot 9bc8331667 Update ccxt from 1.14.202 to 1.14.211 2018-06-18 14:23:05 +02:00
xmatthias 520c7feeab Add test for fetch_tickers 2018-06-17 23:38:07 +02:00