Closed MetaMemoryT closed 8 years ago
Sorry for the delay, but I'm tied up on another project until Christmas.
The OTMql4Py is really just a bridge to Python - it's just glue. The trading API will be under OpenTrader, which is a command line program. In that sense, OpenTrader will be the API, as you write scripts in OpenTrader commands.
I think it would be nice to have a python style api just like TradePlatform.NET has a C# wrapper over trading functions:
https://tradeplatform.codeplex.com/SourceControl/latest#TradePlatform.MT4.SDK/TradePlatform.MT4.SDK.API/TradingFunctions.cs
This python api could be used both in embedded python and have an implementation that runs externally that uses zeromq to send the commands.
I know about do_order perhaps this api could just call do_order?: https://github.com/OpenTrading/OpenTrader/blob/6b9625ec2b672ba73f0b846913a3d52ae1f1b659/OpenTrader/OTCmd2.py#L789