dousi6303 2018-10-22 07:30
浏览 63
已采纳

MQL4 / 5如何使用PHP与代理建立连接(登录)

I am creating website in php that will store user account number, password and broker name (ip), that account will be connected automaticaly to MQL4/5 software in same moment user saves data in database.

Problem i have now is that user can save invalid data that will cause invalid connection to MQL4/5, and i want to check it to be sure all is valid before connection.

Is there any way to connect to broker with php or js, and check if credentials are correct (account number and password) before i store it into database ?

Thanks in advance.

  • 写回答

1条回答 默认 最新

  • dpwle46882 2018-10-22 18:05
    关注

    Yes, but it's not easy.

    You can only authenticate with a broker's Metatrader server using a Metatrader client terminal.

    That being said, you could launch a Metatrader web-terminal in a headless selenium instance, login using the supplied credentials, and check the authentication result from the resulting html.

    enter image description here

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?