-
Eu quero um site com um botão de iniciar bot para rodar esse bot python import sys
import time
import json
import os
from datetime import datetime
from iqoptionapi.stable_api import IQ_Option
# --- CONFIGURAÇÕES ---
EMAIL = 'edu082021@outlook.com'
SENHA = '!@#$%ANOnimato,,..0880'
PAR = 'EURUSD-OTC'
MARTINGALE = 2
TIPO_CONTA = 'PRACTICE'
ARQUIVO_ESTADO = 'estado_bot_oxossi.json'
horarios_para_operar = [
'01:29:45', '03:29:45', '05:29:45', '07:29:45',
'09:29:45', '11:29:45', '13:29:45', '15:29:45',
'17:29:45', '19:29:45', '21:29:45', '23:29:45'
]
# --- FUNÇÕES DE SISTEMA ---
def log(message):
print(f"{datetime.now().strftime('%Y-%m-%d %H:%M:%S')} - {message}")
def salvar_estado(dados):
with open(ARQUIVO_ESTADO, 'w') as f:
json.dump(dados, f)
def ler_estado():
if os.path.exists(ARQUIVO_ESTADO):
try:
with open(ARQUIVO_ESTADO, 'r') as f:
return json.load(f)
except:
return None
return None
def limpar_estado():
if os.path.exists(ARQUIVO_ESTADO):
os.remove(ARQUIV…