Closed eosfomogame closed 3 years ago
Yes, would like to add something to the same issue:
I tried to capture the stdout of the response function, it always returns the value to stdout correctly.
for eg.
_zmq._DWX_MTX_NEW_TRADE_(_order)
the about code works perfectly fine and it always returns the response almost real time.
However when tried to get order from template provided it's giving correct response alternatively. once none and once response is correct. the real issue here is to get the response from stdout and store it in the python variable. These zmq calls are non-blocking so most probably that's why I'm unable to capture stdout as well.
Tried to look into the mq4 code as well, it looks fine. I'm unable to figure out why this is happening. Probably need better understanding of how this whole thing connects and responds.
Can you please suggest any specific direction I should explore into?
@integracore2 @eosfomogame
update:
from DWX_ZMQ_Execution import DWX_ZMQ_Execution
dze = DWX_ZMQ_Execution(_zmq)
while True:
out = dze._execute_(order_dict, True, .5, 10)
print("out is : " + str(out))
sleep(2)
this code snippet worked after restarting the IDE. I'm not sure why. I'll be updating the progress and report consistency of output here.
Hi, To clean up the issues, we decided to close issues with general questions that have been inactive for a long while.
A piece of my python code:
Output:
print("break") is added by me in while loop before the real break here https://github.com/darwinex/dwx-zeromq-connector/blob/master/v2.0.1/python/examples/template/modules/DWX_ZMQ_Execution.py
Mt4 executes all the orders, but get_response works intermittently, once yes and once not. What could be the problem?