I was able to successfully login into WeBull account and had no issues until I tried to use get_quote() method to print out the stock data. I am getting an SSL error shown below. I think it's unable to verify the SSL certificate for the website's "quotes-gw.webullbroker.com". Is there a way to resolve this issues?
I've also followed the instructions and installed the latest version of this package.
SSLCertVerificationError Traceback (most recent call last)
File ~\AppData\Roaming\Python\Python310\site-packages\urllib3\connectionpool.py:703, in HTTPConnectionPool.urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
702 # Make the request on the httplib connection object.
--> 703 httplib_response = self._make_request(
704 conn,
705 method,
706 url,
707 timeout=timeout_obj,
708 body=body,
709 headers=headers,
710 chunked=chunked,
711 )
713 # If we're going to release the connection in ``finally:``, then
714 # the response doesn't need to know about the connection. Otherwise
715 # it will also try to release it and we'll have a double-release
716 # mess.
File ~\AppData\Roaming\Python\Python310\site-packages\urllib3\connectionpool.py:386, in HTTPConnectionPool._make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw)
385 try:
--> 386 self._validate_conn(conn)
387 except (SocketTimeout, BaseSSLError) as e:
388 # Py2 raises this as a BaseSSLError, Py3 raises it as socket timeout.
File ~\AppData\Roaming\Python\Python310\site-packages\urllib3\connectionpool.py:1042, in HTTPSConnectionPool._validate_conn(self, conn)
...
--> 563 raise SSLError(e, request=request)
565 raise ConnectionError(e, request=request)
567 except ClosedPoolError as e:
SSLError: HTTPSConnectionPool(host='quotes-gw.webullbroker.com', port=443): Max retries exceeded with url: /api/search/pc/tickers?keyword=AAPL&pageIndex=1&pageSize=20®ionId=6 (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)')))
I was able to successfully login into WeBull account and had no issues until I tried to use get_quote() method to print out the stock data. I am getting an SSL error shown below. I think it's unable to verify the SSL certificate for the website's "quotes-gw.webullbroker.com". Is there a way to resolve this issues? I've also followed the instructions and installed the latest version of this package.