add feature multithreading for create trade with Dask distributed

This commit is contained in:
Axel-CH
2018-09-02 00:11:47 +02:00
parent 77935b833b
commit 15d33c1478
4 changed files with 84 additions and 16 deletions

View File

@@ -0,0 +1,11 @@
from freqtrade import (multithreading)
def test_client_init():
# Check if create a Dask Client
default_conf = {}
default_conf.update({
'multithreading': {'use_multithreading': True, 'workers_number': 4}
})
client = multithreading.init(default_conf)
assert (str(type(client))) == "<class 'distributed.client.Client'>"