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
File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\playwright\_impl\_connection.py", line 514, in wrap_api_call raise rewrite_error(error, f"{parsed_st['apiName']}: {error}") from None playwright._impl._errors.Error: Page.evaluate: opts is not defined
Trying to initialize like this :
import time
from quotexapi.stable_api import Quotex
import random
USER_AGENT = "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/119.0"
class QuotexExchange:
def __init__(self, **kwargs):
# Initialize the Quotex client using the new library
self.client = Quotex(
email=kwargs.get('email'),
password=kwargs.get('password'),
lang=kwargs.get('lang', 'pt'), # Language default set to Portuguese
email_pass=kwargs.get('email_pass', kwargs.get('password')), # Optional email pass
user_data_dir=kwargs.get('user_data_dir', None) # Optional browser profile path
)
self.client.set_session(user_agent=USER_AGENT)
self.client.debug_ws_enable = True
self.connected = False
self.max_retries = int(kwargs.get('retry', 5)) # Retry attempts for connection
self.practice = kwargs.get('practice', 'yes').lower() == 'yes' # Practice mode
self.otc = kwargs.get('otc', 'yes').lower() == 'yes' # OTC mode
The text was updated successfully, but these errors were encountered:
Per my research, downgrading playwright to 1.37 which also required to downgrade greenlet and other requirements made it work for me on windows 10. Issue that I faced just pip installing
I'm doing a work for someone that would prefer quotex as the exchange but this is such unreliable. I also tried this fork but it's very laggy spamming multiple trades and also sometimes it return LOSS when it's a WIN and vice-versa.
I'm willing to make this work with you guys but we gotta make this more reliable considering the goal is to make real money trading.
I get :
File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\playwright\_impl\_connection.py", line 514, in wrap_api_call raise rewrite_error(error, f"{parsed_st['apiName']}: {error}") from None playwright._impl._errors.Error: Page.evaluate: opts is not defined
Trying to initialize like this :
The text was updated successfully, but these errors were encountered: