ZeroMQ

Posted By: Grat

ZeroMQ - 06/18/19 05:41

Hi,

I create interface for ZeroMQ. Status is early alpha

install:
a) download libzmq.dll and put in zorro folder
b) install zorroZmq.h into include
c) zmq_client.c into Strategy

[Linked Image]

test server in python:
Code
import time
import zmq

context = zmq.Context()
socket = context.socket(zmq.REP)
socket.bind("tcp://*:5555")

while True:
    #  Wait for next request from client
    message = socket.recv()
    print("Received request: %s" % message)

    #  Do some 'work'
    time.sleep(1)

    #  Send reply back to client
    socket.send(b"World")


Attached File
libzmq.zip  (24 downloads)
Attached File
zorroZmq.h  (48 downloads)
Attached File
zmq_client.c  (48 downloads)
Attached File
Screenshot_96.png  (1909 downloads)
Posted By: ricky_k

Re: ZeroMQ - 09/08/19 08:36

Grat,

Nice work with the ZMQ interface.

Wondering what kinds of applications you'd use this for (or already have) besides a custom trading API?

ricky
Posted By: felixfx

Re: ZeroMQ - 10/23/19 20:04

wow, that's great. If you don't mind my asking, what is your reasoning for using ZMQ via Zorro?
I'm just getting into Zorro and Lite-C so I'm wondering if you've hit some upper limits of its capabilities.

Don't get me wrong, I think its great you can connect Jupyter Notebook with Zorro now.

If you didn't know, there is also a ZMQ EA created for MT4 that will bind MT4 and Python:
Don't get me wrong, I think its great there is an option via Zorro now.
© 2020 lite-C Forums