You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is my first time trying the polygon API, so I may be doing something wrong, but I think perhaps the API is under maintenance this evening, as https://api.polygon.io is returning:
Error
Application not found or under maintenance.
While in this state, attempting to use api.polygon appears to just hang, haven't dug into why:
import alpaca_trade_api as tradeapi
api = tradeapi.REST()
aapl = api.polygon.historic_agg('day', 'AAPL', limit=10).df
print(aapl)
(never returns)
The text was updated successfully, but these errors were encountered:
This particular issue may be an odd issue on my dev system. I identified that I can make polygon requests from a web browser to the API, but from this particular opensuse dev system the request hang, even with wget/curl. Hard to debug exactly what is happening with the SSL, not sure if it is SSL related.
(edited) So this is odd, why am I seeing a self-signed cert from linux, but not in a chrome browser?
$ openssl s_client -quiet -host api.polygon.io -port 443
depth=0 O = Acme Co, CN = Kubernetes Ingress Controller Fake Certificate
verify error:num=20:unable to get local issuer certificate
verify return:1
depth=0 O = Acme Co, CN = Kubernetes Ingress Controller Fake Certificate
verify error:num=21:unable to verify the first certificate
verify return:1
GET /v1/historic/quotes/AAPL/2018-2-2?apiKey=XXX HTTP/1.1
Host: api.polygon.io
^C
Above appears to hang when I specify my API key, but does return Invalid / Missing if I specify the wrong one. Also fails to return even if I add a limit=10.
I'm closing this. It appears the dev system I was having problems with will not connect with TLSv1.2 properly, which the polygon API appears to require. Additionally, -servername api.polygon.io is required for the s_client test to support the SNI of your frontend.
This is my first time trying the polygon API, so I may be doing something wrong, but I think perhaps the API is under maintenance this evening, as https://api.polygon.io is returning:
While in this state, attempting to use api.polygon appears to just hang, haven't dug into why:
(never returns)
The text was updated successfully, but these errors were encountered: