Comments (14)
from pyetrade.
Thanks for the info. I'll give this a shot after the Morgan/Stanley merger is complete.
from pyetrade.
Currently running my scripts using 3.10.5 and i dont have this issue, however, i did find this stackoverflow post in relation to this SSLV3_ALERT_HANDSHAKE_FAILURE
error.
Can you give this solution a try?
from pyetrade.
my turn with the short stick...everything working until 2023-06-22. Coincidental with upgrade from python 3.11.3 to 3.11.4.
HTTPSConnectionPool(host='api.etrade.com', port=443): Max retries exceeded with url: /oauth/request_token (Caused by SSLError(SSLError(1, '[SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:1002)')))
anyone else having trouble today?
I saw that ajgringo619 was having trouble with 3.11.3, so I'm skeptical it could be python versioning.
from pyetrade.
I confirmed that python 3.10 and 3.11 with their associated crypto libraries causes the problem. python3.9 and it's libraries do not experience the SSL problem. Next step is to document when libraries are involved in the oauth process for each version of python.
from pyetrade.
python 3.9, 3.10, and 3.11 all use the same library versions in my code, so I'm at a loss why python3.9 works while 3.10 and 3.11 do NOT.
pyetrade | 1.4.1
oauthlib | 3.2.2
requests_oauthlib | 1.3.1
requests | 2.31.0
xmltodict | 0.13.0
jxmlease | 1.0.3
certifi | 2023.5.7
urllib3 | 2.0.3
from pyetrade.
very interesting, again i dont have issues with python 3.10.5. My package version list is below (as outlined by @1rocketdude):
pyetrade | 1.4.1
oauthlib | 3.2.2
requests_oauthlib | 1.3.1
requests | 2.28.1
xmltodict | 0.13.0
jxmlease | 1.0.3
certifi | 2022.9.24
urllib3 | 1.26.12
Different version are highlighted in bold, it appears that i am still using some older packages for serving http requests.
I don't think its a python version issue, can you guys try downgrading your packages and test to see if it works? Its possible that one of these packages (or a combination of them) is causing the handshake error.
I guess trial and error to figure out which ones it might be.
from pyetrade.
Nvm, that didnt take long, its the urllib3 package.
i first upgraded the urllib3 package to the latest version and my script failed with the handshake error instantly. I upgraded all the other packages (except urllib3) and my script worked as normal but updating it as well broke it again.
Looking at their github, it looks like they went through some SSL changes from 1.26.16 to 2.0.3.
Something has definitely changed in regards to how they are handling SSL that the pyetrade oauth requests are not doing, my gut is telling me its got something to do with OpenSSL. I'm not entirely sure what the root cause is, don't have time to dive deeper at the moment.
from pyetrade.
Currently running my scripts using 3.10.5 and i dont have this issue, however, i did find this stackoverflow post in relation to this
SSLV3_ALERT_HANDSHAKE_FAILURE
error.Can you give this solution a try?
Sorry I haven't got back to you. I'm still stuck on waiting for my consumer keys to be activated, been a month now.
from pyetrade.
Thank you. Can confirm that downgrading to urllib3 1.26.16 helped. I'm using Python 3.10
from pyetrade.
from pyetrade.
Related Issues (20)
- Are contingent orders actually supported? HOT 1
- oauth problems HOT 1
- oauth issue HOT 6
- [Warning!] ETrade API *sever* bug: Stop Price and Trailing Stop Parameter are swapped! HOT 3
- Preview order working but place order responding with same error again and again. HOT 1
- Verification code HOT 2
- Automatic Authentication HOT 2
- 401 Client Error: Unauthorized for URL in prod HOT 1
- auth server down on 2022-06-29
- 401 Client Error: Unauthorized for url HOT 2
- HTTPError: 401 Client Error: Unauthorized for url HOT 1
- oauth no longer working HOT 8
- Keep getting requests.exceptions.HTTPError: 400 Client Error: Bad Request for url when trying to place options order. HOT 8
- Exception: 500 Server Error: Internal Server Error for url When using preview_equity_order function
- Question about Etrade API HOT 2
- get_quote for an option call returns the put HOT 1
- Q: anyone saw this error: Token request failed with code 500 HOT 2
- urllib3 version needs to be 1.xx.xx HOT 2
- Cannot grab optionchain data with ETrade API in Python HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyetrade.