Skip to content

Commit 81b2103

Browse files
author
Emerson Pedroso
committed
fix not return data from queue
1 parent 58c9b34 commit 81b2103

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

ejtraderMT/api/mql.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -485,12 +485,12 @@ def history(self,symbol,chartTF=None,fromDate=None,toDate=None,database=None):
485485
if chartTF:
486486
if database:
487487
try:
488-
start(self.historyThread_save,repeat=1, max_threads=2000)
488+
start(self.historyThread_save,repeat=1, max_threads=20)
489489
except:
490490
print("Error: unable to start History thread")
491491
else:
492492
try:
493-
start(self.historyThread, max_threads=20)
493+
start(self.historyThread,repeat=1, max_threads=20)
494494
except:
495495
print("Error: unable to start History thread")
496496
return self._historyQ.get()
@@ -513,7 +513,7 @@ def history(self,symbol,chartTF=None,fromDate=None,toDate=None,database=None):
513513

514514

515515

516-
def historyThread(self):
516+
def historyThread(self,data):
517517
actives = self.symbol
518518
chartTF = self.chartTF
519519
fromDate = self.fromDate

requirements.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,7 @@ pyzmq==19.0.2
33
tzlocal==2.1
44
ejtraderTH==1.0.3
55
ejtraderDB==1.0.2
6-
tqdm==4.56.0
6+
tqdm==4.56.0
7+
8+
9+

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def requirements(filename):
1717

1818
setup(
1919
name='ejtraderMT',
20-
version='3.0.0',
20+
version='3.0.1',
2121
packages=find_packages(),
2222
url='https://ejtraderMT.readthedocs.io/',
2323
download_url='https://ejtrader.com',

0 commit comments

Comments
 (0)