Quotex API with Python — Connect, Read Candles and Automate
Want to connect to Quotex from Python to read prices and place CALL/PUT trades automatically? This page explains how the Quotex API works, shows a minimal Python example, and gives you a free open-source bot that already wraps it all — 9 strategies and a visual dashboard, no coding required.
🤖 Get the free Quotex bot (API ready)
Open-source Python bot using the Quotex API. Edit it by chatting with ChatGPT/Claude — no coding. Free, no spam.
Is there an official Quotex API?
Quotex does not offer an official public API. The community connects to it through the same WebSocket the web platform uses, via open-source Python libraries (the best known is pyquotex). It works, but because it is unofficial it can change without notice, and you should use it on a demo account first.
What you can do with the Quotex API in Python
Connect with Python — minimal example
Using the pyquotex library (included in our bot), a minimal connection looks like this:
# pip install pyquotex (or use the bot, it is bundled)
from pyquotex.stable_api import Quotex
import asyncio
async def main():
client = Quotex(email="you@email.com", password="yourpass")
client.account_is_demo = 1 # always start on demo
ok, reason = await client.connect()
candles = await client.get_candles("EURUSD_otc", 60, 0)
status, order = await client.buy(1, "EURUSD_otc", "call", 60)
await client.close()
asyncio.run(main())That is the raw API. Turning it into a profitable, safe strategy (signals, risk control, payout filter, stop loss) is the hard part — which is exactly what the bot below already does.
Skip the setup: get the ready-made bot
Instead of wiring the API by hand, download IaTraderPro Bot: it already uses the Quotex API and adds 9 ready strategies (EMA, RSI, Bollinger, MACD, ADX…), a visual Streamlit dashboard, payout filter, daily stop loss/win and configurable martingale. Everything is open source, so you can read and change the code.
Modify it with AI — no coding
Paste bot.py into ChatGPT or Claude, describe the strategy you want in plain English, and the AI returns working code. You paste it back, test on demo, done. That is the real advantage of an open bot over a closed “magic” one.
FAQ
Is it official? No — it uses the community Quotex WebSocket API. Use demo first.
Can my account get banned? Automation carries risk on real accounts; test on demo and read the broker terms.
Is it free? Yes — the bot is free and open source.
Does it work for IQ Option too? Yes, the bot has an IQ Option version as well.
⚠️ Binary options involve high risk and can result in total loss. This content is educational and not investment advice. No bot guarantees profit. Always test on a demo account first.