dingmaotu / mql-zmq

ZMQ binding for the MQL language (both 32bit MT4 and 64bit MT5)
Apache License 2.0
543 stars 298 forks source link

Publish to a certain topic #45

Closed tfmf closed 4 years ago

tfmf commented 4 years ago

Hi,

I'm trying to create different topics for different stuff, how can I implement that since the ZmqMsg only accepts a string.

Thanks

dingmaotu commented 4 years ago

You can refer to official ZMQ documentation as this library is just a binding to it.

ZMQ can handle this by using a certain prefix on the string (which can be arbitrary bytes).