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
342 stars 227 forks source link

`_DWX_MTX_SUBSCRIBE_MARKETDATA_` constantly print out bid/ask info. #70

Closed hayyyyyyden closed 4 years ago

hayyyyyyden commented 4 years ago

I'm following your tutorials (it's a great tutorial btw, thx!), everything's good, except one thing is that when I _DWX_MTX_SUBSCRIBE_MARKETDATA_ to a symbol, it constantly print out the price info from metatrader, instead of just storing it in the background like what you showed in the tutorial.

screenshot

This is happening when I set the Publish_MarketData to true in metatrader.

However, if I set the Publish_MarketData to false, I can not get any data in the python client.

How can I change this "print out" behavior? I just want to get the realtime data in the code, to be used in my trading strategy.

integracore2 commented 4 years ago

Hi @hayyyyyyden,

Thank you for your kind comments and feedback - much appreciated! 🙂

Yes, you can do this by setting _verbose=False when initializing the class object.