Using API myfxbook from MQL

Jun 08, 2015 at 15:00
2,513 개의 뷰
2 Replies
Jan 31, 2013 부터 멤버   게시물1
Jun 08, 2015 at 15:00
Hi!

Help please how correctly to make login from MQL to myfxbook through WebRequest.
// .........................
string headers;
char post [], result [];
StringToCharArray ('[email protected]&password=123456', post); // Must specify string length; otherwise array has terminating null character in it
int res = WebRequest ('POST', 'https://www.myfxbook.com/api/login.json', '', NULL, 10000, post, ArraySize (post), result, headers);
Print ('Status code:', res, ', error:', GetLastError ());
Print ('Server response:', CharArrayToString (result));
// ..............................

Result:
Status code: -1, error: 5203
Server response: send request failed [2148074278]

WebRequest to sites https://www.myfxbook.com and https://www.myfxbook.com/ in MT4 allowed
Thank you.
Aug 27, 2015 부터 멤버   게시물1
Aug 27, 2015 at 08:56
😕
Mar 14, 2014 부터 멤버   게시물1
Mar 18, 2016 at 07:10
int result = WebRequest('GET', 'https://www.myfxbook.com/api/login.json', NULL, NULL, Timeout, post, 0, result, resultHeaders);
로그인 / 가입하기 to comment
You must be connected to Myfxbook in order to leave a comment
*상업적 사용 및 스팸은 허용되지 않으며 계정이 해지될 수 있습니다.
팁: 이미지/유튜브 URL을 게시하면 게시물에 자동으로 삽입됩니다!
팁: @기호를 입력하여 이 토론에 참여하는 사용자 이름을 자동으로 완성합니다.