I have been using this Java poloniex api project for few months but i am facing some issue from last month. I know this is nothing to do with this project but with Poloniex. And because of the issue i am not able to use this project.
The issue is with the Security Check. Earlier, poloniex didn't had this feature and when we hit a url it will directly take us to the respective page. But nowadays it's asking to complete the security check (some kind of image recognisation). Once completed it's returning some cache. For manual this is fine.
But the issue is, for api calls also, it's asking the same security check. For eg,public api , is taken us to this page instead of returning the values.
Also, i am getting the same response if i check with other's machine also and this is nothing to do with my poloniex account.
Below is the code that i have tried(need to setup the project from git TheCookieLab ):
public static void main(String[] args)
{
PoloniexPublicAPIClient bitcoin = new PoloniexPublicAPIClient();
System.out.println(bitcoin.returnTicker());
}
Have attached the response(security check page instead of data). resp.txt
This is applicable for all the api calls. Kindly refer here for more details about Poloniex API
I have been stuck here for more than a month. Your time and help are much appreciated.
It was probably temporary security rules to counter a DDOS attack.
You have confirmation in Why is Poloniex API blocked by CAPTCHA? Expected JSON, but response is HTML, @Mehul comment :
Captcha are also country dependent. If I use a USA proxy and access the API, it works as expected, but for example from India it returns a CATPCHA
It is due to the fact that you sent the request from India Ip range...
You may have to use a VPS or VPN outside India to solve your issue.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With