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

Account Info #137

Closed arashag closed 2 years ago

arashag commented 2 years ago

Hi.

I need to extract account info including balance, equity, etc which are crucial in money management in trading. Could you please add these functions to the ZMQ connector?

Thanks.

teddywaweru commented 2 years ago

Hi Arash. I have a pull request in place concerning this. I've also received your personal email concerning saving the output to a dict, but I wanted to get the basic functionality in place first, then proceed to altering the data handling functions. For now you could access the results from the _thread_data_output object, immediately after caalling the account info request.

arashag commented 2 years ago

Thanks.

elvinex commented 2 years ago

Thank you for adding a function to get account data! We merged the pull request.

teddywaweru commented 2 years ago

@elvinex thanks for that. I think the implementation can be improved by utilizing proper variable tags on the EA, but I had paused on contributing, since it had been stated that the repository won't be supported anymore. If Darwinex has rolled back on this decision, I can dive back in.

elvinex commented 2 years ago

Thanks for the offer. I don't think Darwinex has rolled back on this decision. I will probably continue to review issues and pull requests from time to time, but I have very little time available for this project.