ð Introducing alltradingapi: The Official Node.js & TypeScript Client for Quotex Market Data ðĶâĄ
Building automated trading strategies, Discord signal bots, or custom live charting dashboards in JavaScript/TypeScript for binary OTC markets like Quotex has traditionally been an uphill battle. ð
The core obstacle? Quotex publishes no official public developer API.
Until now, developers had to resort to:
- ð Running resource-draining Puppeteer or Playwright browser instances on expensive servers.
- ðĨ Parsing minified, undocumented WebSockets that break whenever the front-end updates.
- âģ Dealing with session token decay and rate-limit IP blocks.
Today, we are thrilled to announce that
alltradingapiis officially published on npm! ððĶ
npm install alltradingapi
ð npm Listing: https://www.npmjs.com/package/alltradingapi
ð Official Developer Portal: https://alltradingapi.com
ð Why We Built This: Engineering Philosophy ð ïļâĻ
When architecting the Node.js SDK for All Trading API, our engineering team set non-negotiable standards for production fintech environments:
- ðŠķ Zero External Dependencies: Operates exclusively on Node.js built-ins (
fetch). Zero dependency tree bloat, zero version conflicts, zero supply-chain risk! - ð First-Class TypeScript Types: Ships native
.d.tsdeclaration files with 100% autocomplete for candle payloads, timeframes, and asset models. - ðĶ Dual ESM & CommonJS Support: Seamlessly works out-of-the-box whether you use modern
import { Client } from "alltradingapi"or standardconst { Client } = require("alltradingapi"). - ð Institutional Resilience: Integrated automatic retry logic with exponential backoff honoring upstream
Retry-Afterheaders on rate limits (HTTP 429). - ⥠Strict Client-Side Validation: Pre-validates query parameters locally before hitting the wire, saving wasted network round-trips!
6. ðĒ Node 18+ Native: Designed from the ground up for modern async/await event loops.
ðŧ 10-Second Quickstart (TypeScript / JavaScript) ð
Installing the package takes less than 2 seconds:
npm install alltradingapi
ð 1. Fetching 1-Minute OTC Candlesticks
Here is how easy it is to retrieve real-time OHLCV candles with custom lookback hours and timezone normalization:
import { Client } from "alltradingapi";
// Automatically picks up ATA_API_KEY from environment, or pass { key: "ap_your_key" }
const ata = new Client();
async function runBot() {
console.log("⥠Fetching Quotex market data...");
// Query 2 hours of 1-minute candles for USD/BRL OTC
const candles = await ata.candles("BRLUSD_otc", {
hours: 2,
timeframe: "1m"
});
const latest = candles.at(-1);
console.log(`ð Total candles: ${candles.length}`);
console.log(`ðĨ Latest Close: ${latest?.close} at ${latest?.time_read}`);
console.log(`âąïļ Ticks in candle: ${latest?.ticks}`);
}
runBot();
ð Standardized JSON Response:
[
{
"symbol_id": 332,
"time": 1794079860,
"open": 0.17696,
"close": 0.17689,
"high": 0.17708,
"low": 0.17684,
"ticks": 141,
"asset": "BRLUSD_otc",
"asset_name": "USD/BRL (OTC)",
"time_read": "2026-11-07 16:31 (UTC: -03:00)"
}
]
ð° 2. Monitoring Active Assets & Live Payout Yields ðĒ
Never execute a trade on sub-optimal payouts! You can query all 30+ currency and crypto pairs in real time:
// Query only assets where the market is currently open
const assets = await ata.assets({ onlyOpen: true });
for (const asset of assets.slice(0, 5)) {
console.log(`âĻ ${asset.asset_name}: ${asset.payout}% payout (24h change: ${asset.change_24h}%)`);
}
// Cleanly close resources when done
ata.close();
ð ïļ Complete Method Reference ð
| Method | Endpoint | Return Value |
|---|---|---|
ata.candles(asset, opts) |
/qx_candles |
ð Real-time & historical OHLCV candlestick array |
ata.assets(opts) |
/qx_assets |
ð° All assets with payout %, open state, and volume |
ata.history(asset, opts) |
/qx_history |
ðïļ Extended historical candle archives |
ata.saved(asset) |
/qx_saved |
ðū Saved broker candle snapshots |
ata.screenshot(asset) |
/qx_screenshot |
ðļ Real-time rendered chart screenshot buffer |
ata.result(tradeId) |
/qx_result |
ðŊ Verification check for trade outcomes |
ð Get Started Today! ðâĻ
Stop fighting with fragile scrapers and upgrade your Node.js trading infrastructure to institutional-grade REST feeds! ðïļð
- ðĶ npm Package: npmjs.com/package/alltradingapi
- ð Interactive Live Desk: alltradingapi.com
- ð API Documentation: alltradingapi.com/docs
- ð GitHub Repository: github.com/alltradingapi/alltradingapi-js Feedback and feature requests are warmly welcomed in the comments below! ððĨ

Top comments (0)