From 57333670e12c7a38800137dbdfe28427139677b6 Mon Sep 17 00:00:00 2001 From: MortezaKheiri <106186845+MortezaKheiri@users.noreply.github.com> Date: Thu, 18 Dec 2025 03:42:52 +0330 Subject: [PATCH] Bypass SSL verification for old.tsetmc.com due to self-signed certificate issue The site old.tsetmc.com uses a self-signed certificate, which caused requests to fail with SSLError. This commit disables SSL verification for this specific request and suppresses related warnings. --- finpy_tse/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/finpy_tse/__init__.py b/finpy_tse/__init__.py index fce6227..caff203 100644 --- a/finpy_tse/__init__.py +++ b/finpy_tse/__init__.py @@ -2063,7 +2063,7 @@ def Build_Market_StockList(bourse = True, farabourse = True, payeh = True, detai print('Choose at least one market!') return start_time = time.time() - http = urllib3.PoolManager() + http = urllib3.PoolManager(cert_reqs='CERT_NONE') look_up = pd.DataFrame({'Ticker':[],'Name':[],'WEB-ID':[],'Market':[]}) # -------------------------------------------------------------------------------------------------- if(bourse): @@ -2915,3 +2915,4 @@ def Get_ShareHoldersInfo(ticker = 'خودرو'): df_sh['Market'] = market df_sh.set_index(['Ticker','Market','Name'], inplace=True) return df_sh +