| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
⚡ Enterprise-Grade 24/7 Self-Healing REST API & WebSocket wrapper for Quotex (Real & OTC asset pairs). Live M1 candle history, live payouts & trading bot engine.
Quotex 24/7 Live REST API, WebSocket Streamer & AI Signal Engine is a state-of-the-art, enterprise-grade Python FastAPI REST and WebSocket protocol wrapper engineered specifically for Quotex. Built for algorithmic traders, prop trading firms, signal providers, and quantitative developers requiring 24/7 ultra-low latency execution and non-repainting market data streams.
Experience the live production API server, test interactive Swagger requests, and inspect real-time schemas directly in your browser:
👉 https://api1.api.cbtraderbd.xyz/docs
You can immediately test our algorithms and automated account systems on Telegram:
┌────────────────────────────────────────────────────────┐
│ CB TRADERS BD GATEWAY │
│ https://api1.api.cbtraderbd.xyz/docs │
└──────────────┬──────────────────────────┬──────────────┘
│ │
REST API Requests WebSocket Stream (WSS)
│ │
┌──────────────▼──────────────┐ ┌───────▼──────────────────────┐
│ FastAPI Async Web Server │ │ High-Speed WebSocket Pool │
│ - Endpoint Validation │ │ - Binary Frame Parsing │
│ - JSON Schema Serializer │ │ - Heartbeat Keep-Alive │
│ - Token Authentication │ │ - Auto-Reconnect Daemon │
└──────────────┬──────────────┘ └───────┬──────────────────────┘
│ │
┌──────────────▼──────────────────────────▼──────────────┐
│ Core Engine Layer │
│ - Session Manager & Cloudflare Clearance Handler │
│ - Non-Repaint M1/M5 Historical Candle Persistence │
│ - AI Multi-Indicator Signal Strategy Pipeline │
└──────────────────────────────┬─────────────────────────┘
│
┌───────────────▼───────────────┐
│ Quotex Live Platform │
│ (Real Markets & 24/7 OTC) │
└───────────────────────────────┘
This repository features an expansive, clean, and production-ready modular architecture:
├── config/ │ ├── default.json # Server host, port & connection pool configuration │ └── strategies.json # Technical indicators, RSI thresholds & Martingale setups ├── docs/ │ ├── API_REFERENCE.md # Exhaustive endpoint reference and request/response payloads │ └── DEPLOYMENT_GUIDE.md # Step-by-step VPS Linux (Ubuntu/Debian) & Docker setup ├── examples/ │ ├── 01_quickstart.py # 1-Click connection and live price check │ ├── 02_stream_candles.py # Real-time WebSocket tick and candlestick listener │ ├── 03_auto_trade_signals.py # Automated execution based on AI indicator signals │ ├── 04_telegram_alerts.py # Formatting and broadcasting signals to Telegram channels │ └── 05_historical_export.py # Exporting multi-day M1/M5 datasets to CSV and SQLite ├── src/ │ ├── core/ │ │ ├── __init__.py │ │ ├── auth.py # Cloudflare session token & cookie rotation manager │ │ ├── client.py # High-throughput asynchronous HTTP/REST client │ │ ├── engine.py # Master order processing & market event pipeline │ │ └── websocket.py # Resilient WebSocket protocol frame parser │ ├── models/ │ │ ├── __init__.py │ │ ├── candle.py # Pydantic OHLCV candle validation schemas │ │ ├── order.py # Binary options trade order payload models │ │ └── payout.py # Live asset payout percentage schema │ ├── services/ │ │ ├── __init__.py │ │ ├── database.py # SQLite/PostgreSQL persistence for 8-day rolling candles │ │ └── telegram_bot.py # Async Telegram broadcast & notification engine │ ├── strategies/ │ │ ├── __init__.py │ │ ├── martingale.py # Dynamic stake sizing & risk mitigation calculator │ │ ├── price_action.py # Support/Resistance, Pinbar & Engulfing pattern scanner │ │ └── rsi_bb.py # RSI (14) + Bollinger Bands (20, 2) breakout analyzer │ └── utils/ │ ├── __init__.py │ ├── helpers.py # Timezone converters, timestamp formatters & math tools │ └── logger.py # Colored asynchronous console & file logger ├── scripts/ │ ├── install.sh # Automated Linux dependency installer │ └── start_api.bat # 1-Click Windows production launcher ├── .env.example # Environment variables template ├── .gitignore # Standard Python git exclusions ├── Dockerfile # Multi-stage optimized Docker build ├── docker-compose.yml # Complete containerized service stack ├── requirements.txt # Locked production dependencies └── README.md # In-depth system documentation
# 1. Clone the repository
git clone https://github.com/cbtradersbd/quotex-api.git
cd quotex-api
# 2. Create and activate virtual environment
python -m venv venv
# On Windows:
venv\Scripts\activate
# On Linux/macOS:
source venv/bin/activate
# 3. Install required production dependencies
pip install -r requirements.txt
# 4. Configure your environment
cp .env.example .env
# 5. Launch the FastAPI server
python -m uvicorn src.core.engine:app --host 0.0.0.0 --port 8000 --reloaddocker-compose up -d --build# .env Configuration File
API_BASE_URL=https://api1.api.cbtraderbd.xyz
API_KEY=cb_traders_bd_license_unlocked
BROKER=quotex
DEFAULT_TIMEFRAME=1m
RETENTION_DAYS=8
TIMEZONE_OFFSET=UTC+6
LOG_LEVEL=INFO
TELEGRAM_BOT_TOKEN=your_telegram_bot_token
TELEGRAM_CHAT_ID=@your_channelfrom src.core.client import BrokerApiClient
from src.utils.logger import logger
client = BrokerApiClient(base_url="https://api1.api.cbtraderbd.xyz/docs")
price_data = client.get_live_price("EURUSD_otc")
logger.info(f"Live Tick: {price_data}")import asyncio
from src.core.websocket import ResilientWebSocketClient
from src.utils.logger import logger
async def on_candle(candle):
logger.info(f"Closed M1 Candle: Time={candle.time}, Open={candle.open}, High={candle.high}, Low={candle.low}, Close={candle.close}")
async def main():
ws = ResilientWebSocketClient(pair="EURUSD_otc")
await ws.connect_and_listen(callback=on_candle)
if __name__ == "__main__":
asyncio.run(main())| Endpoint | Method | Purpose | Response Format |
|---|---|---|---|
| /docs | GET | Interactive Swagger API Explorer | HTML / UI |
| /api/quotex/live-price | GET | Current bid/ask and tick stream | JSON |
| /api/quotex/candles | GET | Historical closed OHLCV candle records | JSON Array |
| /api/quotex/payouts | GET | Live payout percentage monitor for all pairs | JSON Object |
| /api/quotex/signals | POST | Execute automated strategy webhook trigger | JSON Result |
| /ws/quotex/stream | WSS | Ultra-low latency binary WebSocket feed | Binary / JSON |
Looking for the 100% full, unlocked source code with complete ownership, personal API keys, or custom bot development?
| Back | FazBrowse Home | New Git URL |