darwinex / dwx-zeromq-connector

Wrapper library for algorithmic trading in Python 3, providing DMA/STP access to Darwinex liquidity via a ZeroMQ-enabled MetaTrader Bridge EA.
https://blog.darwinex.com/zeromq-interface-python-r-metatrader4/
BSD 3-Clause "New" or "Revised" License
341 stars 227 forks source link

_zmq._DWX_MTX_SEND_HIST_REQUEST_ returns None #106

Closed 1essthantwo closed 3 years ago

1essthantwo commented 3 years ago

Hi! I'm trying to get the Historical Data to use in a MA calculation but I cannot iterate through or get any type of operation on the function, I tried to use https://github.com/darwinex/dwx-zeromq-connector/issues/67 solution, but I didn't figure it out. I tried to use the self._zmq._getresponse() with sleep() but no change at all.

I have a print on this issue.

Screenshot from 2020-12-11 23-17-54 Screenshot from 2020-12-11 23-18-03

Thank you very much in advance! I'm new to Algo trading and Python Programming, I have a course of both matters and working every day into the code, so I'm getting the grip of it, thank you y'all! Be safe! :)

elvinex commented 3 years ago

Hi, the function _DWX_MTX_SEND_HIST_REQUEST_() only sends the request. It does not return anything (None). You could print/parse _get_response_() for the response from MT4.