@@ -247,7 +247,7 @@ class ThetaClient:
247
247
248
248
def __init__ (self , port : int = 11000 , timeout : Optional [float ] = 60 , launch : bool = True , jvm_mem : int = 0 ,
249
249
username : str = "default" , passwd : str = "default" , auto_update : bool = True , use_bundle : bool = True ,
250
- host : str = "localhost" , streaming_port : int = 10000 ):
250
+ host : str = "localhost" , streaming_port : int = 10000 , stable : bool = True ):
251
251
"""Construct a client instance to interface with market data. If no username and passwd fields are provided,
252
252
the terminal will connect to thetadata servers with free data permissions.
253
253
@@ -286,7 +286,7 @@ def __init__(self, port: int = 11000, timeout: Optional[float] = 60, launch: boo
286
286
"20 requests / minute.\n A data subscription can be purchased at https://thetadata.net. "
287
287
"If you already have a ThetaData\n subscription, specify the username and passwd parameters." )
288
288
print ('------------------------------------------------------------------------------------------------' )
289
- if check_download (auto_update ):
289
+ if check_download (auto_update , stable ):
290
290
Thread (target = launch_terminal , args = [username , passwd , use_bundle , jvm_mem , auto_update ]).start ()
291
291
else :
292
292
print ("You are not launching the terminal. This means you should have an external instance already running." )
0 commit comments