creslin
0d6c105cb2
type on zerorpc
2018-06-08 18:45:38 +00:00
creslin
2d0a4c4de5
Update local_rpc_server.py
2018-06-08 18:43:32 +00:00
creslinux
efbeabf141
Added Local RPC client
...
- added only "Daily" call so far, submitting for early review/feedback
This depends on zerorpc as a requirement.
simple examples here:
http://www.zerorpc.io/
Installed with pip3 install zerorpc
localRCP is enabled/disabled from within config.json
e.g
"localrpc": {
"enabled": true
},
The server is enabled from within existing rpc manager
and makes use of the existing superclass (RPC)
Though making use of the existing hardwork done in rpc.py
It *should be easy to add the other Telegram calls into local_rpy_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 script
As example, from cmdline for last 3 days Daily
/Users/creslin/PycharmProjects/freqtrade_new/.env/bin/zerorpc tcp://127.0.0.1:4242 daily 3
connecting to "tcp://127.0.0.1:4242"
False
('[\n'
' [\n'
' "2018-06-08",\n'
' "0.00000000 BTC",\n'
' "0.000 USDT",\n'
' "0 trade"\n'
' ],\n'
' [\n'
' "2018-06-07",\n'
' "0.00000000 BTC",\n'
' "0.000 USDT",\n'
' "0 trade"\n'
' ],\n'
' [\n'
' "2018-06-06",\n'
' "0.00000000 BTC",\n'
' "0.000 USDT",\n'
' "0 trade"\n'
' ]\n'
']')
Programitcally this would be:
import zerorpc
c = zerorpc.Client()
c.connect("tcp://127.0.0.1:4242")
for item in c.daily(3):
print item
2018-06-08 18:35:01 +00:00
Matthias
d23bcc435a
Merge pull request #864 from freqtrade/feature/overhaul-db-handling
...
Allow custom sqlite database path
2018-06-07 22:18:10 +02:00
Michael Egger
45eb1b4f0a
Merge pull request #869 from freqtrade/feature/profit_rpc
...
fix /profit percentage calculation
2018-06-07 21:41:32 +02:00
gcarq
d41f71bc34
handle sqlalchemy NoSuchModuleError
2018-06-07 21:35:57 +02:00
xmatthias
f5fe9a4b1c
fix rpc tests (add a test with multiple trades
...
without this, sum/percentage cannot be properly tested.
2018-06-07 20:52:03 +02:00
xmatthias
0e699b87af
don't sum percentage, but use mean instead (aligned to backtesting)
2018-06-07 20:43:28 +02:00
gcarq
3f5efef6e5
tests: add proper asserts
2018-06-07 20:41:52 +02:00
gcarq
d4f8704a4c
arguments: implement tests for db_url
2018-06-07 20:30:13 +02:00
gcarq
526cb1ea20
fix db-url handling if passed via CLI args
2018-06-07 20:15:31 +02:00
gcarq
ac602ed5a9
persistence: adapt checks to detect in-memory db
2018-06-07 19:10:26 +02:00
Samuel Husso
ad510b8b5f
Merge pull request #855 from freqtrade/fix-look-ahead
...
Avoid look-ahead in backtesting
2018-06-07 20:00:46 +03:00
Samuel Husso
3436af3931
Merge pull request #868 from creslinux/patch-1
...
plotting.md update.
2018-06-07 19:32:12 +03:00
gcarq
01675f50bf
adapt scripts/plot_dataframe to use freqtrade db_url
2018-06-07 18:06:27 +02:00
gcarq
17742df591
Merge branch 'develop' of freqtrade into feature/overhaul-db-handling
2018-06-07 17:33:37 +02:00
gcarq
5b1ff6675f
define constants.DEFAULT_DB_DRYRUN_URL and fix StaticPool conditions
2018-06-07 17:29:43 +02:00
creslin
7bcac064c0
Update plotting.md
...
typo fixed.
2018-06-07 15:18:19 +00:00
Michael Egger
867145cd09
Merge pull request #859 from freqtrade/readd_ticker_caching
...
Re-add ticker caching for rpc operations
2018-06-07 17:15:59 +02:00
creslin
959a03a6b0
plotting.md update.
...
include an example or plotting a strategy buy/sell output.
2018-06-07 15:13:55 +00:00
Janne Sinivirta
b4ae5a36a8
use .copy() to avoid Pandas mistake. drop first row because of shifting
2018-06-07 17:29:40 +03:00
Janne Sinivirta
7f8e0ba25f
use buy/sell signal from previous candle, not current to avoid seeing to the future
2018-06-07 17:28:40 +03:00
Michael Egger
c75b70463b
Merge pull request #852 from freqtrade/timeframe_class
...
Refactor Timeframe fake-type into NamedTuple
2018-06-07 16:19:44 +02:00
Janne Sinivirta
f9788afbfb
Merge pull request #867 from freqtrade/pyup-scheduled-update-2018-06-07
...
Scheduled daily dependency update on thursday
2018-06-07 17:04:39 +03:00
pyup-bot
7b0a5644a3
Update pytest from 3.6.0 to 3.6.1
2018-06-07 14:22:10 +02:00
pyup-bot
34b5203760
Update numpy from 1.14.3 to 1.14.4
2018-06-07 14:22:08 +02:00
pyup-bot
a2fd70417c
Update ccxt from 1.14.121 to 1.14.155
2018-06-07 14:22:07 +02:00
gcarq
c3d0980763
test_persistence: fix reference before assignment
2018-06-07 06:06:21 +02:00
gcarq
4ee5271de7
fix failing dynamic-whitelist test
2018-06-07 05:50:07 +02:00
gcarq
f6ef466876
adapt docs
2018-06-07 05:47:14 +02:00
gcarq
00b646158c
update docs
2018-06-07 05:36:39 +02:00
gcarq
c8a43bad67
add db_url to full example config
2018-06-07 05:28:05 +02:00
gcarq
a29ac44d64
adapt tests
2018-06-07 05:27:55 +02:00
gcarq
e2aa78c11b
remove obsolete param
2018-06-07 05:27:27 +02:00
gcarq
58a6f21705
remove dry_run_db and replace it with db_url in config
2018-06-07 05:26:39 +02:00
gcarq
8583e89550
persistence: simplify init and pass db_url via config dict
2018-06-07 05:25:53 +02:00
Gérald LONLAS
e8ab754646
Merge pull request #863 from freqtrade/fix/pyup-pin-networkx
...
exclude networkx from pyup
2018-06-06 18:43:54 -07:00
Michael Egger
5c1ee52815
Merge pull request #861 from freqtrade/pyup-config
...
Config file for pyup.io
2018-06-07 01:19:21 +02:00
gcarq
02671a7e10
pin networkx with pyup ignore filter
2018-06-07 01:12:46 +02:00
pyup-bot
2ba5e2053a
create pyup.io config file
2018-06-07 00:55:09 +02:00
xmatthias
7714490530
Test keyerror exception
2018-06-06 21:24:57 +02:00
xmatthias
4a17671f45
improve log message
2018-06-06 20:30:42 +02:00
xmatthias
a901f21bcd
test ticker caching
2018-06-06 20:24:47 +02:00
xmatthias
e690003621
reinstate caching for get_ticker
2018-06-06 20:18:16 +02:00
Matthias
fb49d706d0
Merge pull request #851 from jblestang/update_doc_process_throttle
...
Update doc process throttle
2018-06-06 00:11:44 +02:00
xmatthias
cac6e0d715
Add docstring to TimeRange class
2018-06-06 00:10:18 +02:00
xmatthias
f37c5b70ba
Fix tests - read optional argument
2018-06-05 23:53:49 +02:00
xmatthias
270ccbb0da
fix args test
2018-06-05 23:41:50 +02:00
xmatthias
7a34578b4d
refactor timerange to named tuple
2018-06-05 23:34:26 +02:00
Janne Sinivirta
7d3eefa97a
Merge pull request #838 from freqtrade/fix/plot-scripts
...
Fix/Improve plot scripts
2018-06-05 15:32:04 +03:00