mql5

How to read a JSON from a URL in MQL5?

*爱你&永不变心* 提交于 2019-12-05 07:40:22
问题 How can I read JSON from a url in MQL5 ? For example this simple JSON from: https://api.myjson.com/bins/56z28 { "employees": [ { "firstName": "John", "lastName": "Doe" }, { "firstName": "Anna", "lastName": "Smith" }, { "firstName": "Peter", "lastName": "Jones" } ] } 回答1: Simple, but restrictions apply. MetaTrader Terminal 5 is a code-execution environment, that can communicate with an external URL target (if explicitly configured as a permitted URL) via both HTTP/HTTPS protocols over port 80

How to read a JSON from a URL in MQL5?

依然范特西╮ 提交于 2019-12-03 21:54:12
How can I read JSON from a url in MQL5 ? For example this simple JSON from: https://api.myjson.com/bins/56z28 { "employees": [ { "firstName": "John", "lastName": "Doe" }, { "firstName": "Anna", "lastName": "Smith" }, { "firstName": "Peter", "lastName": "Jones" } ] } user3666197 Simple, but restrictions apply. MetaTrader Terminal 5 is a code-execution environment, that can communicate with an external URL target (if explicitly configured as a permitted URL) via both HTTP/HTTPS protocols over port 80/443 respectively. string aCookieHOLDER = NULL, aHttpHEADERs; char postBYTEs[], replBYTEs[]; int