stable/freqtrade
creslinux dcbdbecae0 Implemented local restful flask service and provided cmdline client
Added only the "Daily" call so far, submitting for early review/feedback

Called as example "./rest_client.py daily 3"

This depends on listed as requirements.
Flask==1.0.2
flask-jsonpify==1.5.0 (will do later)
flask-restful==0.3.6
TODO: make loading optional, cleanly unload on close
      unit tests, take feedback, tidy output,
      add other Telegram functions, onwards

local rest server is enabled/disabled from within config.json. E.g

     "localrest": {
        "enabled": true
    },

The server is enabled from within existing rpc manager
and makes use of the existing superclass (RPC)

Through making use of the existing hard work done in rpc.py
It *should be easy to add the other Telegram calls into local_rpc_server.py

The server is wrapped in a thread to be non-blocking
The server and client accept serialised calls or not, used in daily to return json
The client can be used from command line or in a python client script

As example, from cmdline for last 3 days Daily

DannyMBP:rpc creslin$ ./rest_client.py daily 3
[
    [
        "2018-06-13",
        "0.00000000 USDT",
        "0.000 USD",
        "0 trade"
    ],
    [
        "2018-06-12",
        "0.00000000 USDT",
        "0.000 USD",
        "0 trade"
    ],
    [
        "2018-06-11",
        "0.00000000 USDT",
        "0.000 USD",
        "0 trade"
    ]
]
2018-06-25 14:03:14 +00:00
..
exchange update docstring 2018-06-18 22:34:28 +02:00
optimize Merge with develop 2018-06-23 16:50:27 +03:00
rpc Implemented local restful flask service and provided cmdline client 2018-06-25 14:03:14 +00:00
strategy resolver: don't fail if user_data can't be found 2018-06-23 14:42:22 +02:00
tests Merge pull request #950 from freqtrade/fix-filenotfounderror 2018-06-23 16:07:52 +02:00
vendor drop zlma implementation 2018-06-13 16:20:13 +02:00
__init__.py handle sqlalchemy NoSuchModuleError 2018-06-07 21:35:57 +02:00
__main__.py Add __main__.py to improve how to launch the bot 2018-06-03 08:57:13 -07:00
analyze.py Merge with develop 2018-06-23 16:50:27 +03:00
arguments.py Merge branch 'develop' into feature-unlimited-stake_amount 2018-06-17 02:23:40 +03:00
configuration.py remove all mongodb related code 2018-06-16 09:09:28 +03:00
constants.py Merge with develop 2018-06-23 16:50:27 +03:00
fiat_convert.py Fiat_converter: fstrings into use 2018-06-09 08:27:39 +03:00
freqtradebot.py Merge with develop 2018-06-23 16:50:27 +03:00
indicator_helpers.py fix typing 2018-05-30 22:09:20 +02:00
main.py implement bot reconfiguration and expose it to telegram 2018-06-09 04:29:48 +02:00
misc.py type anotation fixes 2018-05-30 22:38:09 +02:00
persistence.py persistence: remove obsolete global _CONF variable 2018-06-23 13:50:22 +02:00
state.py implement bot reconfiguration and expose it to telegram 2018-06-09 04:29:48 +02:00