Our collectors record every pair of Quotex, Binolla, TradoWix, Pocket Broker, IQ Option and Olymp Trade — OTC and live markets — around the clock. With this API your own bot, app, website or Excel sheet reads the same data our charts use.
Live tick (current price)The newest price of one pair, with bid, ask and the exact time in milliseconds (UTC).
Latest candlesThe newest N candles of one pair. The newest candle comes first.
Candles of one day (history)Every candle of one UTC day, newest first.
Live tick streamKeep one connection open and receive every new tick.
WebhooksWe call your server the moment a candle closes.
Pair listsEvery pair with its payout and whether it is open now — no key needed.
Binary options and OTC trading carry a high risk of losing money. The API delivers market data, not trading advice or a promise of profit.
Quick start
1
Log in and open the API page. Start the free 1-day trial or buy a plan.
2
Copy your licence key — it looks like API-XXXX-XXXX-XXXX-XXXX.
3
Add &key=your key to the end of an address and open it in your browser — you will see JSON data.
Your key is shown on the API page as soon as your trial or plan is active, and you can see it there any time. Keep it secret and never give it to anyone — anyone with your key uses your plan. If it leaks, press Make a new key: the old key stops working at once.
Three ways to send the key
Where
Example
In the address
…&key=API-XXXX-XXXX-XXXX-XXXX
X-API-Key header
X-API-Key: API-XXXX-XXXX-XXXX-XXXX
Authorization header
Authorization: Bearer API-XXXX-XXXX-XXXX-XXXX
A header is safer for apps and servers, because addresses are saved in browser history and server logs.
When your plan ends, the API answers LICENSE_EXPIRED until you renew. Your key stays the same after renewing.
Plans & prices
Every plan has every address: live ticks, candles, day history, the tick stream and webhooks. Pay with bKash, Nagad, Rocket or card — the key works the moment the payment is confirmed.
Every broker has the same three addresses and the same answers — only the start of the address changes. Choose a broker and every address below follows.
Stored days go back to 2026-10-12.The Binolla feed keeps about the last 3 days.Day history keeps the last 30 days (stored since 2026-11-10).Day history keeps the last 30 days (stored since 2026-11-10).Day history keeps the last 30 days (stored since 2026-11-10).Day history keeps the last 30 days (stored since 2026-11-10).In /api/v1 usebroker=quotex
GET/chart/Qx_ticks.phpKey needed
Live tick (current price)
The newest price of one pair, with bid, ask and the exact time in milliseconds (UTC).
Every pair with its payout and whether it is open now — no key needed. Always use the exact name, with _otc for OTC pairs: USDNGN_otc, not USDNGN.
https://bangladeshitrader.com/chart/api/pairs
Candle fields
Field
Meaning
time
Start of the candle, UTC (YYYY-MM-DD HH:MM:SS)
epoch
The same time in seconds
open · high · low · close
Prices of the candle
colour
green when close ≥ open, otherwise red
payout
Payout % of the pair at that time
volume
Always 0 (the brokers do not publish volume)
Candles come newest first. Times are always UTC — Bangladesh time is UTC+6.
Error codes
When something is wrong the answer has success: false, a code and an error message.
code
HTTP
Meaning
LICENSE_REQUIRED
401
No key was sent — add &key=… to the address
LICENSE_INVALID
401
The key is mistyped or does not exist
LICENSE_EXPIRED
403
Your plan has ended — renew it on the API page
LICENSE_REVOKED
403
The key was replaced by a new one or stopped
BROKER_NOT_IN_PLAN
403
Your plan does not include this broker
IP_NOT_ALLOWED
403
Your key is limited to other IP addresses
RATE_LIMITED
429
Too many requests this minute — wait (Retry-After header) and cache results
No candle data
404
Wrong pair name (remember _otc) or the market has no data
Example answer
{
"Owner_Developer": "Sujan Khan",
"Telegram": "@Bangladeshi_Trader",
"Channel": "https://t.me/BangladeshiTrader",
"Broker": "Quotex",
"Version": "1.00",
"success": false,
"error": "Your API plan has ended. Renew it on bangladeshitrader.com/developer.php",
"code": "LICENSE_EXPIRED",
"contact": "@Bangladeshi_Trader",
"data": []
}
Code examples
import requests # pip install requests
KEY = "API-XXXX-XXXX-XXXX-XXXX"
r = requests.get("https://bangladeshitrader.com/chart/Qx.php",
params={"timeframe": "M1", "pair": "EURUSD_otc", "count": 100, "key": KEY},
timeout=15)
data = r.json()
if data["success"]:
for c in data["data"]: # newest candle first
print(c["time"], c["open"], c["high"], c["low"], c["close"], c["colour"])
else:
print(data["code"], data["error"])
const KEY = "API-XXXX-XXXX-XXXX-XXXX"; // on a server only — see Websites & web apps
const r = await fetch(`https://bangladeshitrader.com/chart/Qx.php?timeframe=M1&pair=EURUSD_otc&count=100&key=${KEY}`);
const j = await r.json();
if (j.success) console.log(j.data[0]); // newest candle
else console.log(j.code, j.error);
Other brokers: change /chart/Qx.php to the address shown above for that broker.
Websites & web apps
Building on Netlify, Vercel, GitHub Pages or similar? Four rules keep your key safe and your app fast:
1
Always use the full pair name with _otc for OTC pairs, e.g. USDNGN_otc.
2
Do not use free CORS proxies (corsproxy.io, allorigins and the like). Our API can be called straight from a browser; proxies block requests, ask for their own keys and hand your key to a third party.
3
Never put your key in a public page's code — anyone can read the page source. Call the API from your own server or function and keep the key in an environment variable.
4
Scanning many pairs? Ask for 2–3 pairs at a time and cache the results for a few seconds.
Instead of asking again and again, keep one connection open and receive every new tick of up to 20 pairs as it happens (Server-Sent Events). One connection lasts up to 5 minutes, then connect again. Up to 2 open streams per account.
import json, requests # pip install requests
url = "https://bangladeshitrader.com/api/v1/stream/ticks"
params = {"broker": "quotex", "pairs": "EURUSD_otc,GBPUSD_otc"}
headers = {"X-API-Key": "API-XXXX-XXXX-XXXX-XXXX"}
while True: # reconnect when the 5 minutes are over
with requests.get(url, params=params, headers=headers, stream=True, timeout=330) as r:
event = None
for line in r.iter_lines(decode_unicode=True):
if line.startswith("event: "): event = line[7:]
elif line.startswith("data: ") and event == "tick":
t = json.loads(line[6:])
print(t["symbol"], t["price"], t["time"])
// on your server (Node 18+)
const res = await fetch("https://bangladeshitrader.com/api/v1/stream/ticks?broker=quotex&pairs=EURUSD_otc", { headers: { "X-API-Key": process.env.BDT_API_KEY } });
const reader = res.body.getReader(), dec = new TextDecoder(); let buf = "";
for (;;) {
const { value, done } = await reader.read(); if (done) break; // connect again
buf += dec.decode(value, { stream: true });
let i; while ((i = buf.indexOf("\n\n")) >= 0) {
const block = buf.slice(0, i); buf = buf.slice(i + 2);
const line = block.split("\n").find(l => l.startsWith("data: "));
if (block.startsWith("event: tick") && line) console.log(JSON.parse(line.slice(6)));
}
}
Use broker=binolla, tradowix, pocket_broker, iqoption or olymptrade for the other brokers (when that broker is in your plan).
Webhooks
Add a webhook on the API page: your server's address, a broker, up to 10 pairs and a timeframe. Every time a candle of those pairs closes, we send it to your server with POST, usually within a minute. Answer with any 2xx status; after 20 failures in a row the webhook is paused.
The signature is HMAC-SHA256 of timestamp + "." + the raw body, made with your webhook's signing secret (shown on the API page). Reject a call when it does not match or when the timestamp is more than 5 minutes old.