Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Poloniex api also taking us to the security check page

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.

Public api security check

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

  1. I would like to know if anyone else faced the same issue and the solution?
  2. Is it possible to pass the cache that i got from browser along with the api call?

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.

like image 643
santhosh kumar Avatar asked Aug 10 '17 09:08

santhosh kumar


1 Answers

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.

like image 157
A STEFANI Avatar answered Nov 06 '22 01:11

A STEFANI