Quotex API
git clone https://github.com/cleitonleonel/pyquotex.git
cd pyquotex
pip install -r requirements.txt
from quotexapi.stable_api import Quotex
if connect sucess return True,None
if connect fail return False,None
from quotexapi.stable_api import Quotex
client = Quotex(email="[email protected]", password="pwd")
client.debug_ws_enable = False
check_connect, message = client.connect()
print(check_connect, message)
from quotexapi.stable_api import Quotex
client = Quotex(email="[email protected]", password="pwd")
client.debug_ws_enable = False
check_connect, message = client.connect()
print(check_connect, message)
if check_connect:
client.change_account("PRACTICE")
amount = 30
asset = "EURUSD_otc" # "EURUSD_otc"
direction = "call"
duration = 10 # in seconds
status, buy_info = client.buy(amount, asset, direction, duration)
print(status, buy_info)
print("Saldo corrente: ", client.get_balance())
print("Saindo...")
client.close()