Giter Site home page Giter Site logo

Comments (12)

s4w3d0ff avatar s4w3d0ff commented on June 12, 2024

It seems that poloniex is returning captcha instead of json. In the past this has been because of the location/region of the IP address being used. The latest release of this repo has a new "proxies" argument for the poloniex.Poloniex object:

from poloniex import Poloniex
Poloniex(proxies={'http': 'socks5://127.0.0.1:1080', 
                  'https': 'socks5://127.0.0.1:1080'}).returnTicker()

You could try using a vpn or contact poloniex support and see if they can remove the captcha from your IP.

from python-poloniex.

phyzixmusic avatar phyzixmusic commented on June 12, 2024

my console says that proxies is an unexpected argument :(

from python-poloniex.

mm-git01 avatar mm-git01 commented on June 12, 2024

MIne too @phyzixmusic

from python-poloniex.

 avatar commented on June 12, 2024

Hi,

I have the same problem like @Pankul94 discribed. But just since 18th March 2018 5:55 am UTC.

This works fine:

import urllib2
import json
ret = urllib2.urlopen(urllib2.Request('https://poloniex.com/public?command=returnTicker'))

The one below fails and gives me the following response as a html in the poloniex webpage design:

Connection Error. Please try again in a few minutes

from poloniex import Poloniex
Poloniex().returnTicker()

So I wonder why. I will have a look at the difference in communication and try to understand why this only fails now and did not before. Happy about any input if someone knows more.

from python-poloniex.

mm-git01 avatar mm-git01 commented on June 12, 2024

@dstaeger maybe they say that you were requesting too much and got a captcha for your ip,same thing happened to my tracker.Certain countries ip's have a captcha now.

from python-poloniex.

 avatar commented on June 12, 2024

thanks for your input @Pac23
But if an IP related captcha is the case, then both requests (direct request or using the python module) should get that captcha, right? or do I understand something fundamentally wrong here?

from python-poloniex.

bartgrefte avatar bartgrefte commented on June 12, 2024

Even though I do not use this Python wrapper, I thought it might help mentioning that I also have problems starting at the same time as dstaeger, I'm using Profit Trailer instead.

The strange thing is, so far I've only seen 3 people (including myself) reporting problems at Twitter. I would've expected more if everyone is running into this.

from python-poloniex.

 avatar commented on June 12, 2024

And just now the problem I described earlier:

I have the same problem like @Pankul94 discribed. But just since 18th March 2018 5:55 am UTC.

does not exist anymore on one of my computers (IP in Europe), but still exists on another (IP in US). Strange behavior, but certainly related to some specific change in response behavior of the servers of Poloniex, I cannot imagine anything else. The response behavior seems to depend on both ip and request details. What I can say is that nothing fundamentally changed in my requests recently so I assume its a technical problem on the side of Poloniex, thats the only thing I can think of at the moment.

from python-poloniex.

bartgrefte avatar bartgrefte commented on June 12, 2024

Well, still no change here (EU IP), although some servers could think I'm in the US due to my IPv6-tunnelprovider being located there, but I checked, the bots are using IPv4 and that address is registered in NL.

Someone from ProfitTrailer read my Tweets and has opened a support ticket. They are gonna look into this. If they find anything, I'll post it here.

from python-poloniex.

 avatar commented on June 12, 2024

All of my IP's are good now. I will post back here anyways if I got to understand more about such events.

from python-poloniex.

bartgrefte avatar bartgrefte commented on June 12, 2024

The bots are running normally again here, since around 14:30/14:40 (GMT+1/Amsterdam) according to the logs.

Same here, if PT-support figures it out, I'll post the info here.

edit: Got a reply back, they say many people had this problem (while I only found 3 reports on Twitter) and that it wasn't going wrong on PT's end.

from python-poloniex.

BruceDai003 avatar BruceDai003 commented on June 12, 2024

My IP is in China if without VPN, I was initially use urllib2 to get the response from poloniex.com, but encountered the captcha problem. Then I switched to this poloniex module, and unexpectedly no captcha problem the first time or day I run it. But several days later( yesterday), I tried to download some data with poloniex, then sadly a HTTP 403 Error came up, I think it's related to the Captcha.
So, my question is:

  1. Could you add a proxy configuration to this poloniex class? I saw there was this option once before, but somehow it doesn't exist anymore, may I ask why?

  2. Could you provide some way to check if there is a Captcha returned, just pop up the Captcha picture, and let the end user( me) input the correct numbers/digits on the Captcha and send it back to the website, and get the data downloaded?

Much appreciated.

from python-poloniex.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.