Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/07/23 20:06
zorro license, IB connection
by miwok. 12/07/23 16:13
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
2 registered members (AndrewAMD, TipmyPip), 620 guests, and 9 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19020 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
ZeroMQ #477347
06/18/19 05:41
06/18/19 05:41
Joined: May 2015
Posts: 390
Czech Republic
G
Grat Offline OP
Senior Member
Grat  Offline OP
Senior Member
G

Joined: May 2015
Posts: 390
Czech Republic
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 Files
libzmq.zip (124 downloads)
zorroZmq.h (190 downloads)
zmq_client.c (210 downloads)
Screenshot_96.png
Last edited by Grat; 06/18/19 05:44.
Re: ZeroMQ [Re: Grat] #478107
09/08/19 08:36
09/08/19 08:36
Joined: Nov 2015
Posts: 8
R
ricky_k Offline
Newbie
ricky_k  Offline
Newbie
R

Joined: Nov 2015
Posts: 8
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

Re: ZeroMQ [Re: Grat] #478452
10/23/19 20:04
10/23/19 20:04
Joined: Aug 2019
Posts: 22
F
felixfx Offline
Newbie
felixfx  Offline
Newbie
F

Joined: Aug 2019
Posts: 22
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.

Re: ZeroMQ [Re: Grat] #481855
11/09/20 11:16
11/09/20 11:16
Joined: Mar 2019
Posts: 357
D
danatrader Offline
Senior Member
danatrader  Offline
Senior Member
D

Joined: Mar 2019
Posts: 357
I tried, I receive "Can't open libzmq.dll" and "Error 019: Empty function called!"

Re: ZeroMQ [Re: Grat] #487796
09/24/23 16:17
09/24/23 16:17
Joined: Feb 2022
Posts: 2
Stockholm Sweden
S
soulman3 Offline
Guest
soulman3  Offline
Guest
S

Joined: Feb 2022
Posts: 2
Stockholm Sweden
Do you mind sharing the source for the libzmq.dll? I also got the error that danatrader did... If we get this working it would be a great way to interface to python instead of the using files.


Moderated by  Petra 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1