# fayazahmedwazir00/quotex architecture

> Architecture diagram of the GitHub repository fayazahmedwazir00/quotex, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-30). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/fayazahmedwazir00/quotex
- Repository: https://github.com/fayazahmedwazir00/quotex

## Overview

This is a Telegram-managed Quotex trading bot. The documented user journey starts with /start, proceeds through account and trading configuration, and can enable automated trading; the bot also provides admin controls and a small Flask status page. Most behavior is concentrated in bot.py, so its domain responsibilities are shown separately but share that exact path. The excerpts confirm settings access, task scheduling and Quotex profile calls; broader feature links rely on the README, since much of bot.py was not shown.

Main entry points: [`bot.py`](https://github.com/fayazahmedwazir00/quotex/blob/main/bot.py) (Bot interface)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_telegram["Telegram Bot"]
  node_bot["Bot interface<br/>[bot.py]"]
  node_accounts["Account management<br/>[bot.py]"]
  node_admin["Admin tools<br/>[bot.py]"]
end

subgraph group_trading["Trading"]
  node_settings["Trade settings<br/>[bot.py]"]
  node_assets["Assets and analysis<br/>[bot.py]"]
  node_scheduler["Trading scheduler<br/>[bot.py]"]
  node_trade_loop["Automated trading<br/>[bot.py]"]
end

subgraph group_web["Status Page"]
  node_web_app["Status endpoint<br/>[app.py]"]
end

node_user(("Telegram user"))
node_telegram["Telegram platform"]
node_quotex["Quotex service"]

node_user -->|"sends commands"| node_telegram
node_telegram -->|"delivers interactions"| node_bot
node_bot -->|"manages accounts"| node_accounts
node_bot -->|"configures"| node_settings
node_bot -->|"provides controls"| node_admin
node_bot -->|"configures assets"| node_assets
node_bot -->|"starts tasks"| node_scheduler
node_scheduler -->|"schedules"| node_trade_loop
node_trade_loop -->|"reads settings"| node_settings
node_bot -->|"requests profile"| node_quotex

click node_bot "https://github.com/fayazahmedwazir00/quotex/blob/main/bot.py"
click node_accounts "https://github.com/fayazahmedwazir00/quotex/blob/main/bot.py"
click node_admin "https://github.com/fayazahmedwazir00/quotex/blob/main/bot.py"
click node_settings "https://github.com/fayazahmedwazir00/quotex/blob/main/bot.py"
click node_assets "https://github.com/fayazahmedwazir00/quotex/blob/main/bot.py"
click node_scheduler "https://github.com/fayazahmedwazir00/quotex/blob/main/bot.py"
click node_trade_loop "https://github.com/fayazahmedwazir00/quotex/blob/main/bot.py"
click node_web_app "https://github.com/fayazahmedwazir00/quotex/blob/main/app.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_bot,node_accounts,node_admin,node_user toneBlue
class node_settings,node_assets,node_scheduler,node_trade_loop toneAmber
class node_web_app toneMint
class node_telegram,node_quotex toneIndigo
```

## Components

### Telegram Bot

- [Bot interface](https://github.com/fayazahmedwazir00/quotex/blob/main/bot.py): `bot.py`
- [Account management](https://github.com/fayazahmedwazir00/quotex/blob/main/bot.py): `bot.py`
- [Admin tools](https://github.com/fayazahmedwazir00/quotex/blob/main/bot.py): `bot.py`

### Trading

- [Trade settings](https://github.com/fayazahmedwazir00/quotex/blob/main/bot.py): `bot.py`
- [Assets and analysis](https://github.com/fayazahmedwazir00/quotex/blob/main/bot.py): `bot.py`
- [Trading scheduler](https://github.com/fayazahmedwazir00/quotex/blob/main/bot.py): `bot.py`
- [Automated trading](https://github.com/fayazahmedwazir00/quotex/blob/main/bot.py): `bot.py`

### Status Page

- [Status endpoint](https://github.com/fayazahmedwazir00/quotex/blob/main/app.py): `app.py`

### Other components

- **Telegram user**
- **Telegram platform**
- **Quotex service**

## Connections

- Telegram user → Telegram platform: sends commands (evidence: `README.md`)
- Telegram platform → Bot interface: delivers interactions (evidence: `README.md`)
- Bot interface → Account management: manages accounts (evidence: `README.md`)
- Bot interface → Trade settings: configures (evidence: `README.md`)
- Bot interface → Admin tools: provides controls (evidence: `README.md`)
- Bot interface → Assets and analysis: configures assets (evidence: `README.md`)
- Bot interface → Trading scheduler: starts tasks (evidence: `bot.py`)
- Trading scheduler → Automated trading: schedules (evidence: `bot.py`)
- Automated trading → Trade settings: reads settings (evidence: `bot.py`)
- Bot interface → Quotex service: requests profile (evidence: `bot.py`)
