명시
Hi,
I need an EA for both MT4 and MT5 that pushes JSON data to an API. It needs to push all trade history data, plus the opened trades. It needs to push all account data (including leverage, account type etc), and for trades, it needs to push all the relevant information (open/close time and price, direction, tp/sl levels if set, swap, commission, magic, comment, ticket, etc.)
It will send data on the follwing circumstances:
- on initiation (check if the account existis on the server, if not, all history is sent, otherwise, is sending only the latest ones that don't exist on the server)
- on trade open/close
- on a timer, so it updates the opened trades and the account equity
The EA will have two fields, username and token, for API authentication.
Additionally, I need a Python script that uses the local MT4/MT5 terminal, to loop through a list of accounts, login and get exactly the same information that EA would take and send as JSON to the API server.