
- 2017.03.06
- www.mql5.com
Check if it's not the same problem
thank you, but it seems not to be the case.
I added header
string reqheaders="User-Agent: Mozilla/4.0\r\n"; [...] url = "https://api.binance.com/api/v3/account"; [...] res=WebRequest("POST",url,reqheaders,"",1000,url_char,ArraySize(url_char),result_char, result_headers);
but the result is still the same - 404 error, the same as you would get by entering incorrect address in browser like "https://api.binance.com/api/v3/account2"
I also noticed that all other addresses can't be found: (and few others)
url = "https://api.binance.com/api/v1/exchangeInfo"; url = "https://api.binance.com/api/v1/ping";
the only one that seems to be working is /order/
Order end point is Signed, so you should send your api key like this:
string headers = "X-MBX-APIKEY: " + apiKey ;
this change solves this error:
{"code":-2014,"msg":"API-key format invalid."}
thank you, but it seems not to be the case.
I added header
but the result is still the same - 404 error, the same as you would get by entering incorrect address in browser like "https://api.binance.com/api/v3/account2"
I also noticed that all other addresses can't be found: (and few others)
the only one that seems to be working is /order/
"https://api.binance.com/api/v1/ping
Avail. only for GET method

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hey. I am having some problems with WebRequest. I used this function numerous times in the past - never had any problem.
The problem I now face is related to accessing binance API. When you open those 2 urls simply in a browser:
https://api.binance.com/api/v3/account
https://api.binance.com/api/v3/order
you get (proper) error message:
but when i try to do it from the Webrequest "https://api.binance.com/api/v3/order" returns this message, but "https://api.binance.com/api/v3/account" returns 404.
Of course I added https://api.binance.com/api/v3 to allowed URLs.
I distilled the essence of the code, so one may just paste this as an expert advisor:
What am I missing? Why the same exact method returns 2 different results (while browsers return same results)?