From b073a44f32238e7b4af92c2dcf323843be072997 Mon Sep 17 00:00:00 2001 From: Paulo Silveira Date: Tue, 6 Feb 2024 17:47:55 -0300 Subject: [PATCH] =?UTF-8?q?Adicionado=20configura=C3=A7=C3=A3o=20de=20port?= =?UTF-8?q?a=20do=20zmq?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ejtraderMT/api/mql.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ejtraderMT/api/mql.py b/ejtraderMT/api/mql.py index 67679ed..b2e5a4c 100755 --- a/ejtraderMT/api/mql.py +++ b/ejtraderMT/api/mql.py @@ -32,9 +32,9 @@ class Functions: - def __init__(self, host=None, debug=None): + def __init__(self, host=None, debug=None, port=15557): self.HOST = host or "localhost" - self.SYS_PORT = 15557 # REP/REQ port + self.SYS_PORT = port # REP/REQ port # ZeroMQ timeout in seconds sys_timeout = 1000 @@ -126,11 +126,12 @@ def __init__( dbuser=None, dbname=None, debug=False, + port=15557 ): if debug: logging.basicConfig(**LOGGER) - self.__api = Functions(host, debug=debug) + self.__api = Functions(host, debug=debug, port=port) self.real_volume = real_volume or False self.__tz_local = tz_local self.__utc_timezone = timezone("UTC")