IQ Option API with Python (iqoptionapi) — Connect, Trade and check_win

How to connect to IQ Option from Python using the community iqoptionapi library: log in, read candles, send orders and read the result with check_win_v4. Plus a free open-source bot that already wraps it all.

🤖 Get the free IQ Option bot (API ready)

Open-source Python bot using iqoptionapi. Edit it by chatting with ChatGPT/Claude — no coding. Free, no spam.

Is there an official IQ Option API?

No. IQ Option has no official public API. The community uses the open-source iqoptionapi library, which talks to the same WebSocket the platform uses. It is unofficial — use a demo (practice) account and be aware of ban risk on real accounts.

Connect with Python — minimal example

Login, read candles, buy and read the result with check_win_v4:

# pip install iqoptionapi (also bundled with our bot) from iqoptionapi.stable_api import IQ_Option api = IQ_Option("you@email.com", "yourpass") api.connect() api.change_balance("PRACTICE") # always demo first candles = api.get_candles("EURUSD", 60, 100, time.time()) ok, order_id = api.buy(1, "EURUSD", "call", 1) # 1 = 1-minute expiry profit = api.check_win_v4(order_id) # result of the trade

check_win_v4 returns the trade profit (positive = win, negative = loss). It is the most reliable way to read the outcome on the current library.

Useful iqoptionapi methods

connect() / change_balance()
get_candles()
buy() / buy_digital_spot()
check_win_v4() / get_balance()

Skip the setup: get the ready-made bot

Our IaTraderPro Bot already uses iqoptionapi and adds 9 ready strategies, a visual Streamlit dashboard, payout filter, daily stop loss/win and configurable martingale — open source, so you read and change the code.

Modify it with AI — no coding

Paste bot.py into ChatGPT or Claude, describe the strategy you want, get working code back. Paste, test on demo, done.

FAQ

Is it official? No — community library. Use demo first.
What does check_win_v4 do? Returns the profit/loss of a placed order.
Account ban risk? Automation carries risk on real accounts; test on demo and read the terms.
Is it free? Yes — the bot is free and open source. It also supports Quotex.

⚠️ Binary options involve high risk and can result in total loss. Educational content, not investment advice. No bot guarantees profit. Always test on a demo account first.