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" ] ]
31 lines
594 B
Plaintext
31 lines
594 B
Plaintext
ccxt==1.14.155
|
|
SQLAlchemy==1.2.8
|
|
python-telegram-bot==10.1.0
|
|
arrow==0.12.1
|
|
cachetools==2.1.0
|
|
requests==2.18.4
|
|
urllib3==1.22
|
|
wrapt==1.10.11
|
|
pandas==0.23.0
|
|
scikit-learn==0.19.1
|
|
scipy==1.1.0
|
|
jsonschema==2.6.0
|
|
numpy==1.14.4
|
|
TA-Lib==0.4.17
|
|
pytest==3.6.1
|
|
pytest-mock==1.10.0
|
|
pytest-cov==2.5.1
|
|
hyperopt==0.1
|
|
# do not upgrade networkx before this is fixed https://github.com/hyperopt/hyperopt/issues/325
|
|
networkx==1.11 # pyup: ignore
|
|
tabulate==0.8.2
|
|
coinmarketcap==5.0.3
|
|
|
|
# Required for plotting data
|
|
#plotly==2.3.0
|
|
|
|
#Added for local rest client
|
|
Flask==1.0.2
|
|
flask-jsonpify==1.5.0
|
|
flask-restful==0.3.6
|