TickerAll API Docs
Everything you need to connect a broker account and trade it from your own code — REST endpoints, the realtime WebSocket, authentication, and copy-paste examples in curl, TypeScript, and Python.
Overview #overview
TickerAll is a hosted API for connecting to and automating your own MT4/MT5 broker accounts. You write your strategy in any language; we hold a fast, persistent connection straight to your broker and keep it live for you, exposed over a clean REST + WebSocket API — so there's no MT4/MT5 terminal in the path, no EA bridge to wire up, and no reconnect churn when your strategy needs it.
The API has two planes:
- REST control + data plane
https://api.tickerall.comConnect accounts, read balance and positions, list symbols, and place / close / modify orders. Standard JSON over HTTPS.- Realtime data plane
wss://api.tickerall.comA single long-lived WebSocket streams live ticks, position updates, and account updates as they happen.
One API key can hold many broker accounts at once — each scoped by its accountId. Symbol names are pass-through: you see the broker’s native names (e.g. EURUSD, BTCUSD), with no remapping. Prefer a typed client over raw HTTP? Grab the official SDKs linked at the top — TypeScript and Python, both wrapping this same REST + WebSocket API.
Quickstart #quickstart
From zero to a live order in four calls — then, on Pro, fan the same actions out across every account at once (step 5). Each step builds on the last. Prefer to click through it first? The dashboard's Test panel runs every one of these calls from your browser — no code.
POST your broker credentials to /v1/sessions. We authenticate against the broker and return an accountId.
By default your password is held in memory only while your connection is live, never saved to disk. The only exception is the opt-in remembered credentials setting (Pro and Enterprise, for customers who can't keep credentials on their own side): switch it on and we store the password encrypted, solely to restore the connection after a restart; switch it off and it is deleted immediately. To change a stored password, connect again with the new one: it replaces the stored one once the broker has accepted it. A password the broker refuses changes nothing, and leaving the password out uses the stored one.
curl -X POST https:// api.tickerall.com/ v1/ sessions \
-H "Authorization: Bearer cf_api_xxxx" \
-H "Content-Type: application/json" \
-d '{
"broker": "mt5",
"server": "Exness-MT5Trial14",
"account": 12345678,
"password": "your-broker-password",
"terminalType": "MOBILE"
}'
# terminalType is optional — "MOBILE" (default), "WEB", or "CLIENT" (desktop terminal). WEB/CLIENT require Pro or Enterprise.
# => { "accountId": "acc_8Kd3...", "isDemo": true, "status": "connected", ... } const API = "https:// api.tickerall.com";
const KEY = process.env.TICKERALL_KEY!;
const res = await fetch(`${API}/ v1/ sessions`, {
method: "POST",
headers: {
Authorization: `Bearer ${KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
broker: "mt5",
server: "Exness-MT5Trial14",
account: 12345678,
password: process.env.BROKER_PASSWORD,
// Optional terminal type: "MOBILE" (default), "WEB", or "CLIENT" (desktop terminal). WEB/CLIENT require Pro or Enterprise.
terminalType: "MOBILE",
}),
});
const { accountId } = await res.json(); import os, requests
API = "https:// api.tickerall.com"
KEY = os.environ["TICKERALL_KEY"]
res = requests.post(
f"{API}/ v1/ sessions",
headers={"Authorization": f"Bearer {KEY}"},
json={
"broker": "mt5",
"server": "Exness-MT5Trial14",
"account": 12345678,
"password": os.environ["BROKER_PASSWORD"],
# Optional terminal type: "MOBILE" (default), "WEB", or "CLIENT" (desktop terminal).
"terminalType": "MOBILE",
},
)
account_id = res.json()["accountId"] Use the accountId to read balance, equity, and open positions.
curl https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3... \
-H "Authorization: Bearer cf_api_xxxx"
# => { "status": "online", "account": { "balance": 9871.42, ... }, "positions": [...] } const res = await fetch(`${API}/ v1/ accounts/ ${accountId}`, {
headers: { Authorization: `Bearer ${KEY}` },
});
const data = await res.json();
console.log(data.account.balance, data.positions.length); res = requests.get(
f"{API}/ v1/ accounts/ {account_id}",
headers={"Authorization": f"Bearer {KEY}"},
)
data = res.json()
print(data["account"]["balance"], len(data["positions"])) State-changing calls require an Idempotency-Key header — a unique string per logical action, so a retried request never double-fires.
# Open a 0.10-lot BUY market order (note the unique Idempotency-Key)
curl -X POST https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3.../ orders \
-H "Authorization: Bearer cf_api_xxxx" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"type": "market",
"symbol": "BTCUSD",
"side": "BUY",
"volume": 0.10,
"stopLoss": 71000,
"takeProfit": 84000
}'
# => { "ticket": 4072808150, "status": "open", ... }
# Close it (ticket from the response above)
curl -X DELETE https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3.../ positions/4072808150 \
-H "Authorization: Bearer cf_api_xxxx" \
-H "Idempotency-Key: $(uuidgen)"
# => { "ticket": 4072808150, "closed": true, ... } import { randomUUID } from "node:crypto";
// Open
const open = await fetch(`${API}/ v1/ accounts/ ${accountId}/ orders`, {
method: "POST",
headers: {
Authorization: `Bearer ${KEY}`,
"Content-Type": "application/json",
"Idempotency-Key": randomUUID(),
},
body: JSON.stringify({
type: "market",
symbol: "BTCUSD",
side: "BUY",
volume: 0.1,
stopLoss: 71000,
takeProfit: 84000,
}),
});
const { ticket } = await open.json();
// Close
await fetch(`${API}/ v1/ accounts/ ${accountId}/ positions/ ${ticket}`, {
method: "DELETE",
headers: {
Authorization: `Bearer ${KEY}`,
"Idempotency-Key": randomUUID(),
},
}); import uuid
# Open
open_res = requests.post(
f"{API}/ v1/ accounts/ {account_id}/ orders",
headers={
"Authorization": f"Bearer {KEY}",
"Idempotency-Key": str(uuid.uuid4()),
},
json={
"type": "market",
"symbol": "BTCUSD",
"side": "BUY",
"volume": 0.10,
"stopLoss": 71000,
"takeProfit": 84000,
},
)
ticket = open_res.json()["ticket"]
# Close
requests.delete(
f"{API}/ v1/ accounts/ {account_id}/ positions/ {ticket}",
headers={
"Authorization": f"Bearer {KEY}",
"Idempotency-Key": str(uuid.uuid4()),
},
) Open the WebSocket and subscribe to the symbols you care about.
# curl can't speak WebSocket; use websocat (or any WS client).
# Install websocat: brew install websocat | cargo install websocat | apt install websocat
websocat "wss:// api.tickerall.com/ v1/ stream?token=cf_api_xxxx"
# then paste a subscribe frame:
{
"type": "subscribe",
"channels": [
{
"kind": "ticks",
"accountId": "acc_8Kd3...",
"symbols": ["BTCUSD"]
}
]
}
# server streams:
# {"type":"tick","symbol":"BTCUSD","bid":77512.73,"ask":77514.10,"timestamp":"..."} import WebSocket from "ws"; // browsers use the global WebSocket
const ws = new WebSocket(`${WS_BASE}/ v1/ stream`, {
headers: { Authorization: `Bearer ${KEY}` },
});
ws.on("open", () => {
ws.send(JSON.stringify({
type: "subscribe",
channels: [
{
kind: "ticks",
accountId,
symbols: ["BTCUSD", "ETHUSD"],
},
{
kind: "positions",
accountId,
},
],
}));
});
ws.on("message", (raw) => {
const msg = JSON.parse(raw.toString());
if (msg.type === "tick") console.log(msg.symbol, msg.bid, msg.ask);
// service notices (maintenance, news, announcements) arrive here too
if (msg.type === "event") console.log(msg.event.kind, msg.event.title);
}); # pip install websocket-client
import json, websocket
ws = websocket.create_connection(
"wss:// api.tickerall.com/ v1/ stream",
header=[f"Authorization: Bearer {KEY}"],
)
ws.send(json.dumps({
"type": "subscribe",
"channels": [
{
"kind": "ticks",
"accountId": account_id,
"symbols": ["BTCUSD"],
},
{
"kind": "positions",
"accountId": account_id,
},
],
}))
while True:
msg = json.loads(ws.recv())
if msg["type"] == "tick":
print(msg["symbol"], msg["bid"], msg["ask"])
# service notices (maintenance, news, announcements) arrive here too
elif msg["type"] == "event":
print(msg["event"]["kind"], msg["event"]["title"]) Run the same action over many accounts in one call, then read all their state at once. Every bulk call reports each account's outcome separately, so a partial success is clear. Requires a Pro or Enterprise plan.
# Place the same 0.10-lot BUY across TWO accounts in one call (Pro/Enterprise)
curl -X POST https:// api.tickerall.com/ v1/ bulk/ orders \
-H "Authorization: Bearer cf_api_xxxx" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"orders": [
{
"accountId": "acc_8Kd3...",
"symbol": "BTCUSD",
"side": "BUY",
"volume": 0.10
},
{
"accountId": "acc_9Lm4...",
"symbol": "BTCUSD",
"side": "BUY",
"volume": 0.10
}
]
}'
# => { "results": [ { "accountId": "acc_8Kd3...", "status": "filled", ... }, ... ],
# "summary": { "total": 2, "filled": 2, "failed": 0 } }
# Read live state for many accounts in one call
curl "https:// api.tickerall.com/ v1/ bulk/ accounts?ids=acc_8Kd3...,acc_9Lm4..." \
-H "Authorization: Bearer cf_api_xxxx"
# => { "accounts": [ { "id": "acc_8Kd3...", "status": "online", ... }, ... ],
# "summary": { "total": 2, "online": 2, "offline": 0 } } // Place the same order across two accounts (Pro/Enterprise)
const placed = await client.bulk.place([
{
accountId: "acc_8Kd3...",
symbol: "BTCUSD",
side: "BUY",
volume: 0.1,
},
{
accountId: "acc_9Lm4...",
symbol: "BTCUSD",
side: "BUY",
volume: 0.1,
},
]);
console.log(placed.summary); // { total: 2, filled: 2, failed: 0 }
// Read live state for many accounts in one call
const state = await client.bulk.readAccounts({ ids: ["acc_8Kd3...", "acc_9Lm4..."] });
for (const a of state.accounts) {
console.log(a.id, a.status, a.account?.balance);
} # Place the same order across two accounts (Pro/Enterprise)
placed = client.bulk.place([
{
"accountId": "acc_8Kd3...",
"symbol": "BTCUSD",
"side": "BUY",
"volume": 0.1,
},
{
"accountId": "acc_9Lm4...",
"symbol": "BTCUSD",
"side": "BUY",
"volume": 0.1,
},
])
print(placed.summary) # {"total": 2, "filled": 2, "failed": 0}
# Read live state for many accounts in one call
state = client.bulk.read_accounts(ids=["acc_8Kd3...", "acc_9Lm4..."])
for a in state.accounts:
print(a.id, a.status) Authentication #authentication
Every request authenticates with a TickerAll API key sent as a bearer token. Sign up, open API keys in your dashboard, and create a key — it looks like cf_api_…. Treat it like a password; it carries the access of your whole account.
Authorization: Bearer cf_api_xxxxxxxxxxxxxxxxxxxx Send this header on every REST call. For the WebSocket, send the same header on the upgrade request, or pass ?token=<key> in the URL where headers are awkward (e.g. browser clients).
A missing or invalid key returns 401 UNAUTHORIZED. Keys are validated on our side; revoking a key from the dashboard takes effect within a few minutes.
- Read-only keys.
- When creating a key you can mark it Read-only — a data-only credential. It reads everything (accounts, symbols, candles, positions, history, the stream) and can connect accounts with
POST /v1/sessions. Every trade call returns403 FORBIDDEN. Ideal for backtesting, analytics, or any integration that should never place orders. A full-access (default) key can trade. - Isolated keys.
- A key marked Isolated sees only the accounts it connected, and no other key sees them. Keys that are not isolated share one pool of accounts. The dashboard always shows every account. A broker login is linked once: connecting one that another of your keys holds out of this key's sight returns
409 BROKER_ACCOUNT_HELD_BY_ANOTHER_KEY. Move an account between the shared pool and an isolated key withPOST /v1/accounts/:id/migrate-key(full-access key or dashboard). - Removing accounts with a read-only key.
- A read-only key cannot trade, but it can manage the accounts it can see:
DELETE /v1/accounts/:id,DELETE /v1/sessions/:accountIdandPATCH /v1/accounts/:id/always-hot. A shared read-only key sees the shared pool; an isolated read-only key sees only the accounts it owns. - Investor-only keys.
- A key marked Investor-only is always read-only and connects only investor-password (read-only) broker logins. Everything above about read-only keys applies to it unchanged.
Postman & Insomnia #collections
Prefer a GUI client? Import a ready-made collection — every REST endpoint below, with the Authorization bearer token wired up, an auto-generated Idempotency-Key on every write, example request bodies, and an example response on each call. Set two variables and start sending. Download the file, or use the Copy to clipboard option and paste it straight into the app.
Each block below has both, and so does each tool's menu at the top of the page: Download file for saving the .json file, and Copy to clipboard — then paste it straight into Postman or Insomnia, no file needed.
Postman
- 1Import, then drop in the file, or Raw text, then paste the copied JSON.
- 2Open the collection’s Variables and set
apiKeyto yourcf_api_…key. - 3Run Open a broker session, then set
accountId(andticketonce you have one).
Insomnia
- 1Import, then From File, or From Clipboard after copying.
- 2Open Manage Environments and set
apiKey, thenaccountId. - 3The realtime feed is included as a ready WebSocket request.
baseUrl and wsBaseUrl come pre-filled. The WebSocket connect URL and subscribe frame are bundled in too — as a runnable request in Insomnia, and documented in the WebSocket (realtime) folder in Postman. Conventions #conventions
The rules every call follows.
- Base URLs
- REST:
https://api.tickerall.com, WebSocket:wss://api.tickerall.com/v1/stream - Content type
- Request and response bodies are JSON. Send
Content-Type: application/jsonon calls with a body. - Timestamps & numbers
- Timestamps are ISO-8601 UTC strings. Tickets are integers. Prices and volumes are JSON numbers (lots for volume, e.g.
0.10).
Every state-changing call (POST orders, DELETE / PATCH positions) requires an Idempotency-Key: <unique-string> header. We store (key, response) for 24 hours; resending the same key with the same request replays the original response without re-executing.
A key identifies one request: re-using it with a different body or endpoint is a 409 IDEMPOTENCY_KEY_REUSED — nothing is replayed or executed. Omitting the header is a VALIDATION_ERROR. Use a fresh UUID per logical action.
Only a successful (2xx) response is stored: after an error the same key is sent again. That matters for 409 TRADE_UNCONFIRMED — the request reached the broker but its outcome is unknown — so check your positions or orders before retrying it; a retry with the same key can execute a second time.
Limits are per API key, counted in a one-minute window that starts at your first call: 300 order writes (placing orders, cancelling or modifying pending orders, and the bulk order calls — a bulk call counts once, however many accounts it covers), 600 candle and history calls, 120 POST /v1/sessions, and 2,000 for everything else, including closing or modifying a position.
Over a limit you get 429 rate_limited; wait for the minute to reset. For prices, positions and orders, use the WebSocket instead of polling.
We keep a broker connection “hot” for a window after you start a session. If it cools, calls return 409 BROKER_ACCOUNT_NOT_HOT — just POST /v1/sessions again to re-warm it.
Both platforms connect, stream live prices, report open positions and trade. On MT4, /history returns the account's closed trades and /balance-operations its deposits, withdrawals and credit, for the whole account, on the first read after connecting. coverage: "partial" appears only when the history could not be read in or history loading has been limited to a recent window.
MT4 keeps one record per closed trade: /orders-history lists each closed trade as one row together with the pending orders that were cancelled, and /deals-history is MT5-only (501 on MT4).
MT4 candles cover the recent bars the connection holds; a request that reaches further back reports coverage: "partial". /symbols/:symbol/quote returns 404 on MT4.
Sessions #sessions
A session is a warm, authenticated connection to one broker account. Start one to get an accountId; delete it to disconnect.
Connect a broker account. We authenticate and warm a live connection, then hand back an accountId — the handle for THIS broker connection. One API key can hold several broker accounts, so the id lives in this response (and in GET /v1/accounts), NOT in the key. Use it in every later /v1/accounts/:id call. By default your password is held in memory only while the connection is live, never saved to disk; the one exception is the opt-in remembered-credentials setting (Pro and Enterprise, PATCH /v1/remember-password), which stores it encrypted solely to restore the connection after a restart.
curl -X POST https:// api.tickerall.com/ v1/ sessions \
-H "Authorization: Bearer cf_api_xxxx" \
-H "Content-Type: application/json" \
-d '{
"broker": "mt5",
"server": "Exness-MT5Trial14",
"account": 12345678,
"password": "your-broker-password"
}' const res = await fetch("https:// api.tickerall.com/ v1/ sessions", {
method: "POST",
headers: {
Authorization: "Bearer cf_api_xxxx",
"Content-Type": "application/json",
},
body: JSON.stringify({
broker: "mt5",
server: "Exness-MT5Trial14",
account: 12345678,
password: "your-broker-password",
}),
});
const data = await res.json(); import requests
res = requests.post(
"https:// api.tickerall.com/ v1/ sessions",
headers={
"Authorization": "Bearer cf_api_xxxx",
},
json={
"broker": "mt5",
"server": "Exness-MT5Trial14",
"account": 12345678,
"password": "your-broker-password",
},
)
data = res.json() {
"accountId": "acc_8Kd3...",
"isDemo": true,
"status": "connected",
"expiresAt": "2026-05-22T18:42:10.000Z"
} Disconnect a broker account and release its connection. Returns no body.
curl -X DELETE https:// api.tickerall.com/ v1/ sessions/ acc_8Kd3... \
-H "Authorization: Bearer cf_api_xxxx" await fetch("https:// api.tickerall.com/ v1/ sessions/ acc_8Kd3...", {
method: "DELETE",
headers: {
Authorization: "Bearer cf_api_xxxx",
},
}); import requests
requests.delete(
"https:// api.tickerall.com/ v1/ sessions/ acc_8Kd3...",
headers={
"Authorization": "Bearer cf_api_xxxx",
},
) (empty body) Accounts #accounts
List your connected accounts, or fetch one account’s live financials and open positions.
List every broker account attached to your API key, with connection state.
curl https:// api.tickerall.com/ v1/ accounts \
-H "Authorization: Bearer cf_api_xxxx" const res = await fetch("https:// api.tickerall.com/ v1/ accounts", {
headers: {
Authorization: "Bearer cf_api_xxxx",
},
});
const data = await res.json(); import requests
res = requests.get(
"https:// api.tickerall.com/ v1/ accounts",
headers={
"Authorization": "Bearer cf_api_xxxx",
},
)
data = res.json() [
{
"id": "acc_8Kd3...",
"broker": "mt5",
"server": "Exness-MT5Trial14",
"accountNumber": "****5678",
"isDemo": true,
"name": "John Trader",
"alias": "Scalping bot",
"group": "demo\\Standard",
"status": "CONNECTED",
"hot": true,
"marginMode": "netting",
"alwaysHot": false,
"credentialRejectedAt": null,
"lastHotAt": "2026-05-22T18:30:01.000Z",
"createdAt": "2026-05-20T09:11:55.000Z"
}
] Live account info — balance, equity, margin, leverage — plus the current open positions and pending orders.
curl https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3... \
-H "Authorization: Bearer cf_api_xxxx" const res = await fetch("https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3...", {
headers: {
Authorization: "Bearer cf_api_xxxx",
},
});
const data = await res.json(); import requests
res = requests.get(
"https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3...",
headers={
"Authorization": "Bearer cf_api_xxxx",
},
)
data = res.json() {
"id": "acc_8Kd3...",
"broker": "mt5",
"server": "Exness-MT5Trial14",
"accountNumber": "****5678",
"isDemo": true,
"name": "John Trader",
"alias": "Scalping bot",
"credentialRejectedAt": null,
"status": "online",
"account": {
"name": "Demo Account 12345678",
"accountType": "demo",
"group": "demo\\Standard",
"leverage": 500,
"balance": 9871.42,
"currency": "USD",
"equity": 9863.10,
"margin": 142.50,
"freeMargin": 9720.60,
"marginLevel": 6921.5,
"credit": null,
"isCent": false,
"cent": null,
"serverTimeOffsetSeconds": 0
},
"positions": [
{
"ticket": 4072808150,
"symbol": "BTCUSD",
"side": "BUY",
"volume": 0.10,
"entryPrice": 77512.73,
"stopLoss": 71000,
"takeProfit": 84000,
"currentPrice": 77640.10,
"profit": 12.74,
"swap": 0,
"commission": 0,
"comment": "my-strategy",
"magic": 0,
"openTime": "2026-05-22T17:55:03.000Z",
"brokerOpenTime": "2026-05-22T17:55:03+00:00"
}
],
"orders": [
{
"ticket": "4072809988",
"symbol": "BTCUSD",
"type": "BUY_LIMIT",
"side": "BUY",
"orderType": "LIMIT",
"volume": 0.10,
"price": 68000,
"limitPrice": null,
"stopLoss": 66000,
"takeProfit": 72000,
"setTime": "2026-08-14T09:12:44.000Z",
"expirationTime": null,
"timeType": "GTC",
"comment": "",
"magic": 0
}
],
"ordersCount": 1,
"ordersTruncated": false
} The account’s current open positions — the dedicated positions feed. Each row carries entry price, volume, live P&L and SL/TP; it is the same array GET /v1/accounts/:id embeds, with a brokerOpenTime twin per row and serverTimeOffsetSeconds on the envelope.
curl https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3.../ positions \
-H "Authorization: Bearer cf_api_xxxx" const res = await fetch("https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3.../ positions", {
headers: {
Authorization: "Bearer cf_api_xxxx",
},
});
const data = await res.json(); import requests
res = requests.get(
"https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3.../ positions",
headers={
"Authorization": "Bearer cf_api_xxxx",
},
)
data = res.json() {
"accountId": "acc_8Kd3...",
"positions": [
{
"ticket": 4072808150,
"symbol": "BTCUSD",
"side": "BUY",
"volume": 0.10,
"entryPrice": 77512.73,
"stopLoss": 71000,
"takeProfit": 84000,
"currentPrice": 77640.10,
"profit": 12.74,
"swap": 0,
"commission": 0,
"comment": "my-strategy",
"magic": 0,
"openTime": "2026-05-22T17:55:03.000Z",
"brokerOpenTime": "2026-05-22T17:55:03+00:00"
}
],
"serverTimeOffsetSeconds": 0
} Remove a broker account from your roster. We disconnect its live connection and drop it from your account list and from billing — this does NOT touch the broker account itself or any open positions. Reversible: reconnect the same login with POST /v1/sessions to re-add it.
curl -X DELETE https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3... \
-H "Authorization: Bearer cf_api_xxxx" const res = await fetch("https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3...", {
method: "DELETE",
headers: {
Authorization: "Bearer cf_api_xxxx",
},
});
const data = await res.json(); import requests
res = requests.delete(
"https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3...",
headers={
"Authorization": "Bearer cf_api_xxxx",
},
)
data = res.json() {
"id": "acc_8Kd3...",
"status": "DISCONNECTED",
"removed": true,
"existed": true,
"billableCount": 0
} Switch which terminal type the account presents AS ("MOBILE" or "WEB"). Your open positions, pending orders and balance live on the broker account, not the connection, so they are preserved across the switch.
Idempotency-Key State-changing call: send a unique Idempotency-Key header.
curl -X POST https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3.../ migrate \
-H "Authorization: Bearer cf_api_xxxx" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"to": "2026-05-29"
}' import { randomUUID } from "node:crypto";
const res = await fetch("https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3.../ migrate", {
method: "POST",
headers: {
Authorization: "Bearer cf_api_xxxx",
"Content-Type": "application/json",
"Idempotency-Key": randomUUID(),
},
body: JSON.stringify({
to: "2026-05-29",
}),
});
const data = await res.json(); import uuid
import requests
res = requests.post(
"https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3.../ migrate",
headers={
"Authorization": "Bearer cf_api_xxxx",
"Idempotency-Key": str(uuid.uuid4()),
},
json={
"to": "2026-05-29",
},
)
data = res.json() {
"id": "acc_8Kd3...",
"terminalType": "MOBILE",
"status": "noop"
} Move a broker account between the shared pool and an isolated API key, in place. Pass an isolated API key id to move the account under that key (only that key, plus the dashboard, then sees it), or null to move it back to the shared pool. The connection is never dropped — a warm account stays warm, positions/orders/balance untouched.
Idempotency-Key State-changing call: send a unique Idempotency-Key header.
curl -X POST https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3.../ migrate-key \
-H "Authorization: Bearer cf_api_xxxx" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"ownerApiKeyId": "..."
}' import { randomUUID } from "node:crypto";
const res = await fetch("https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3.../ migrate-key", {
method: "POST",
headers: {
Authorization: "Bearer cf_api_xxxx",
"Content-Type": "application/json",
"Idempotency-Key": randomUUID(),
},
body: JSON.stringify({
ownerApiKeyId: "...",
}),
});
const data = await res.json(); import uuid
import requests
res = requests.post(
"https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3.../ migrate-key",
headers={
"Authorization": "Bearer cf_api_xxxx",
"Idempotency-Key": str(uuid.uuid4()),
},
json={
"ownerApiKeyId": "...",
},
)
data = res.json() {
"id": "acc_8Kd3...",
"ownerApiKeyId": "key_7Qf2...",
"isolated": true,
"hot": true,
"migrated": true
} Keep one account’s connection warm 24/7: skips the idle cool-down so the session stays up between your calls. Broker-side drops reconnect automatically on every account regardless; always-hot only removes the idle timeout. Off by default. Trader ($0.99/mo per connection) or Pro / Enterprise (included).
Idempotency-Key State-changing call: send a unique Idempotency-Key header.
curl -X PATCH https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3.../ always-hot \
-H "Authorization: Bearer cf_api_xxxx" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"enabled": "..."
}' import { randomUUID } from "node:crypto";
const res = await fetch("https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3.../ always-hot", {
method: "PATCH",
headers: {
Authorization: "Bearer cf_api_xxxx",
"Content-Type": "application/json",
"Idempotency-Key": randomUUID(),
},
body: JSON.stringify({
enabled: "...",
}),
});
const data = await res.json(); import uuid
import requests
res = requests.patch(
"https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3.../ always-hot",
headers={
"Authorization": "Bearer cf_api_xxxx",
"Idempotency-Key": str(uuid.uuid4()),
},
json={
"enabled": "...",
},
)
data = res.json() {
"id": "acc_8Kd3...",
"alwaysHot": true,
"effective": true,
"appliedLive": true,
"billableCount": 1
} Account-wide always-hot: every eligible connection defaults to warm. Same semantics as the per-account toggle, applied live to all held sessions.
Idempotency-Key State-changing call: send a unique Idempotency-Key header.
curl -X PATCH https:// api.tickerall.com/ v1/ always-hot \
-H "Authorization: Bearer cf_api_xxxx" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"enabled": "..."
}' import { randomUUID } from "node:crypto";
const res = await fetch("https:// api.tickerall.com/ v1/ always-hot", {
method: "PATCH",
headers: {
Authorization: "Bearer cf_api_xxxx",
"Content-Type": "application/json",
"Idempotency-Key": randomUUID(),
},
body: JSON.stringify({
enabled: "...",
}),
});
const data = await res.json(); import uuid
import requests
res = requests.patch(
"https:// api.tickerall.com/ v1/ always-hot",
headers={
"Authorization": "Bearer cf_api_xxxx",
"Idempotency-Key": str(uuid.uuid4()),
},
json={
"enabled": "...",
},
)
data = res.json() {
"accountWide": true,
"billableCount": 3
} Always-hot accounts that currently have no live connection and need a credentials refresh — typically after a TickerAll maintenance restart dropped the in-memory password. Empty means nothing needs attention.
curl https:// api.tickerall.com/ v1/ always-hot/ pending \
-H "Authorization: Bearer cf_api_xxxx" const res = await fetch("https:// api.tickerall.com/ v1/ always-hot/ pending", {
headers: {
Authorization: "Bearer cf_api_xxxx",
},
});
const data = await res.json(); import requests
res = requests.get(
"https:// api.tickerall.com/ v1/ always-hot/ pending",
headers={
"Authorization": "Bearer cf_api_xxxx",
},
)
data = res.json() {
"pending": [
{ "id": "acc_8Kd3...", "broker": "mt5", "server": "Exness-MT5Trial14", "accountNumber": "****5678" }
]
} Status of remembered credentials — the one opt-in exception to TickerAll’s rule of never storing broker passwords. Available on Pro and Enterprise, for customers who cannot keep credentials on their own side.
curl https:// api.tickerall.com/ v1/ remember-password \
-H "Authorization: Bearer cf_api_xxxx" const res = await fetch("https:// api.tickerall.com/ v1/ remember-password", {
headers: {
Authorization: "Bearer cf_api_xxxx",
},
});
const data = await res.json(); import requests
res = requests.get(
"https:// api.tickerall.com/ v1/ remember-password",
headers={
"Authorization": "Bearer cf_api_xxxx",
},
)
data = res.json() {
"accountWide": false,
"eligible": true,
"tier": "PRO",
"remembered": 0,
"armed": 0
} Turn remembered credentials on or off for ALL your accounts. On: each account’s password is sealed in an encrypted vault (AES-256-GCM) on its next connect and used solely to restore the connection after a TickerAll restart; your consent text is recorded. Off: every stored password is purged immediately.
Idempotency-Key State-changing call: send a unique Idempotency-Key header.
curl -X PATCH https:// api.tickerall.com/ v1/ remember-password \
-H "Authorization: Bearer cf_api_xxxx" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"enabled": "..."
}' import { randomUUID } from "node:crypto";
const res = await fetch("https:// api.tickerall.com/ v1/ remember-password", {
method: "PATCH",
headers: {
Authorization: "Bearer cf_api_xxxx",
"Content-Type": "application/json",
"Idempotency-Key": randomUUID(),
},
body: JSON.stringify({
enabled: "...",
}),
});
const data = await res.json(); import uuid
import requests
res = requests.patch(
"https:// api.tickerall.com/ v1/ remember-password",
headers={
"Authorization": "Bearer cf_api_xxxx",
"Idempotency-Key": str(uuid.uuid4()),
},
json={
"enabled": "...",
},
)
data = res.json() {
"accountWide": true
} Symbols #symbols
Discover the instruments you can trade on an account, in the broker’s native names.
Choose remembered credentials for ONE account, overriding the account-wide setting. on: remember this account’s password even with the account-wide switch off. off: never remember it, even with the switch on, and destroy what is stored now. inherit: follow the account-wide switch again.
Idempotency-Key State-changing call: send a unique Idempotency-Key header.
curl -X PATCH https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3.../ remember-password \
-H "Authorization: Bearer cf_api_xxxx" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"choice": "..."
}' import { randomUUID } from "node:crypto";
const res = await fetch("https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3.../ remember-password", {
method: "PATCH",
headers: {
Authorization: "Bearer cf_api_xxxx",
"Content-Type": "application/json",
"Idempotency-Key": randomUUID(),
},
body: JSON.stringify({
choice: "...",
}),
});
const data = await res.json(); import uuid
import requests
res = requests.patch(
"https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3.../ remember-password",
headers={
"Authorization": "Bearer cf_api_xxxx",
"Idempotency-Key": str(uuid.uuid4()),
},
json={
"choice": "...",
},
)
data = res.json() {
"id": "cmabc123",
"rememberChoice": "off",
"effective": false,
"stored": false,
"pendingPurge": 0
} Set (or clear) your own custom alias for one account. The alias is stored server-side, so it is the same across every API key and device, and it comes back as alias on GET /v1/accounts and GET /v1/accounts/:id. It does not change the broker’s display name (name) or the account id.
curl -X PATCH https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3.../ alias \
-H "Authorization: Bearer cf_api_xxxx" \
-H "Content-Type: application/json" \
-d '{
"alias": "..."
}' const res = await fetch("https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3.../ alias", {
method: "PATCH",
headers: {
Authorization: "Bearer cf_api_xxxx",
"Content-Type": "application/json",
},
body: JSON.stringify({
alias: "...",
}),
});
const data = await res.json(); import requests
res = requests.patch(
"https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3.../ alias",
headers={
"Authorization": "Bearer cf_api_xxxx",
},
json={
"alias": "...",
},
)
data = res.json() {
"id": "acc_8Kd3...",
"alias": "Scalping bot"
} List tradeable symbols on the account, in the broker’s native names (pass-through, no normalization). symbols is the full catalog; watched is the subset that is actively streaming live ticks right now.
curl https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3.../ symbols \
-H "Authorization: Bearer cf_api_xxxx" const res = await fetch("https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3.../ symbols", {
headers: {
Authorization: "Bearer cf_api_xxxx",
},
});
const data = await res.json(); import requests
res = requests.get(
"https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3.../ symbols",
headers={
"Authorization": "Bearer cf_api_xxxx",
},
)
data = res.json() {
"symbols": ["BTCUSD", "ETHUSD", "EURUSD", "GOLD", "USOILm", "..."],
"watched": ["BTCUSD", "ETHUSD", "EURUSD"]
} Per-symbol trading specs for the account: the volume constraints (min / max / step) for validating an order size before placing it, the price geometry (digits, point, tickSize) and contract maths (contractSize, tickValue, tickValueAccount) for sizing risk per tick, the broker’s stop and freeze levels, and the base, profit (quote) and margin currency for each instrument. Available on MT4 and MT5; see the note on which MT4 values are typical rather than broker-published.
curl https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3.../ symbol-specs \
-H "Authorization: Bearer cf_api_xxxx" const res = await fetch("https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3.../ symbol-specs", {
headers: {
Authorization: "Bearer cf_api_xxxx",
},
});
const data = await res.json(); import requests
res = requests.get(
"https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3.../ symbol-specs",
headers={
"Authorization": "Bearer cf_api_xxxx",
},
)
data = res.json() {
"specs": [
{
"name": "EURUSD",
"volumeMin": 0.01,
"volumeMax": 200.0,
"volumeStep": 0.01,
"specSource": "broker",
"digits": 5,
"point": 0.00001,
"tickSize": 0.00001,
"contractSize": 100000,
"tickValue": 1.0,
"tickValueAccount": 1.0,
"tickValueCurrency": { "code": "USD", "source": "wire" },
"stopLevel": 0,
"freezeLevel": 0,
"baseCurrency": "EUR",
"profitCurrency": "USD",
"marginCurrency": "EUR"
}
]
} The full trading spec for ONE symbol — the same object GET /v1/accounts/:id/symbol-specs returns per entry, for a single instrument. Cheaper than the full list when you only need the contract maths for the symbol you are about to trade: a warm account answers from its cached catalog. Available on MT4 and MT5.
curl https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3.../ symbols/ BTCUSD/ spec \
-H "Authorization: Bearer cf_api_xxxx" const res = await fetch("https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3.../ symbols/ BTCUSD/ spec", {
headers: {
Authorization: "Bearer cf_api_xxxx",
},
});
const data = await res.json(); import requests
res = requests.get(
"https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3.../ symbols/ BTCUSD/ spec",
headers={
"Authorization": "Bearer cf_api_xxxx",
},
)
data = res.json() {
"spec": {
"name": "EURUSD",
"volumeMin": 0.01,
"volumeMax": 200.0,
"volumeStep": 0.01,
"specSource": "broker",
"digits": 5,
"point": 0.00001,
"tickSize": 0.00001,
"contractSize": 100000,
"tickValue": 1.0,
"tickValueAccount": 1.0,
"tickValueCurrency": { "code": "USD", "source": "wire" },
"stopLevel": 0,
"freezeLevel": 0,
"baseCurrency": "EUR",
"profitCurrency": "USD",
"marginCurrency": "EUR"
}
} The current live bid and ask for one symbol. Candles are bid-only, so this is the way to read the ASK over REST — needed to compute a spread or to place a limit relative to the offer. MT5 only; an MT4 account returns 404.
curl https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3.../ symbols/ BTCUSD/ quote \
-H "Authorization: Bearer cf_api_xxxx" const res = await fetch("https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3.../ symbols/ BTCUSD/ quote", {
headers: {
Authorization: "Bearer cf_api_xxxx",
},
});
const data = await res.json(); import requests
res = requests.get(
"https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3.../ symbols/ BTCUSD/ quote",
headers={
"Authorization": "Bearer cf_api_xxxx",
},
)
data = res.json() {
"symbol": "EURUSD",
"bid": 1.07241,
"ask": 1.07249
} The current live bid and ask for MANY symbols in one call, so a watchlist doesn’t make one request per symbol. Pass symbols as a comma-separated query parameter (up to 50). MT5 only; an MT4 account returns 404.
curl "https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3.../ quotes?symbols=..." \
-H "Authorization: Bearer cf_api_xxxx" const res = await fetch("https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3.../ quotes?symbols=...", {
headers: {
Authorization: "Bearer cf_api_xxxx",
},
});
const data = await res.json(); import requests
res = requests.get(
"https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3.../ quotes",
headers={
"Authorization": "Bearer cf_api_xxxx",
},
params={
"symbols": "...",
},
)
data = res.json() {
"quotes": [
{ "symbol": "EURUSD", "bid": 1.07241, "ask": 1.07249 },
{ "symbol": "GBPUSD", "bid": 1.26610, "ask": 1.26624 }
],
"unknown": ["NOTASYMBOL"]
} Candles & history #candles
Historical OHLC bars are included on every plan — no extra charge. The public endpoint GET /v1/public/candles (no API key required) returns bars at any of nine timeframes: M1, M5, M15, M30, H1, H4, D1, W1, MN1. Coarser timeframes reach further back — daily bars reach back years; a single request returns as much as fits in a few seconds.
The authed GET /v1/accounts/:id/candles takes either a look-back window (hours) or an exact date range (from + to). from and to accept ISO-8601 (2026-11-09T14:00:00Z), Unix seconds (1794232800) or Unix milliseconds (1794232800000) — the same formats as the history endpoints. Every response reports how much of the requested window was actually served via coverage and truncated. An empty candles list with 200 means there are no bars in that range (for example, the market was closed).
Fetch historical OHLC bars from your connected broker, for any symbol the broker streams on this account. Two modes: a look-back window (hours) returns the most-recent N hours of bars, or a date range (from + to, ISO-8601) returns the exact [from, to] window. Coarser timeframes (H4, D1, W1, MN1) reach much further back — daily bars typically cover years of history. Every response reports how much of the requested window was actually served (coverage / truncated).
curl "https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3.../ candles?symbol=BTCUSD" \
-H "Authorization: Bearer cf_api_xxxx" const res = await fetch("https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3.../ candles?symbol=BTCUSD", {
headers: {
Authorization: "Bearer cf_api_xxxx",
},
});
const data = await res.json(); import requests
res = requests.get(
"https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3.../ candles",
headers={
"Authorization": "Bearer cf_api_xxxx",
},
params={
"symbol": "BTCUSD",
},
)
data = res.json() {
"symbol": "BTCUSD",
"hours": 17520,
"timeframe": "D1",
"candles": [
{ "timestamp": 1747699200, "open": 104200.10, "high": 107840.55, "low": 103520.00, "close": 106910.73, "bid": 106910.73 },
{ "timestamp": 1747785600, "open": 106910.73, "high": 108100.00, "low": 105480.20, "close": 107512.40, "bid": 107512.40 }
],
"served": { "from": "2025-05-20T00:00:00.000Z", "to": "2025-05-21T00:00:00.000Z" },
"count": 2,
"coverage": "complete",
"truncated": false,
"stopReason": "floor"
} Unauthenticated read of the always-on demo feed — powers the sparklines and chart on tickerall.com. Limited to TickerAll’s demo symbol list and only callable from tickerall.com (origin-gated). For arbitrary broker symbols from your own code, use GET /v1/accounts/:id/candles above.
curl "https:// api.tickerall.com/ v1/ public/ candles?symbol=BTCUSD" const res = await fetch("https:// api.tickerall.com/ v1/ public/ candles?symbol=BTCUSD");
const data = await res.json(); import requests
res = requests.get(
"https:// api.tickerall.com/ v1/ public/ candles",
params={
"symbol": "BTCUSD",
},
)
data = res.json() {
"symbol": "BTCUSD",
"hours": 17520,
"timeframe": "D1",
"candles": [
{ "timestamp": 1747699200, "open": 104200.10, "high": 107840.55, "low": 103520.00, "close": 106910.73, "bid": 106910.73 },
{ "timestamp": 1747785600, "open": 106910.73, "high": 108100.00, "low": 105480.20, "close": 107512.40, "bid": 107512.40 }
]
} Orders #orders
Place market or pending orders, close positions (full or partial), and modify stop-loss / take-profit. All three require an Idempotency-Key header.
Place a market order (fills immediately) or a pending limit/stop order (rests until price is hit).
Idempotency-Key State-changing call: send a unique Idempotency-Key header.
curl -X POST https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3.../ orders \
-H "Authorization: Bearer cf_api_xxxx" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"type": "market",
"symbol": "BTCUSD",
"side": "BUY",
"volume": 0.1,
"stopLoss": 71000,
"takeProfit": 84000
}' import { randomUUID } from "node:crypto";
const res = await fetch("https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3.../ orders", {
method: "POST",
headers: {
Authorization: "Bearer cf_api_xxxx",
"Content-Type": "application/json",
"Idempotency-Key": randomUUID(),
},
body: JSON.stringify({
type: "market",
symbol: "BTCUSD",
side: "BUY",
volume: 0.1,
stopLoss: 71000,
takeProfit: 84000,
}),
});
const data = await res.json(); import uuid
import requests
res = requests.post(
"https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3.../ orders",
headers={
"Authorization": "Bearer cf_api_xxxx",
"Idempotency-Key": str(uuid.uuid4()),
},
json={
"type": "market",
"symbol": "BTCUSD",
"side": "BUY",
"volume": 0.1,
"stopLoss": 71000,
"takeProfit": 84000,
},
)
data = res.json() {
"ticket": 4072808150,
"symbol": "BTCUSD",
"side": "BUY",
"type": "market",
"volume": 0.10,
"price": null,
"stopLoss": 71000,
"takeProfit": 84000,
"comment": "my-strategy",
"timeType": null,
"expirationTime": null,
"status": "open",
"timestamp": "2026-05-22T17:55:03.000Z"
} List the account’s working pending orders — LIMIT and STOP orders resting until their trigger price is hit. A market order is never pending: it becomes an open position immediately (see GET /v1/accounts/:id/positions). Returns an empty list when nothing is resting.
curl https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3.../ orders \
-H "Authorization: Bearer cf_api_xxxx" const res = await fetch("https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3.../ orders", {
headers: {
Authorization: "Bearer cf_api_xxxx",
},
});
const data = await res.json(); import requests
res = requests.get(
"https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3.../ orders",
headers={
"Authorization": "Bearer cf_api_xxxx",
},
)
data = res.json() {
"orders": [
{
"ticket": "4072809988",
"symbol": "BTCUSD",
"type": "BUY_LIMIT",
"side": "BUY",
"orderType": "LIMIT",
"volume": 0.10,
"price": 68000,
"limitPrice": null,
"stopLoss": 66000,
"takeProfit": 72000,
"setTime": "2026-08-14T09:12:44.000Z",
"expirationTime": null,
"timeType": "GTC",
"comment": "",
"magic": 0
}
]
} Cancel a resting pending order (LIMIT or STOP) by its ticket.
Idempotency-Key State-changing call: send a unique Idempotency-Key header.
curl -X DELETE https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3.../ orders/4072808150 \
-H "Authorization: Bearer cf_api_xxxx" \
-H "Idempotency-Key: $(uuidgen)" import { randomUUID } from "node:crypto";
const res = await fetch("https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3.../ orders/ 4072808150", {
method: "DELETE",
headers: {
Authorization: "Bearer cf_api_xxxx",
"Idempotency-Key": randomUUID(),
},
});
const data = await res.json(); import uuid
import requests
res = requests.delete(
"https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3.../ orders/ 4072808150",
headers={
"Authorization": "Bearer cf_api_xxxx",
"Idempotency-Key": str(uuid.uuid4()),
},
)
data = res.json() {
"ticket": 4072809988,
"symbol": "BTCUSD",
"side": "BUY",
"cancelled": true,
"timestamp": "2026-08-14T09:12:44.000Z"
} Modify a resting pending order’s trigger price, stop-loss or take-profit. Any field you omit is preserved at its current value.
Idempotency-Key State-changing call: send a unique Idempotency-Key header.
curl -X PATCH https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3.../ orders/4072808150 \
-H "Authorization: Bearer cf_api_xxxx" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"stopLoss": 71000,
"takeProfit": 84000
}' import { randomUUID } from "node:crypto";
const res = await fetch("https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3.../ orders/ 4072808150", {
method: "PATCH",
headers: {
Authorization: "Bearer cf_api_xxxx",
"Content-Type": "application/json",
"Idempotency-Key": randomUUID(),
},
body: JSON.stringify({
stopLoss: 71000,
takeProfit: 84000,
}),
});
const data = await res.json(); import uuid
import requests
res = requests.patch(
"https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3.../ orders/ 4072808150",
headers={
"Authorization": "Bearer cf_api_xxxx",
"Idempotency-Key": str(uuid.uuid4()),
},
json={
"stopLoss": 71000,
"takeProfit": 84000,
},
)
data = res.json() {
"ticket": 4072809988,
"symbol": "BTCUSD",
"side": "BUY",
"price": 66000,
"stopLoss": 64000,
"takeProfit": 72000,
"timestamp": "2026-08-14T09:12:44.000Z"
} Cancel every resting pending order on the account in one call, optionally narrowed by symbol, side and/or type. The server lists the pending orders once and cancels the matches in parallel.
Idempotency-Key State-changing call: send a unique Idempotency-Key header.
curl -X POST https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3.../ orders/ cancel-all \
-H "Authorization: Bearer cf_api_xxxx" \
-H "Idempotency-Key: $(uuidgen)" import { randomUUID } from "node:crypto";
const res = await fetch("https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3.../ orders/ cancel-all", {
method: "POST",
headers: {
Authorization: "Bearer cf_api_xxxx",
"Idempotency-Key": randomUUID(),
},
});
const data = await res.json(); import uuid
import requests
res = requests.post(
"https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3.../ orders/ cancel-all",
headers={
"Authorization": "Bearer cf_api_xxxx",
"Idempotency-Key": str(uuid.uuid4()),
},
)
data = res.json() {
"results": [
{ "ticket": 4072809988, "symbol": "BTCUSD", "side": "BUY", "status": "ok", "cancelled": true },
{ "ticket": 4072809991, "symbol": "BTCUSD", "side": "SELL", "status": "failed", "code": "BROKER_REJECTED", "reason": "Broker rejected the cancel." }
],
"summary": { "requested": 2, "ok": 1, "failed": 1 }
} Close an open position. Omit volume for a full close, or pass a smaller volume for a partial close.
Idempotency-Key State-changing call: send a unique Idempotency-Key header.
curl -X DELETE https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3.../ positions/4072808150 \
-H "Authorization: Bearer cf_api_xxxx" \
-H "Idempotency-Key: $(uuidgen)" import { randomUUID } from "node:crypto";
const res = await fetch("https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3.../ positions/ 4072808150", {
method: "DELETE",
headers: {
Authorization: "Bearer cf_api_xxxx",
"Idempotency-Key": randomUUID(),
},
});
const data = await res.json(); import uuid
import requests
res = requests.delete(
"https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3.../ positions/ 4072808150",
headers={
"Authorization": "Bearer cf_api_xxxx",
"Idempotency-Key": str(uuid.uuid4()),
},
)
data = res.json() {
"ticket": 4072808150,
"symbol": "BTCUSD",
"side": "BUY",
"volume": 0.10,
"closed": true,
"timestamp": "2026-05-22T18:10:44.000Z",
"closePrice": 81320.15,
"dealTicket": "1191098644",
"profit": -0.40,
"swap": 0,
"commission": 0
} Flatten the account — close every open position in one call, optionally narrowed by symbol and/or side. The server reads the account’s open positions once and closes the matches in parallel.
Idempotency-Key State-changing call: send a unique Idempotency-Key header.
curl -X POST https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3.../ positions/ close-all \
-H "Authorization: Bearer cf_api_xxxx" \
-H "Idempotency-Key: $(uuidgen)" import { randomUUID } from "node:crypto";
const res = await fetch("https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3.../ positions/ close-all", {
method: "POST",
headers: {
Authorization: "Bearer cf_api_xxxx",
"Idempotency-Key": randomUUID(),
},
});
const data = await res.json(); import uuid
import requests
res = requests.post(
"https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3.../ positions/ close-all",
headers={
"Authorization": "Bearer cf_api_xxxx",
"Idempotency-Key": str(uuid.uuid4()),
},
)
data = res.json() {
"results": [
{ "ticket": 4072808150, "symbol": "BTCUSD", "side": "BUY", "status": "ok", "closed": true, "closePrice": 81320.15, "dealTicket": "1191098644", "profit": -0.40, "swap": 0, "commission": 0 },
{ "ticket": 4072809002, "symbol": "BTCUSD", "side": "SELL", "status": "failed", "code": "BROKER_REJECTED", "reason": "Broker rejected the close." }
],
"summary": { "requested": 2, "ok": 1, "failed": 1 }
} Modify the stop-loss and/or take-profit of an open position, or remove one. Provide at least one of stopLoss / takeProfit; send 0 to clear a level rather than move it.
Idempotency-Key State-changing call: send a unique Idempotency-Key header.
curl -X PATCH https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3.../ positions/4072808150 \
-H "Authorization: Bearer cf_api_xxxx" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"stopLoss": 71000,
"takeProfit": 84000
}' import { randomUUID } from "node:crypto";
const res = await fetch("https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3.../ positions/ 4072808150", {
method: "PATCH",
headers: {
Authorization: "Bearer cf_api_xxxx",
"Content-Type": "application/json",
"Idempotency-Key": randomUUID(),
},
body: JSON.stringify({
stopLoss: 71000,
takeProfit: 84000,
}),
});
const data = await res.json(); import uuid
import requests
res = requests.patch(
"https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3.../ positions/ 4072808150",
headers={
"Authorization": "Bearer cf_api_xxxx",
"Idempotency-Key": str(uuid.uuid4()),
},
json={
"stopLoss": 71000,
"takeProfit": 84000,
},
)
data = res.json() {
"ticket": 4072808150,
"symbol": "BTCUSD",
"side": "BUY",
"volume": 0.10,
"stopLoss": 72000,
"takeProfit": 85000,
"timestamp": "2026-05-22T18:12:09.000Z"
} OCO orders #oco
An OCO (one-cancels-other) pair is two pending orders where the first to fill cancels the other — for example a buy-stop above and a sell-stop below, to catch a breakout either way. Arm a pair, list an account’s groups, or cancel a whole armed group. OCO is on Pro and Enterprise; arming a pair takes the same Idempotency-Key header as placing an order.
Arm an OCO (one-cancels-other) pair: two pending orders where the first to FILL cancels the other — e.g. a buy-stop above and a sell-stop below to catch a breakout either way. Pro and Enterprise only.
Idempotency-Key State-changing call: send a unique Idempotency-Key header.
curl -X POST https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3.../ oco \
-H "Authorization: Bearer cf_api_xxxx" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"legs": "..."
}' import { randomUUID } from "node:crypto";
const res = await fetch("https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3.../ oco", {
method: "POST",
headers: {
Authorization: "Bearer cf_api_xxxx",
"Content-Type": "application/json",
"Idempotency-Key": randomUUID(),
},
body: JSON.stringify({
legs: "...",
}),
});
const data = await res.json(); import uuid
import requests
res = requests.post(
"https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3.../ oco",
headers={
"Authorization": "Bearer cf_api_xxxx",
"Idempotency-Key": str(uuid.uuid4()),
},
json={
"legs": "...",
},
)
data = res.json() {
"id": "cmwyuog730009n801xzazvc92",
"accountId": "cmwy3n2ea002lp401nkiv81zl",
"status": "armed",
"triggeredTicket": null,
"createdAt": "2026-11-27T11:06:20.000Z",
"resolvedAt": null,
"legs": [
{ "ticket": "4250308061", "symbol": "BTCUSD", "side": "BUY", "type": "stop", "volume": 0.01, "price": 61585.23, "stopLoss": null, "takeProfit": null, "status": "pending" },
{ "ticket": "4250308150", "symbol": "BTCUSD", "side": "SELL", "type": "stop", "volume": 0.01, "price": 60932.51, "stopLoss": null, "takeProfit": null, "status": "pending" }
]
} List this account’s OCO groups, newest first.
curl https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3.../ oco \
-H "Authorization: Bearer cf_api_xxxx" const res = await fetch("https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3.../ oco", {
headers: {
Authorization: "Bearer cf_api_xxxx",
},
});
const data = await res.json(); import requests
res = requests.get(
"https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3.../ oco",
headers={
"Authorization": "Bearer cf_api_xxxx",
},
)
data = res.json() {
"groups": [
{
"id": "cmwyuog730009n801xzazvc92",
"accountId": "cmwy3n2ea002lp401nkiv81zl",
"status": "triggered",
"triggeredTicket": "4250308061",
"createdAt": "2026-11-27T11:06:20.000Z",
"resolvedAt": "2026-11-27T11:06:31.000Z",
"legs": [
{ "ticket": "4250308061", "symbol": "BTCUSD", "side": "BUY", "type": "stop", "volume": 0.01, "price": 61585.23, "stopLoss": null, "takeProfit": null, "status": "filled" },
{ "ticket": "4250308150", "symbol": "BTCUSD", "side": "SELL", "type": "stop", "volume": 0.01, "price": 60932.51, "stopLoss": null, "takeProfit": null, "status": "cancelled" }
]
}
]
} Cancel a whole armed OCO group (both resting legs).
curl -X DELETE https:// api.tickerall.com/ v1/ oco/ <groupId> \
-H "Authorization: Bearer cf_api_xxxx" const res = await fetch("https:// api.tickerall.com/ v1/ oco/ <groupId>", {
method: "DELETE",
headers: {
Authorization: "Bearer cf_api_xxxx",
},
});
const data = await res.json(); import requests
res = requests.delete(
"https:// api.tickerall.com/ v1/ oco/ <groupId>",
headers={
"Authorization": "Bearer cf_api_xxxx",
},
)
data = res.json() { "groupId": "cmwyuog730009n801xzazvc92", "cancelled": true } Expiring positions #expirations
Schedule an open position to close by itself at a wall-clock time (options-style expiry). The server closes it at expireAt; setting one again replaces it. Schedule or clear the expiry of a position, list an account’s expirations, or cancel one by its id. Expiring positions are on Pro and Enterprise.
This is separate from the expiry of a pending order (good-till-date and DAY, the timeType field on Orders), which the broker enforces itself.
Schedule an open position to auto-close at a wall-clock time (options-style expiry). The server closes it at `expireAt` — durable and restart-safe. Setting one again replaces it. Pro and Enterprise only.
Idempotency-Key State-changing call: send a unique Idempotency-Key header.
curl -X POST https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3.../ positions/4072808150/ expiration \
-H "Authorization: Bearer cf_api_xxxx" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"expireAt": "..."
}' import { randomUUID } from "node:crypto";
const res = await fetch("https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3.../ positions/ 4072808150/ expiration", {
method: "POST",
headers: {
Authorization: "Bearer cf_api_xxxx",
"Content-Type": "application/json",
"Idempotency-Key": randomUUID(),
},
body: JSON.stringify({
expireAt: "...",
}),
});
const data = await res.json(); import uuid
import requests
res = requests.post(
"https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3.../ positions/ 4072808150/ expiration",
headers={
"Authorization": "Bearer cf_api_xxxx",
"Idempotency-Key": str(uuid.uuid4()),
},
json={
"expireAt": "...",
},
)
data = res.json() {
"id": "cmwyyv21f0001o4010m14lvva",
"accountId": "cmwy3n2ea002lp401nkiv81zl",
"ticket": "4250848142",
"closeAt": "2026-11-28T16:00:00.000Z",
"status": "scheduled",
"source": "manual",
"createdAt": "2026-11-27T12:37:30.000Z",
"resolvedAt": null
} Clear the scheduled auto-close on a position (if any).
curl -X DELETE https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3.../ positions/4072808150/ expiration \
-H "Authorization: Bearer cf_api_xxxx" const res = await fetch("https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3.../ positions/ 4072808150/ expiration", {
method: "DELETE",
headers: {
Authorization: "Bearer cf_api_xxxx",
},
});
const data = await res.json(); import requests
res = requests.delete(
"https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3.../ positions/ 4072808150/ expiration",
headers={
"Authorization": "Bearer cf_api_xxxx",
},
)
data = res.json() { "accountId": "cmwy3n2ea002lp401nkiv81zl", "ticket": "4250848142", "cancelled": true } List this account’s position-expiration schedules, newest first.
curl https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3.../ expirations \
-H "Authorization: Bearer cf_api_xxxx" const res = await fetch("https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3.../ expirations", {
headers: {
Authorization: "Bearer cf_api_xxxx",
},
});
const data = await res.json(); import requests
res = requests.get(
"https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3.../ expirations",
headers={
"Authorization": "Bearer cf_api_xxxx",
},
)
data = res.json() {
"expirations": [
{
"id": "cmwyyv21f0001o4010m14lvva",
"accountId": "cmwy3n2ea002lp401nkiv81zl",
"ticket": "4250848142",
"closeAt": "2026-11-28T16:00:00.000Z",
"status": "closed",
"source": "manual",
"createdAt": "2026-11-27T12:37:30.000Z",
"resolvedAt": "2026-11-28T16:00:03.000Z"
}
]
} Cancel a scheduled expiration by its id.
curl -X DELETE https:// api.tickerall.com/ v1/ expirations/ <expiryId> \
-H "Authorization: Bearer cf_api_xxxx" const res = await fetch("https:// api.tickerall.com/ v1/ expirations/ <expiryId>", {
method: "DELETE",
headers: {
Authorization: "Bearer cf_api_xxxx",
},
});
const data = await res.json(); import requests
res = requests.delete(
"https:// api.tickerall.com/ v1/ expirations/ <expiryId>",
headers={
"Authorization": "Bearer cf_api_xxxx",
},
)
data = res.json() { "id": "cmwyyv21f0001o4010m14lvva", "cancelled": true } Trade history #history
Your account’s closed-trade history — executed trades paired into round-trips (entry + exit) with realised P/L, the equivalent of MT5’s history_deals_get. Returns the recent window your broker provides on connect plus anything closed live during the session; filter by symbol and close-time range.
Closed-trade history for the account — executed trades paired into round-trips (entry + exit), the equivalent of MT5’s history_deals_get. Returns the recent window your broker provides on connect plus any trades closed live during the session. Filter by symbol and close-time range.
curl https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3.../ history \
-H "Authorization: Bearer cf_api_xxxx" const res = await fetch("https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3.../ history", {
headers: {
Authorization: "Bearer cf_api_xxxx",
},
});
const data = await res.json(); import requests
res = requests.get(
"https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3.../ history",
headers={
"Authorization": "Bearer cf_api_xxxx",
},
)
data = res.json() {
"trades": [
{
"ticket": "4072808150",
"symbol": "ETHUSD",
"side": "BUY",
"volume": 0.10,
"openPrice": 2500.50,
"closePrice": 2510.25,
"openTime": "2026-05-20T10:00:00.000Z",
"closeTime": "2026-05-20T12:30:00.000Z",
"brokerOpenTime": "2026-05-20T13:00:00+03:00",
"brokerCloseTime": "2026-05-20T15:30:00+03:00",
"profit": 0.98,
"swap": -0.12,
"commission": 0,
"stopLoss": 0,
"takeProfit": 0,
"closeTicket": "4072808151",
"complete": true
}
],
"count": 1,
"limit": 500,
"hasMore": false,
"nextCursor": null,
"serverTimeOffsetSeconds": 10800
} Individual deal fills for the account — one row per executed deal, the equivalent of MT5’s "Deals" view (while /history is the aggregated one-row-per-position "Positions" view). Each entry — the open, and every PARTIAL and full close — is its own row with its own ticket, time, price and volume. Filter by symbol and time range.
curl https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3.../ deals-history \
-H "Authorization: Bearer cf_api_xxxx" const res = await fetch("https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3.../ deals-history", {
headers: {
Authorization: "Bearer cf_api_xxxx",
},
});
const data = await res.json(); import requests
res = requests.get(
"https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3.../ deals-history",
headers={
"Authorization": "Bearer cf_api_xxxx",
},
)
data = res.json() {
"deals": [
{
"ticket": "1952757330",
"positionId": "2075644599",
"symbol": "BTCUSDm",
"side": "SELL",
"entry": "OUT",
"volume": 0.05,
"price": 81390.12,
"stopLoss": 81400,
"takeProfit": 83000,
"profit": -9.27,
"swap": 0,
"commission": -0.40,
"time": "2026-10-18T14:21:10.000Z",
"brokerTime": "2026-10-18T17:21:10+03:00"
}
],
"count": 1,
"limit": 500,
"hasMore": false,
"nextCursor": null,
"serverTimeOffsetSeconds": 10800
} Historical ORDERS for the account — one row per order that reached a final state (filled, cancelled, rejected, expired), the equivalent of MT5’s history orders. Distinct from /deals-history (the individual fills) and /history (the aggregated round-trips): this is the order-lifecycle view. On MT4 it lists each closed trade as one row plus the cancelled pending orders. Filter by symbol and time range.
curl https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3.../ orders-history \
-H "Authorization: Bearer cf_api_xxxx" const res = await fetch("https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3.../ orders-history", {
headers: {
Authorization: "Bearer cf_api_xxxx",
},
});
const data = await res.json(); import requests
res = requests.get(
"https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3.../ orders-history",
headers={
"Authorization": "Bearer cf_api_xxxx",
},
)
data = res.json() {
"orders": [
{
"orderTicket": "2075644598",
"positionId": "2075644599",
"symbol": "BTCUSDm",
"side": "BUY",
"volume": 0.10,
"price": 81555.00,
"state": "FILLED",
"fillingType": null,
"dealCount": 1,
"time": "2026-10-18T14:20:02.000Z",
"brokerTime": "2026-10-18T17:20:02+03:00"
},
{
"orderTicket": "2075601177",
"positionId": "0",
"symbol": "BTCUSDm",
"side": "BUY",
"volume": 0.10,
"price": 79000.00,
"state": "CANCELED",
"fillingType": "RETURN",
"dealCount": 0,
"time": "2026-10-09T08:02:41.000Z",
"brokerTime": "2026-10-09T11:02:41+03:00"
}
],
"count": 2,
"limit": 500,
"hasMore": false,
"nextCursor": null,
"serverTimeOffsetSeconds": 10800
} Balance operations for the account — money moving in or out (deposits, withdrawals, credits, charges, corrections, bonuses), kept separate from trades so a deposit is never summed as P/L. The equivalent of MT5’s DEAL_TYPE_BALANCE family. Newest-first, like every history route — reverse it to fold into an equity curve.
curl https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3.../ balance-operations \
-H "Authorization: Bearer cf_api_xxxx" const res = await fetch("https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3.../ balance-operations", {
headers: {
Authorization: "Bearer cf_api_xxxx",
},
});
const data = await res.json(); import requests
res = requests.get(
"https:// api.tickerall.com/ v1/ accounts/ acc_8Kd3.../ balance-operations",
headers={
"Authorization": "Bearer cf_api_xxxx",
},
)
data = res.json() {
"operations": [
{
"ticket": "4138294581",
"type": "deposit",
"dealType": 2,
"amount": 500,
"profit": 500,
"symbol": null,
"positionId": null,
"time": "2026-09-12T15:44:08.000Z",
"brokerTime": "2026-09-12T18:44:08+03:00",
"account": 434221754,
"comment": "Deposit"
}
],
"count": 1,
"limit": 500,
"hasMore": false,
"nextCursor": null,
"serverTimeOffsetSeconds": 10800,
"windowed": true
} Bulk operations #bulk
Execute one action across many of your accounts in a single request — place, close, modify, and cancel over a whole set of accounts, or read live state for your entire roster at once. Every bulk call reports each account’s outcome separately: a mix of successes and failures still returns 200, with a per-account results array and a summary tally, so a partial success is never ambiguous.
Bulk operations require a Pro or Enterprise plan; on the Free and Trader plans they return 403. The write calls take the same Idempotency-Key header as their single-account counterparts.
Place orders across many of your accounts in one request — one call fans out to every account you name, and each order’s outcome is reported separately. An account can appear more than once, so one call can send several legs to the same account. Requires a Pro or Enterprise plan.
Idempotency-Key State-changing call: send a unique Idempotency-Key header.
curl -X POST https:// api.tickerall.com/ v1/ bulk/ orders \
-H "Authorization: Bearer cf_api_xxxx" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"orders": [
{
"accountId": "acc_8Kd3...",
"type": "market",
"symbol": "BTCUSD",
"side": "BUY",
"volume": 0.1
},
{
"accountId": "acc_9Lm4...",
"type": "market",
"symbol": "BTCUSD",
"side": "BUY",
"volume": 0.1
}
]
}' import { randomUUID } from "node:crypto";
const res = await fetch("https:// api.tickerall.com/ v1/ bulk/ orders", {
method: "POST",
headers: {
Authorization: "Bearer cf_api_xxxx",
"Content-Type": "application/json",
"Idempotency-Key": randomUUID(),
},
body: JSON.stringify({
orders: [
{
accountId: "acc_8Kd3...",
type: "market",
symbol: "BTCUSD",
side: "BUY",
volume: 0.1,
},
{
accountId: "acc_9Lm4...",
type: "market",
symbol: "BTCUSD",
side: "BUY",
volume: 0.1,
},
],
}),
});
const data = await res.json(); import uuid
import requests
res = requests.post(
"https:// api.tickerall.com/ v1/ bulk/ orders",
headers={
"Authorization": "Bearer cf_api_xxxx",
"Idempotency-Key": str(uuid.uuid4()),
},
json={
"orders": [
{
"accountId": "acc_8Kd3...",
"type": "market",
"symbol": "BTCUSD",
"side": "BUY",
"volume": 0.1,
},
{
"accountId": "acc_9Lm4...",
"type": "market",
"symbol": "BTCUSD",
"side": "BUY",
"volume": 0.1,
},
],
},
)
data = res.json() {
"results": [
{ "accountId": "acc_8Kd3...", "status": "filled", "ticket": 4072808150, "price": 77512.73, "symbol": "BTCUSD" },
{ "accountId": "acc_9Lm4...", "status": "failed", "symbol": "BTCUSD", "code": "BROKER_REJECTED", "reason": "Not enough money" }
],
"summary": { "total": 2, "filled": 1, "failed": 1 }
} Close positions across many accounts in one request — either an explicit list of positions, or a per-account intent that flattens each account (optionally narrowed by its own broker-native symbol or side). Requires a Pro or Enterprise plan.
Idempotency-Key State-changing call: send a unique Idempotency-Key header.
curl -X POST https:// api.tickerall.com/ v1/ bulk/ positions/ close \
-H "Authorization: Bearer cf_api_xxxx" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"items": [
{
"accountId": "acc_8Kd3...",
"ticket": 4072808150
}
]
}' import { randomUUID } from "node:crypto";
const res = await fetch("https:// api.tickerall.com/ v1/ bulk/ positions/ close", {
method: "POST",
headers: {
Authorization: "Bearer cf_api_xxxx",
"Content-Type": "application/json",
"Idempotency-Key": randomUUID(),
},
body: JSON.stringify({
items: [
{
accountId: "acc_8Kd3...",
ticket: 4072808150,
},
],
}),
});
const data = await res.json(); import uuid
import requests
res = requests.post(
"https:// api.tickerall.com/ v1/ bulk/ positions/ close",
headers={
"Authorization": "Bearer cf_api_xxxx",
"Idempotency-Key": str(uuid.uuid4()),
},
json={
"items": [
{
"accountId": "acc_8Kd3...",
"ticket": 4072808150,
},
],
},
)
data = res.json() {
"results": [
{ "accountId": "acc_8Kd3...", "ticket": 4072808150, "status": "ok", "symbol": "BTCUSD", "side": "BUY", "volume": 0.10, "closed": true, "closePrice": 81320.15, "dealTicket": "1191098644", "profit": -0.40, "swap": 0, "commission": 0 },
{ "accountId": "acc_9Lm4...", "ticket": 4072809002, "status": "failed", "symbol": "BTCUSD", "side": "SELL", "volume": 0.20, "closed": false, "code": "TICKET_NOT_FOUND", "reason": "Position not open" }
],
"summary": { "total": 2, "ok": 1, "failed": 1 }
} Modify the stop-loss and/or take-profit on positions across many accounts in one request — either an explicit list of positions, or a per-account intent that applies one stop-loss / take-profit to every open position on each account (optionally narrowed by its own broker-native symbol or side). Requires a Pro or Enterprise plan.
Idempotency-Key State-changing call: send a unique Idempotency-Key header.
curl -X POST https:// api.tickerall.com/ v1/ bulk/ positions/ modify \
-H "Authorization: Bearer cf_api_xxxx" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"items": [
{
"accountId": "acc_8Kd3...",
"ticket": 4072808150
}
]
}' import { randomUUID } from "node:crypto";
const res = await fetch("https:// api.tickerall.com/ v1/ bulk/ positions/ modify", {
method: "POST",
headers: {
Authorization: "Bearer cf_api_xxxx",
"Content-Type": "application/json",
"Idempotency-Key": randomUUID(),
},
body: JSON.stringify({
items: [
{
accountId: "acc_8Kd3...",
ticket: 4072808150,
},
],
}),
});
const data = await res.json(); import uuid
import requests
res = requests.post(
"https:// api.tickerall.com/ v1/ bulk/ positions/ modify",
headers={
"Authorization": "Bearer cf_api_xxxx",
"Idempotency-Key": str(uuid.uuid4()),
},
json={
"items": [
{
"accountId": "acc_8Kd3...",
"ticket": 4072808150,
},
],
},
)
data = res.json() {
"results": [
{ "accountId": "acc_8Kd3...", "ticket": 4072808150, "status": "ok", "symbol": "BTCUSD", "side": "BUY", "modified": true },
{ "accountId": "acc_9Lm4...", "ticket": 4072809002, "status": "failed", "symbol": "BTCUSD", "side": "SELL", "modified": false, "code": "BROKER_REJECTED", "reason": "Invalid stops" }
],
"summary": { "total": 2, "ok": 1, "failed": 1 }
} Cancel resting pending orders (LIMIT / STOP) across many accounts in one request — an explicit list, or a per-account intent that cancels the pending orders on each account (optionally narrowed by its own broker-native symbol). Requires a Pro or Enterprise plan.
Idempotency-Key State-changing call: send a unique Idempotency-Key header.
curl -X POST https:// api.tickerall.com/ v1/ bulk/ orders/ cancel \
-H "Authorization: Bearer cf_api_xxxx" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"items": [
{
"accountId": "acc_8Kd3...",
"ticket": 4072808150
}
]
}' import { randomUUID } from "node:crypto";
const res = await fetch("https:// api.tickerall.com/ v1/ bulk/ orders/ cancel", {
method: "POST",
headers: {
Authorization: "Bearer cf_api_xxxx",
"Content-Type": "application/json",
"Idempotency-Key": randomUUID(),
},
body: JSON.stringify({
items: [
{
accountId: "acc_8Kd3...",
ticket: 4072808150,
},
],
}),
});
const data = await res.json(); import uuid
import requests
res = requests.post(
"https:// api.tickerall.com/ v1/ bulk/ orders/ cancel",
headers={
"Authorization": "Bearer cf_api_xxxx",
"Idempotency-Key": str(uuid.uuid4()),
},
json={
"items": [
{
"accountId": "acc_8Kd3...",
"ticket": 4072808150,
},
],
},
)
data = res.json() {
"results": [
{ "accountId": "acc_8Kd3...", "ticket": 4072809988, "status": "ok", "cancelled": true },
{ "accountId": "acc_9Lm4...", "ticket": 4072809991, "status": "failed", "cancelled": false, "code": "TICKET_NOT_FOUND", "reason": "Not a resting pending order" }
],
"summary": { "total": 2, "ok": 1, "failed": 1 }
} Modify resting pending orders (trigger price, stop-loss, take-profit) across many accounts in one request — either an explicit list of orders, or a per-account intent that applies one stop-loss / take-profit to every pending order on each account (optionally narrowed by its own broker-native symbol). Requires a Pro or Enterprise plan.
Idempotency-Key State-changing call: send a unique Idempotency-Key header.
curl -X POST https:// api.tickerall.com/ v1/ bulk/ orders/ modify \
-H "Authorization: Bearer cf_api_xxxx" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"items": [
{
"accountId": "acc_8Kd3...",
"ticket": 4072808150
}
]
}' import { randomUUID } from "node:crypto";
const res = await fetch("https:// api.tickerall.com/ v1/ bulk/ orders/ modify", {
method: "POST",
headers: {
Authorization: "Bearer cf_api_xxxx",
"Content-Type": "application/json",
"Idempotency-Key": randomUUID(),
},
body: JSON.stringify({
items: [
{
accountId: "acc_8Kd3...",
ticket: 4072808150,
},
],
}),
});
const data = await res.json(); import uuid
import requests
res = requests.post(
"https:// api.tickerall.com/ v1/ bulk/ orders/ modify",
headers={
"Authorization": "Bearer cf_api_xxxx",
"Idempotency-Key": str(uuid.uuid4()),
},
json={
"items": [
{
"accountId": "acc_8Kd3...",
"ticket": 4072808150,
},
],
},
)
data = res.json() {
"results": [
{ "accountId": "acc_8Kd3...", "ticket": 4072809988, "status": "ok", "modified": true },
{ "accountId": "acc_9Lm4...", "ticket": 4072809991, "status": "failed", "modified": false, "code": "TICKET_NOT_FOUND", "reason": "Not a resting pending order" }
],
"summary": { "total": 2, "ok": 1, "failed": 1 }
} Read live state for many accounts in one request — connection status, margin mode, read-only flag, account financials and open positions for your whole roster (or a subset) in a single call. Each account comes back as the same object GET /v1/accounts/:id returns. Requires a Pro or Enterprise plan.
curl https:// api.tickerall.com/ v1/ bulk/ accounts \
-H "Authorization: Bearer cf_api_xxxx" const res = await fetch("https:// api.tickerall.com/ v1/ bulk/ accounts", {
headers: {
Authorization: "Bearer cf_api_xxxx",
},
});
const data = await res.json(); import requests
res = requests.get(
"https:// api.tickerall.com/ v1/ bulk/ accounts",
headers={
"Authorization": "Bearer cf_api_xxxx",
},
)
data = res.json() {
"accounts": [
{
"id": "acc_8Kd3...",
"broker": "mt5",
"server": "Exness-MT5Trial14",
"accountNumber": "****5678",
"externalRef": null,
"isDemo": true,
"group": "demo\\Standard",
"serverTimeOffsetSeconds": 0,
"hot": true,
"poolId": "pool_3",
"ownerApiKeyId": null,
"readOnly": false,
"marginMode": "hedging",
"terminalType": "MOBILE",
"alwaysHot": false,
"credentialRejectedAt": null,
"lastHotAt": "2026-08-29T09:30:01.000Z",
"createdAt": "2026-08-20T09:11:55.000Z",
"status": "online",
"account": { "group": "demo\\Standard", "balance": 9871.42, "currency": "USD", "equity": 9863.10, "margin": 142.50, "freeMargin": 9720.60, "marginLevel": 6921.5, "credit": null, "leverage": 500, "serverTimeOffsetSeconds": 0 },
"positions": [
{ "ticket": 4072808150, "symbol": "BTCUSD", "side": "BUY", "volume": 0.10, "entryPrice": 77512.73, "currentPrice": 77640.10, "profit": 12.74, "openTime": "2026-08-29T09:41:10.000Z", "brokerOpenTime": "2026-08-29T09:41:10+00:00" }
]
},
{
"id": "acc_9Lm4...",
"broker": "mt5",
"server": "ICMarketsSC-Demo",
"accountNumber": "****3311",
"externalRef": null,
"isDemo": true,
"group": "demo\\Raw",
"serverTimeOffsetSeconds": 7200,
"hot": false,
"poolId": null,
"ownerApiKeyId": null,
"readOnly": null,
"marginMode": null,
"terminalType": "WEB",
"alwaysHot": false,
"credentialRejectedAt": "2026-08-29T08:05:44.000Z",
"lastHotAt": "2026-08-28T21:15:09.000Z",
"createdAt": "2026-08-21T14:02:10.000Z",
"status": "offline"
}
],
"notFound": [],
"summary": { "total": 2, "online": 1, "offline": 1 }
} Copy Trading #copy
Mirror one master account’s trades to many follower accounts — each scaled, symbol-mapped, and risk-clamped to its own size. Create a set, tune each follower, arm it, and the moment the master trades (through TickerAll) the followers follow. All accounts are your own (self-copy).
Copy Trading requires a Pro or Enterprise plan; on the Free and Trader plans these calls return 403 (COPY_REQUIRES_PRO). Sizing, lot clamps, exposure caps, symbol allow/block lists, reverse copy, a slippage guard, and per-broker symbol overrides are all per-follower. Read a set’s /stats and /log for a full picture of what mirrored.
Once a set is armed, any trade on the master mirrors to its followers automatically — whether it was placed through this API, the dashboard, a Telegram/Discord command, a webhook, or a TradingView alert. Point a TradingView strategy (or any signal source) at your master account and the whole set follows.
Create a copy set — one master account whose trades are mirrored to your follower accounts, each scaled and risk-clamped to its own size. All accounts are your own. Requires a Pro or Enterprise plan.
curl -X POST https:// api.tickerall.com/ v1/ copy/ sets \
-H "Authorization: Bearer cf_api_xxxx" \
-H "Content-Type: application/json" \
-d '{
"name": "My desk",
"masterAccountId": "acc_master...",
"followers": [
{
"followerAccountId": "acc_1...",
"sizingMethod": "proportional"
},
{
"followerAccountId": "acc_2...",
"sizingMethod": "multiplier",
"sizingValue": 0.5
}
]
}' const res = await fetch("https:// api.tickerall.com/ v1/ copy/ sets", {
method: "POST",
headers: {
Authorization: "Bearer cf_api_xxxx",
"Content-Type": "application/json",
},
body: JSON.stringify({
name: "My desk",
masterAccountId: "acc_master...",
followers: [
{
followerAccountId: "acc_1...",
sizingMethod: "proportional",
},
{
followerAccountId: "acc_2...",
sizingMethod: "multiplier",
sizingValue: 0.5,
},
],
}),
});
const data = await res.json(); import requests
res = requests.post(
"https:// api.tickerall.com/ v1/ copy/ sets",
headers={
"Authorization": "Bearer cf_api_xxxx",
},
json={
"name": "My desk",
"masterAccountId": "acc_master...",
"followers": [
{
"followerAccountId": "acc_1...",
"sizingMethod": "proportional",
},
{
"followerAccountId": "acc_2...",
"sizingMethod": "multiplier",
"sizingValue": 0.5,
},
],
},
)
data = res.json() {
"id": "cset_7Hb2...",
"ownerId": "usr_9Kd3...",
"name": "My desk",
"masterAccountId": "acc_master",
"enabled": false,
"failurePolicy": "retry",
"webhookUrl": null,
"hasWebhookSecret": false,
"createdAt": "2026-08-29T12:00:00.000Z",
"updatedAt": "2026-08-29T12:00:00.000Z",
"followers": [
{ "id": "cf_1", "followerAccountId": "acc_1", "sizingMethod": "proportional", "reverse": false, "enabled": true }
]
} List your copy sets, each with a follower count. Requires a Pro or Enterprise plan.
curl https:// api.tickerall.com/ v1/ copy/ sets \
-H "Authorization: Bearer cf_api_xxxx" const res = await fetch("https:// api.tickerall.com/ v1/ copy/ sets", {
headers: {
Authorization: "Bearer cf_api_xxxx",
},
});
const data = await res.json(); import requests
res = requests.get(
"https:// api.tickerall.com/ v1/ copy/ sets",
headers={
"Authorization": "Bearer cf_api_xxxx",
},
)
data = res.json() {
"sets": [
{ "id": "cset_7Hb2...", "name": "My desk", "masterAccountId": "acc_master", "enabled": true, "failurePolicy": "retry", "_count": { "followers": 3 }, "createdAt": "2026-08-29T12:00:00.000Z", "updatedAt": "2026-08-29T12:00:00.000Z" }
]
} Get one copy set with its full follower list + config. Requires a Pro or Enterprise plan.
curl https:// api.tickerall.com/ v1/ copy/ sets/ cset_7Hb2... \
-H "Authorization: Bearer cf_api_xxxx" const res = await fetch("https:// api.tickerall.com/ v1/ copy/ sets/ cset_7Hb2...", {
headers: {
Authorization: "Bearer cf_api_xxxx",
},
});
const data = await res.json(); import requests
res = requests.get(
"https:// api.tickerall.com/ v1/ copy/ sets/ cset_7Hb2...",
headers={
"Authorization": "Bearer cf_api_xxxx",
},
)
data = res.json() {
"id": "cset_7Hb2...",
"name": "My desk",
"masterAccountId": "acc_master",
"enabled": true,
"failurePolicy": "retry",
"followers": [
{ "id": "cf_1", "followerAccountId": "acc_1", "sizingMethod": "multiplier", "sizingValue": 0.5, "maxLot": 1, "reverse": false, "enabled": true }
]
} Update a set — rename, change the failure policy, or arm / pause it. Requires a Pro or Enterprise plan.
curl -X PATCH https:// api.tickerall.com/ v1/ copy/ sets/ cset_7Hb2... \
-H "Authorization: Bearer cf_api_xxxx" const res = await fetch("https:// api.tickerall.com/ v1/ copy/ sets/ cset_7Hb2...", {
method: "PATCH",
headers: {
Authorization: "Bearer cf_api_xxxx",
},
});
const data = await res.json(); import requests
res = requests.patch(
"https:// api.tickerall.com/ v1/ copy/ sets/ cset_7Hb2...",
headers={
"Authorization": "Bearer cf_api_xxxx",
},
)
data = res.json() { "id": "cset_7Hb2...", "name": "My desk", "enabled": true, "failurePolicy": "retry", "followers": [ ... ] } Delete a copy set (and its followers, position map, and log). Requires a Pro or Enterprise plan.
curl -X DELETE https:// api.tickerall.com/ v1/ copy/ sets/ cset_7Hb2... \
-H "Authorization: Bearer cf_api_xxxx" await fetch("https:// api.tickerall.com/ v1/ copy/ sets/ cset_7Hb2...", {
method: "DELETE",
headers: {
Authorization: "Bearer cf_api_xxxx",
},
}); import requests
requests.delete(
"https:// api.tickerall.com/ v1/ copy/ sets/ cset_7Hb2...",
headers={
"Authorization": "Bearer cf_api_xxxx",
},
) 204 No Content — empty body. Add a follower to a set. Requires a Pro or Enterprise plan.
curl -X POST https:// api.tickerall.com/ v1/ copy/ sets/ cset_7Hb2.../ followers \
-H "Authorization: Bearer cf_api_xxxx" \
-H "Content-Type: application/json" \
-d '{
"followerAccountId": "..."
}' const res = await fetch("https:// api.tickerall.com/ v1/ copy/ sets/ cset_7Hb2.../ followers", {
method: "POST",
headers: {
Authorization: "Bearer cf_api_xxxx",
"Content-Type": "application/json",
},
body: JSON.stringify({
followerAccountId: "...",
}),
});
const data = await res.json(); import requests
res = requests.post(
"https:// api.tickerall.com/ v1/ copy/ sets/ cset_7Hb2.../ followers",
headers={
"Authorization": "Bearer cf_api_xxxx",
},
json={
"followerAccountId": "...",
},
)
data = res.json() { "id": "cf_4", "copySetId": "cset_7Hb2...", "followerAccountId": "acc_4", "sizingMethod": "proportional", "reverse": true, "maxSlippagePips": 3, "enabled": true } Update a follower’s config — only the fields you send change. Requires a Pro or Enterprise plan.
curl -X PATCH https:// api.tickerall.com/ v1/ copy/ sets/ cset_7Hb2.../ followers/ <followerId> \
-H "Authorization: Bearer cf_api_xxxx" const res = await fetch("https:// api.tickerall.com/ v1/ copy/ sets/ cset_7Hb2.../ followers/ <followerId>", {
method: "PATCH",
headers: {
Authorization: "Bearer cf_api_xxxx",
},
});
const data = await res.json(); import requests
res = requests.patch(
"https:// api.tickerall.com/ v1/ copy/ sets/ cset_7Hb2.../ followers/ <followerId>",
headers={
"Authorization": "Bearer cf_api_xxxx",
},
)
data = res.json() { "id": "cf_4", "copySetId": "cset_7Hb2...", "followerAccountId": "acc_4", "sizingMethod": "fixed", "sizingValue": 0.02, "maxLot": 1 } Remove a follower from a set. Requires a Pro or Enterprise plan.
curl -X DELETE https:// api.tickerall.com/ v1/ copy/ sets/ cset_7Hb2.../ followers/ <followerId> \
-H "Authorization: Bearer cf_api_xxxx" await fetch("https:// api.tickerall.com/ v1/ copy/ sets/ cset_7Hb2.../ followers/ <followerId>", {
method: "DELETE",
headers: {
Authorization: "Bearer cf_api_xxxx",
},
}); import requests
requests.delete(
"https:// api.tickerall.com/ v1/ copy/ sets/ cset_7Hb2.../ followers/ <followerId>",
headers={
"Authorization": "Bearer cf_api_xxxx",
},
) 204 No Content — empty body. Dashboard stats for a set — totals, replication rate, and per-follower rollups. Requires a Pro or Enterprise plan.
curl https:// api.tickerall.com/ v1/ copy/ sets/ cset_7Hb2.../ stats \
-H "Authorization: Bearer cf_api_xxxx" const res = await fetch("https:// api.tickerall.com/ v1/ copy/ sets/ cset_7Hb2.../ stats", {
headers: {
Authorization: "Bearer cf_api_xxxx",
},
});
const data = await res.json(); import requests
res = requests.get(
"https:// api.tickerall.com/ v1/ copy/ sets/ cset_7Hb2.../ stats",
headers={
"Authorization": "Bearer cf_api_xxxx",
},
)
data = res.json() {
"set": { "id": "cset_7Hb2...", "name": "My desk", "enabled": true, "masterAccountId": "acc_master", "failurePolicy": "retry", "followerCount": 3 },
"totals": { "ok": 128, "skipped": 4, "failed": 2, "replicationRate": 0.9846 },
"byAction": { "open": 66, "close": 60, "modify": 8 },
"followers": [
{ "followerAccountId": "acc_1", "enabled": true, "sizingMethod": "proportional", "ok": 44, "skipped": 1, "failed": 0, "openPositions": 2, "avgLatencyMs": 138 }
]
} The copy log for a set — every mirrored action and its outcome, newest first. Requires a Pro or Enterprise plan.
curl https:// api.tickerall.com/ v1/ copy/ sets/ cset_7Hb2.../ log \
-H "Authorization: Bearer cf_api_xxxx" const res = await fetch("https:// api.tickerall.com/ v1/ copy/ sets/ cset_7Hb2.../ log", {
headers: {
Authorization: "Bearer cf_api_xxxx",
},
});
const data = await res.json(); import requests
res = requests.get(
"https:// api.tickerall.com/ v1/ copy/ sets/ cset_7Hb2.../ log",
headers={
"Authorization": "Bearer cf_api_xxxx",
},
)
data = res.json() {
"entries": [
{ "id": "clg_9", "followerAccountId": "acc_1", "action": "open", "masterTicket": "4072808150", "followerTicket": "5510022931", "symbol": "EURUSDm", "mappedSymbol": "EURUSD", "volume": 0.01, "result": "ok", "latencyMs": 132, "createdAt": "2026-08-29T12:34:56.000Z" },
{ "id": "clg_8", "followerAccountId": "acc_2", "action": "open", "symbol": "XAUUSDm", "volume": null, "result": "skipped", "reason": "XAUUSD is on the block list", "createdAt": "2026-08-29T12:34:56.000Z" }
],
"nextBefore": "2026-08-29T12:34:56.000Z"
} Set a webhookUrl on a copy set (with an optional webhookSecret) to receive a JSON POST for every mirror outcome — ok, skipped, or failed. It’s the same stream the set’s /log records, delivered as it happens. Delivery is best-effort and never blocks or delays a trade.
{
"event": "copy.open.ok", // copy.<action>.<result>
"setId": "cset_7Hb2...",
"setName": "My desk",
"action": "open", // open | close | partial_close | modify | pending_cancel | pending_modify
"result": "ok", // ok | skipped | failed
"followerAccountId": "acc_1",
"symbol": "EURUSD",
"mappedSymbol": "EURUSDm", // the follower broker's symbol
"volume": 0.25,
"masterTicket": "123456",
"followerTicket": "998877",
"reason": null, // why, when skipped/failed
"latencyMs": 140,
"ts": "2026-08-29T12:00:00.000Z"
} The event is copy.<action>.<result> (e.g. copy.close.failed) so you can route on it. When a webhookSecret is set, each request carries an X-Tickerall-Signature: sha256=<hex> header — the HMAC-SHA256 of the raw request body, keyed by your secret. Verify it before trusting the payload:
import { createHmac, timingSafeEqual } from 'crypto'
function verify(rawBody, signatureHeader, secret) {
const expected = 'sha256=' + createHmac('sha256', secret).update(rawBody).digest('hex')
const a = Buffer.from(signatureHeader), b = Buffer.from(expected)
return a.length === b.length && timingSafeEqual(a, b)
} import hmac, hashlib
def verify(raw_body: bytes, signature_header: str, secret: str) -> bool:
expected = "sha256=" + hmac.new(secret.encode(), raw_body, hashlib.sha256).hexdigest()
return hmac.compare_digest(signature_header, expected) Discord / Telegram Discord and Telegram channels both expose an incoming webhook URL. Point webhookUrl at one to stream mirror events straight into a chat — a zero-code way to get live copy alerts on your phone. Seats (white-label) #seats
Serve many downstream customers through one TickerAll account. A seat is one of your sub-users; you hold one key per environment (not one per customer) and name the seat on each request with the X-Tickerall-User: <externalId> header. Connections you open under that header belong to the seat. Seats are an Enterprise opt-in feature — off by default, and while off your key behaves exactly as a normal key.
Quota. Each seat has a connection cap (maxConnections), and the sum of all seat caps must stay within your reserved capacity (your committed max accounts). You distribute your reserved pool across seats; a create, patch, or auto-create that would exceed it is rejected with 422 POOL_FULL. You are billed by your reserved capacity, used or not — seats only partition it, with no per-seat fee.
Per-seat rate limits. Each seat gets its own request budget (your tier default, or a per-seat rateLimit override), so one busy seat never spends another’s budget.
Isolation, by construction. A seat sees only its own accounts and data — never another seat’s, and never yours. Your plain key (no acted-as header) sees across all seats for management.
Two ways a seat is addressed. The default is the acted-as header above, where only your server holds a credential. Optionally, you can mint a seat its own cf_seat_ token so the seat’s end-user builds their own app against TickerAll directly — it is used as a normal Authorization: Bearer cf_seat_… and is confined to that one seat. A leaked seat token cannot reach sibling seats, other tokens, or your env/management key, and is revoked independently (no cascade).
Turn white-label seats on or off for your key, and optionally set the auto-create default cap. Self-serve, Enterprise-only. Off by default; while off your key behaves exactly as a normal key. Requires a full (non read-only) key.
curl -X POST https:// api.tickerall.com/ v1/ seats/ enablement \
-H "Authorization: Bearer cf_api_xxxx" \
-H "Content-Type: application/json" \
-d '{
"enabled": "..."
}' const res = await fetch("https:// api.tickerall.com/ v1/ seats/ enablement", {
method: "POST",
headers: {
Authorization: "Bearer cf_api_xxxx",
"Content-Type": "application/json",
},
body: JSON.stringify({
enabled: "...",
}),
});
const data = await res.json(); import requests
res = requests.post(
"https:// api.tickerall.com/ v1/ seats/ enablement",
headers={
"Authorization": "Bearer cf_api_xxxx",
},
json={
"enabled": "...",
},
)
data = res.json() {
"enabled": true,
"defaultAutoCap": 5
} Your current seats-feature state.
curl https:// api.tickerall.com/ v1/ seats/ enablement \
-H "Authorization: Bearer cf_api_xxxx" const res = await fetch("https:// api.tickerall.com/ v1/ seats/ enablement", {
headers: {
Authorization: "Bearer cf_api_xxxx",
},
});
const data = await res.json(); import requests
res = requests.get(
"https:// api.tickerall.com/ v1/ seats/ enablement",
headers={
"Authorization": "Bearer cf_api_xxxx",
},
)
data = res.json() {
"enabled": true,
"defaultAutoCap": 5
} Create a seat — one downstream customer / sub-user. externalId is the id YOU assign; it is the value you later send as X-Tickerall-User to act as the seat. maxConnections is the seat’s slice of your reserved capacity.
curl -X POST https:// api.tickerall.com/ v1/ seats \
-H "Authorization: Bearer cf_api_xxxx" \
-H "Content-Type: application/json" \
-d '{
"externalId": "...",
"maxConnections": "..."
}' const res = await fetch("https:// api.tickerall.com/ v1/ seats", {
method: "POST",
headers: {
Authorization: "Bearer cf_api_xxxx",
"Content-Type": "application/json",
},
body: JSON.stringify({
externalId: "...",
maxConnections: "...",
}),
});
const data = await res.json(); import requests
res = requests.post(
"https:// api.tickerall.com/ v1/ seats",
headers={
"Authorization": "Bearer cf_api_xxxx",
},
json={
"externalId": "...",
"maxConnections": "...",
},
)
data = res.json() {
"id": "seat_3Fa9...",
"ownerId": "usr_owner...",
"externalId": "acme-trading",
"label": "Acme Trading",
"maxConnections": 10,
"rateLimit": null,
"rateLimits": null,
"autoCreated": false,
"connectionsUsed": 0,
"createdAt": "2026-11-26T09:00:00.000Z",
"updatedAt": "2026-11-26T09:00:00.000Z"
} List all your seats, each with its live connectionsUsed.
curl https:// api.tickerall.com/ v1/ seats \
-H "Authorization: Bearer cf_api_xxxx" const res = await fetch("https:// api.tickerall.com/ v1/ seats", {
headers: {
Authorization: "Bearer cf_api_xxxx",
},
});
const data = await res.json(); import requests
res = requests.get(
"https:// api.tickerall.com/ v1/ seats",
headers={
"Authorization": "Bearer cf_api_xxxx",
},
)
data = res.json() {
"seats": [
{
"id": "seat_3Fa9...",
"ownerId": "usr_owner...",
"externalId": "acme-trading",
"label": "Acme Trading",
"maxConnections": 10,
"rateLimit": null,
"rateLimits": null,
"autoCreated": false,
"connectionsUsed": 3,
"createdAt": "2026-11-26T09:00:00.000Z",
"updatedAt": "2026-11-26T09:00:00.000Z"
}
]
} One seat with its live connectionsUsed.
curl https:// api.tickerall.com/ v1/ seats/ <externalId> \
-H "Authorization: Bearer cf_api_xxxx" const res = await fetch("https:// api.tickerall.com/ v1/ seats/ <externalId>", {
headers: {
Authorization: "Bearer cf_api_xxxx",
},
});
const data = await res.json(); import requests
res = requests.get(
"https:// api.tickerall.com/ v1/ seats/ <externalId>",
headers={
"Authorization": "Bearer cf_api_xxxx",
},
)
data = res.json() {
"id": "seat_3Fa9...",
"ownerId": "usr_owner...",
"externalId": "acme-trading",
"label": "Acme Trading",
"maxConnections": 10,
"rateLimit": null,
"rateLimits": null,
"autoCreated": false,
"connectionsUsed": 3,
"createdAt": "2026-11-26T09:00:00.000Z",
"updatedAt": "2026-11-26T09:00:00.000Z"
} Update a seat’s label, cap, or rate-limit. Any field omitted is left unchanged.
curl -X PATCH https:// api.tickerall.com/ v1/ seats/ <externalId> \
-H "Authorization: Bearer cf_api_xxxx" const res = await fetch("https:// api.tickerall.com/ v1/ seats/ <externalId>", {
method: "PATCH",
headers: {
Authorization: "Bearer cf_api_xxxx",
},
});
const data = await res.json(); import requests
res = requests.patch(
"https:// api.tickerall.com/ v1/ seats/ <externalId>",
headers={
"Authorization": "Bearer cf_api_xxxx",
},
)
data = res.json() {
"id": "seat_3Fa9...",
"externalId": "acme-trading",
"label": "Acme Trading EU",
"maxConnections": 20,
"rateLimit": 120,
"rateLimits": { "order": 30, "read": 500 },
"autoCreated": false,
"connectionsUsed": 3,
"createdAt": "2026-11-26T09:00:00.000Z",
"updatedAt": "2026-11-26T09:05:00.000Z"
} Delete a seat and free its cap back to your unallocated capacity.
curl -X DELETE https:// api.tickerall.com/ v1/ seats/ <externalId> \
-H "Authorization: Bearer cf_api_xxxx" const res = await fetch("https:// api.tickerall.com/ v1/ seats/ <externalId>", {
method: "DELETE",
headers: {
Authorization: "Bearer cf_api_xxxx",
},
});
const data = await res.json(); import requests
res = requests.delete(
"https:// api.tickerall.com/ v1/ seats/ <externalId>",
headers={
"Authorization": "Bearer cf_api_xxxx",
},
)
data = res.json() {
"deleted": true,
"externalId": "acme-trading"
} Per-seat usage + capacity accounting, so you can bill your own downstream users. TickerAll bills YOU by reserved capacity (your committed max), never active usage.
curl https:// api.tickerall.com/ v1/ seats/ usage \
-H "Authorization: Bearer cf_api_xxxx" const res = await fetch("https:// api.tickerall.com/ v1/ seats/ usage", {
headers: {
Authorization: "Bearer cf_api_xxxx",
},
});
const data = await res.json(); import requests
res = requests.get(
"https:// api.tickerall.com/ v1/ seats/ usage",
headers={
"Authorization": "Bearer cf_api_xxxx",
},
)
data = res.json() {
"reservedCapacity": 100,
"billableCapacity": 100,
"allocatedCapacity": 30,
"unallocatedCapacity": 70,
"connectionsUsed": 12,
"seats": [
{ "externalId": "acme-trading", "label": "Acme Trading", "maxConnections": 20, "connectionsUsed": 8 },
{ "externalId": "beta-fund", "label": "Beta Fund", "maxConnections": 10, "connectionsUsed": 4 }
]
} Mint a direct-access token for a seat, so the seat’s end-user can call TickerAll directly (as a Bearer token) confined to that one seat. The plaintext secret is returned ONCE — store it immediately.
curl -X POST https:// api.tickerall.com/ v1/ seats/ <externalId>/ tokens \
-H "Authorization: Bearer cf_api_xxxx" const res = await fetch("https:// api.tickerall.com/ v1/ seats/ <externalId>/ tokens", {
method: "POST",
headers: {
Authorization: "Bearer cf_api_xxxx",
},
});
const data = await res.json(); import requests
res = requests.post(
"https:// api.tickerall.com/ v1/ seats/ <externalId>/ tokens",
headers={
"Authorization": "Bearer cf_api_xxxx",
},
)
data = res.json() {
"token": "cf_seat_8f2a…(shown once)",
"id": "stok_9Qd1...",
"label": "Acme's app",
"lastFour": "a1b2",
"createdAt": "2026-11-26T09:10:00.000Z"
} List a seat’s tokens — metadata only; the secret is never returned by a list.
curl https:// api.tickerall.com/ v1/ seats/ <externalId>/ tokens \
-H "Authorization: Bearer cf_api_xxxx" const res = await fetch("https:// api.tickerall.com/ v1/ seats/ <externalId>/ tokens", {
headers: {
Authorization: "Bearer cf_api_xxxx",
},
});
const data = await res.json(); import requests
res = requests.get(
"https:// api.tickerall.com/ v1/ seats/ <externalId>/ tokens",
headers={
"Authorization": "Bearer cf_api_xxxx",
},
)
data = res.json() {
"tokens": [
{ "id": "stok_9Qd1...", "label": "Acme's app", "lastFour": "a1b2", "createdAt": "2026-11-26T09:10:00.000Z" }
]
} Revoke ONE of a seat’s tokens — independent, with no cascade to sibling seats, other tokens, or your env/management key.
curl -X DELETE https:// api.tickerall.com/ v1/ seats/ <externalId>/ tokens/ <tokenId> \
-H "Authorization: Bearer cf_api_xxxx" const res = await fetch("https:// api.tickerall.com/ v1/ seats/ <externalId>/ tokens/ <tokenId>", {
method: "DELETE",
headers: {
Authorization: "Bearer cf_api_xxxx",
},
});
const data = await res.json(); import requests
res = requests.delete(
"https:// api.tickerall.com/ v1/ seats/ <externalId>/ tokens/ <tokenId>",
headers={
"Authorization": "Bearer cf_api_xxxx",
},
)
data = res.json() {
"revoked": true,
"tokenId": "stok_9Qd1..."
} Webhooks & TradingView #webhooks
Turn a POSTed JSON payload into a trade — from a TradingView alert, or any source that can send an HTTP POST (a script, Zapier, your own backend). Each connected account has its own incoming webhook URL, and the URL identifies the account — so no login or credentials ever go in the payload. Create one under Dashboard > Webhooks, where you also get per-symbol aliases, an optional shared secret, and a dry-run test.
/ api/ webhooks/ tv/ <token> # TradingView — paste into the alert's "Webhook URL"
/ api/ hook/ <token> # any other source — same token, same account Put the JSON in the TradingView alert message (or the POST body). Only action plus the fields that action needs are required:
buy, sell, close, close_all, modify, modify_all BTCUSD becomes BTCUSDm), case-insensitive "limit" / "stop" + price for a pending order ("stop_limit" is refused with status 400) volume (a partial close), sl, tp, ticket (target one position), comment (cut to 31 characters), dedupe_id (run once — see below), price (also the new trigger price when modify targets a pending order), test (a dry run — see below) Places a market order at the current price, on the account the webhook URL identifies.
# Market buy
{
"action": "buy",
"symbol": "XAUUSD",
"volume": 0.10
} BTCUSD becomes BTCUSDm), case-insensitive. modify_all can select positions by it. It is cut to its first 31 characters. true makes it a dry run: checked, nothing placed or changed. See Dry run. Places a pending order: add type ("limit" or "stop") and its price to a buy or sell.
# Pending order with SL/TP
{
"action": "sell",
"type": "limit",
"symbol": "XAUUSD",
"volume": 0.10,
"price": 2400,
"sl": 2410,
"tp": 2380
} "stop_limit" is not supported yet: it is refused with status 400 and nothing is placed, and so is any other value. BTCUSD becomes BTCUSDm), case-insensitive. modify_all can select positions by it. It is cut to its first 31 characters. true makes it a dry run: checked, nothing placed or changed. See Dry run. Closes one position: the one with the ticket you send, or, by symbol, the first open position on it. Add volume for a partial close.
# Partial close — take a chunk off (e.g. TP1/ TP2/ TP3; send one per level)
{
"action": "close",
"symbol": "XAUUSD",
"volume": 0.03
} # Close the whole position on a symbol
{
"action": "close",
"symbol": "XAUUSD"
} ticket. Auto-resolved to the broker’s name (BTCUSD becomes BTCUSDm), case-insensitive. true makes it a dry run: checked, nothing placed or changed. See Dry run. Closes every open position on the account. Add a symbol to close every position of that symbol only, without knowing any ticket.
When every close succeeds the status is 200 with "closed", the number closed; no open position is a success with "closed":0. If some positions could not be closed the status is 207, ok is false, and failures lists each one with its reason. If none could be closed, the status is the status of the first failure (for example 409 when the account is not connected, or 422 when the broker refused), not 207.
# Close every open position on the account
{
"action": "close_all"
} BTCUSD becomes BTCUSDm), case-insensitive. true makes it a dry run: checked, nothing placed or changed. See Dry run. Changes the stop-loss and take-profit of one position: the one with the ticket you send, or, by symbol, the first open position on it. Breakeven is sl at entry; to trail, send it again with the new sl.
With the ticket of a pending order, modify changes that order instead, and accepts price (its new trigger price) as well as sl and tp; what you leave out is kept. A ticket is looked for among the open positions first, then among the pending orders; a ticket that is neither is refused with status 422. price applies to a pending order only: on a position, modify needs sl or tp, and price alone is refused with status 400.
# Modify stop / take-profit — breakeven = sl at entry; trail = re-send with the new sl
{
"action": "modify",
"symbol": "XAUUSD",
"sl": 2345.0,
"tp": 2380.0
} # Move a pending order: its ticket, and the new trigger price
{
"action": "modify",
"ticket": "4072809988",
"price": 2395.0,
"sl": 2405.0
} ticket. Auto-resolved to the broker’s name (BTCUSD becomes BTCUSDm), case-insensitive. sl / tp is required. sl / tp there. true makes it a dry run: checked, nothing placed or changed. See Dry run. modify_all needs a symbol and at least one of sl / tp. It changes every open position on that exact symbol and nothing else; a level you leave out is kept as each position has it. Add comment (the comment you opened the position with) or magic to narrow it. The response lists every position:
If some positions could not be changed the status is 207, ok is false, and each failed row carries "status":"failed" with the reason, so you can see exactly which stops moved. No matching position is a success with "matched":0.
If every matched position fails, the status is the status of the first failure (for example 409 when the account is not connected, or 422 when the broker refused), not 207; the body is the same, with ok false and the rows. An sl or tp that is present but not a number, or is below 0, is refused with status 400 and no position is changed. The comment you filter by is cut to its first 31 characters before it is compared, as it was when the position was opened.
# Move the stop on EVERY open position of a symbol (each keeps its own take-profit)
{
"action": "modify_all",
"symbol": "XAUUSD",
"sl": 2345.0
} # ...or only on the positions opened with a given comment
{
"action": "modify_all",
"symbol": "XAUUSD",
"sl": 2345.0,
"comment": "runner"
} {
"ok": true, "matched": 2, "modified": 2, "failed": 0,
"results": [
{"ticket":"7001","symbol":"XAUUSDm","status":"ok","stopLoss":2345.0,"takeProfit":2380.0},
{"ticket":"7002","symbol":"XAUUSDm","status":"ok","stopLoss":2345.0,"takeProfit":0}
]
} BTCUSD becomes BTCUSDm), case-insensitive. sl / tp is required. true makes it a dry run: checked, nothing placed or changed. See Dry run. One position or several. close and modify act on one position: the one with the ticket you send, or, by symbol, the first open position on it. That is all you need on a netting account, which holds one position per symbol. On a hedging account, where each order opens its own position, use close_all and modify_all to act on every position of a symbol without knowing any ticket.
Avoiding duplicate orders. Alert services re-send a delivery they think failed, and without protection each delivery is a new order. Add a dedupe_id (any text up to 128 characters, unique per alert) and the command runs once: a repeat with the same id on the same webhook within 10 minutes places nothing and returns the first result with "duplicate":true. A command that failed is not remembered, so it can be sent again.
dedupe_id may also be a number, which is read as its digits (42 and "42" are the same id); text is trimmed of spaces at both ends. An id that is empty, longer than 128 characters or of another type is refused with status 400 and nothing is placed.
The id must be the same when one alert is delivered again and different for the next alert. In TradingView, build it from placeholders, for example "dedupe_id":"{{ticker}}-{{strategy.order.id}}-{{time}}" (the order and its bar).
Dry run. Add "test": true to a trade command (buy, sell, close, close_all, modify, modify_all) and it is checked but not run: nothing is placed, closed or changed, on a demo or a live account, and it is not recorded as a delivery of the webhook. It goes through the same URL, and the same secret when one is required.
A dry run checks three things: that action is one of the six, that the account is connected, and, when you send a symbol, that it resolves to a symbol of your broker (buy, sell and modify_all need one). It does not check volume, price, sl, tp or ticket, it does not ask the broker whether the order would be accepted, and dedupe_id is not read, so a dry run never uses up an id.
When all three pass the status is 200 and the body says what a real command would do. When one fails, the body is { "ok": false, "dryRun": true, "error": "…" } with status 400 (unknown or missing action, or a missing symbol), 422 (the symbol is not one of your broker's) or the status of the account read, for example 409 when the account is not connected.
{
"action": "buy",
"symbol": "XAUUSD",
"volume": 0.10,
"test": true
} {
"ok": true,
"dryRun": true,
"account": "acc_8Kd3...",
"wouldRun": {
"action": "buy",
"requested": "XAUUSD",
"symbol": "XAUUSDm",
"volume": 0.10
},
"message": "Setup OK — the account is live and “XAUUSD” resolves to XAUUSDm. A real alert would buy XAUUSDm."
} Each webhook has an optional required secret and per-symbol aliases in its settings, plus a Test button that dry-runs a payload before you go live. When the secret is required, the JSON must include "secret":"your secret"; a request without the right one is refused with status 401 and places nothing. Live trading follows the same plan rules as the rest of the API — see Plans & limits.
Want a full walkthrough with Pine Script templates and copy-paste alerts? See the companion guide: github.com/TickerAll/tradingview-mt5-mt4.
WebSocket — realtime data #websocket
Open a single long-lived WebSocket to wss://api.tickerall.com/v1/stream for live data. Authenticate with the same bearer token (header on the upgrade, or ?token=… in the URL). After connecting, send a subscribe message listing the channels you want.
There are five channel kinds — ticks (per-symbol price updates), positions (open/update/close events), orders (your resting pending LIMIT/STOP orders — the full book, re-sent whole on every change),account (a full account snapshot on subscribe, then a balance update on every balance change — trade settlement, deposit, withdrawal), and history (trades as they close: the new history rows only, with no snapshot on subscribe). All are scoped by accountId.
The server also broadcasts an event frame — a service channel for maintenance notices, all-clears, news, changelog notes and announcements, sent to every connected client. You never subscribe to it; on connect the server replays the currently active notices (newest first, up to ~20) so a client joining mid-maintenance catches up. A client that doesn't handle event simply ignores it — the existing frames are unchanged.
After connecting, send a subscribe message listing the channels you want. All are scoped by accountId.
The server replies with a subscribed frame echoing which channels were accepted and which were rejected (with a code — see Subscribe rejection codes).
One message carries 1 to 100 channels, and a ticks channel names 1 to 50 symbols. correlationId is optional, up to 64 characters, and comes back on the reply. A message outside these limits is not acted on: it is answered with an error frame whose code is INVALID_MESSAGE.
{
"type": "subscribe",
"channels": [
{
"kind": "ticks",
"accountId": "acc_8Kd3...",
"symbols": ["BTCUSD", "ETHUSD"]
},
{
"kind": "positions",
"accountId": "acc_8Kd3..."
},
{
"kind": "orders",
"accountId": "acc_8Kd3..."
},
{
"kind": "account",
"accountId": "acc_8Kd3..."
},
{
"kind": "history",
"accountId": "acc_8Kd3..."
}
],
"correlationId": "sub-1"
} Unsubscribe with the same channel shape and "type": "unsubscribe".
The server replies with an unsubscribed frame listing the channels you sent, with your correlationId when you gave one. A ticks channel stops only the symbols it names; the other symbols of that account keep streaming.
{
"type": "unsubscribe",
"channels": [
{
"kind": "ticks",
"accountId": "acc_8Kd3...",
"symbols": ["ETHUSD"]
}
],
"correlationId": "unsub-1"
} Send { "type": "ping" } to get a pong and keep the connection alive.
{ "type": "ping" } The server replies to a subscribe with a subscribed frame echoing which channels were accepted and which were rejected (with a code — see Subscribe rejection codes).
// subscribe acknowledgement
{
"type": "subscribed",
"channels": [ ... ],
"rejected": [],
"correlationId": "sub-1"
} The server replies to an unsubscribe with an unsubscribed frame. channels lists the channels of your message, in the shape you sent them; correlationId is the one you sent, and is left out when you sent none. There is no rejected list: leaving a channel you were not subscribed to is not an error, and it is listed all the same.
// unsubscribe acknowledgement
{
"type": "unsubscribed",
"channels": [
{
"kind": "ticks",
"accountId": "acc_8Kd3...",
"symbols": ["ETHUSD"]
}
],
"correlationId": "unsub-1"
} On a tick, timestamp is the broker's own tick time in UTC (when the broker's clock offset isn't known yet, the time TickerAll received it), and brokerTime is the same instant on the broker's clock with its UTC offset, or null when unknown. stale: true marks a last-known quote — such as a closed market's last price on connect — not a live tick.
// price tick
{
"type": "tick",
"accountId": "acc_8Kd3...",
"symbol": "BTCUSD",
"bid": 77512.73,
"ask": 77514.10,
"timestamp": "2026-05-22T18:01:22.317Z",
"brokerTime": "2026-05-22T21:01:22.317+03:00",
"stale": false
} The positions channel: open/update/close events. event says which: "opened", "updated" or "closed".
// position lifecycle (event: "opened" | "updated" | "closed")
{
"type": "position_update",
"accountId": "acc_8Kd3...",
"event": "opened",
"position": {
"ticket": 4072808150,
"symbol": "BTCUSD",
"side": "BUY",
"volume": 0.10,
"entryPrice": 77512.73,
"profit": 0
}
} The orders channel: your resting pending LIMIT/STOP orders — the full book, re-sent whole on every change.
// pending-order book — the FULL current list, re-sent whole on every change
{
"type": "order_update",
"accountId": "acc_8Kd3...",
"orders": [
{
"ticket": "4072809988",
"symbol": "BTCUSD",
"type": "BUY_LIMIT",
"side": "BUY",
"orderType": "LIMIT",
"volume": 0.10,
"price": 68000,
"stopLoss": 66000,
"takeProfit": 72000,
"comment": "",
"magic": 0
}
]
} The account channel: a full account snapshot on subscribe, then a balance update on every balance change — trade settlement, deposit, withdrawal.
// account update — pushed on every balance change (trade settlement, deposit,
// withdrawal); the snapshot sent on subscribe carries the full account
// (balance, equity, margin, freeMargin, credit, group, ...). On an MT4 account
// every push carries that full account too, read at the moment of the push
// (a figure that cannot be computed then is null, never 0 — while an open
// position has no price yet that is equity, freeMargin and marginLevel, and
// the currentPrice / profit of its position_update). Read / balance-operations
// to learn what moved the balance — it refreshes on the first read after the
// balance moves, so it is readable within seconds of this push.
{
"type": "account_update",
"accountId": "acc_8Kd3...",
"snapshot": {
"group": "demo\\Standard",
"balance": 9871.42,
"currency": "USD",
"credit": null
}
} The history channel: trades as they close. Subscribe with { "kind": "history", "accountId": "…" }. Nothing is sent on subscribe, because a history can be large: read what is already there with GET /v1/accounts/:id/history, then add each history_update to it.
trades holds only the rows that are new since the last frame, never the whole list, and each row is a closed trade as GET /v1/accounts/:id/history lists it, so you can append it to that list. A row is identified by ticket and closeTicket together, and the same pair is sent once per subscription; when a position is closed in parts, its row arrives again after each partial close, with the new closeTicket.
A frame follows a close once the trade is in the account's history, normally within a few seconds. If the row has not appeared about three seconds after the close, no frame is sent for it, so treat GET /v1/accounts/:id/history as the record and the channel as the prompt to update.
// a trade just closed — only the new row(s), in the shape of GET / history
{
"type": "history_update",
"accountId": "acc_8Kd3...",
"trades": [
{
"ticket": "4072808150",
"symbol": "ETHUSD",
"side": "BUY",
"volume": 0.10,
"openPrice": 2500.50,
"closePrice": 2510.25,
"openTime": "2026-05-20T10:00:00.000Z",
"closeTime": "2026-05-20T12:30:00.000Z",
"profit": 0.98,
"swap": -0.12,
"commission": 0,
"stopLoss": 0,
"takeProfit": 0,
"closeTicket": "4072808151"
}
]
} The server also broadcasts an event frame — a service channel for maintenance notices, all-clears, news, changelog notes and announcements, sent to every connected client. You never subscribe to it; on connect the server replays the currently active notices (newest first, up to ~20) so a client joining mid-maintenance catches up. A client that doesn't handle event simply ignores it — the existing frames are unchanged.
The event frame carries the notice in its event object. Only id, kind, severity, title and createdAt are always present; the rest are optional, and 0 or an empty string is a real value — test for presence, not truthiness.
// service event — broadcast to every client (maintenance, news, announcements),
// replayed newest-first on connect so you catch an in-progress notice
{
"type": "event",
"event": {
"id": "evt_7Hb2...",
"kind": "maintenance",
"severity": "warning",
"title": "Scheduled maintenance Sunday 06:00 UTC",
"body": "We'll be applying updates; sessions may briefly drop and auto-reconnect.",
"url": "https:// tickerall.com/ status",
"scheduledAt": "2026-10-11T06:00:00Z",
"estimatedDurationSec": 900,
"estimatedBackAt": "2026-10-11T10:00:00Z",
"reason": "weekly release window",
"createdAt": "2026-10-09T12:00:00Z",
"expiresAt": "2026-10-11T16:00:00Z"
}
} evt_-prefixed id for the notice (an all-clear points back to it). maintenance twice (a notice authored ahead with a scheduledAt lead time, then a going-down notice broadcast as the backend restarts) and maintenance_clear when it's back; other kinds are news, changelog, announcement, or a custom string. info, warning, critical. id of the maintenance event it closes. expiresAt means no expiry. The reply to a { "type": "ping" } you send. This is apart from the WebSocket ping frames the connection sends as a heartbeat, which your client answers with a pong frame.
{ "type": "pong", "ts": 1779472882317 } Protocol-level problems arrive as an error frame, with a code and a message. The codes below say what each one means. One of them, STREAM_DROPPED, is not about a message you sent: it tells you the stream of one account stopped and its channels must be subscribed again.
{
"type": "error",
"code": "RATE_LIMIT",
"message": "Slow down."
} GET https://tickerall.com/api/maintenance-window (no auth) returns TickerAll's weekly maintenance window and whether it is open right now. All times are UTC.
active means the scheduled window is open and a restart may happen, not that the API is down at this moment. The maintenance and maintenance_clear events above remain the signal for the restart itself: poll this endpoint to know a window is open, and listen for the events to know when sessions actually drop and return. This is TickerAll's own maintenance, not a broker's.
0 = Sunday … 6 = Saturday. 360 = 06:00). Start is inclusive, end is exclusive. true while the server's clock is inside the window, so you don't need to compute it from your own clock. "default" only when the configured window could not be read and the default window is returned. - INVALID_MESSAGE
- The frame was not valid JSON or did not match the message schema.
- RATE_LIMIT
- You sent messages too fast. Slow down and retry.
- NOT_FOUND
- Subscribe rejected: no account with that accountId.
- FORBIDDEN
- Subscribe rejected: that account is not yours.
- BROKER_ACCOUNT_NOT_HOT
- Subscribe rejected: connection cooled. Call POST /v1/sessions to reconnect.
- CHANNEL_LIMIT
- Subscribe rejected: too many channels on this connection.
- NOT_HOT
- Subscribe rejected: there is no active session for that account. It is not connected, its connection has cooled, or it is not an account this key can stream. Call POST /v1/sessions to reconnect, then subscribe again.
- INTERNAL
- Subscribe rejected: that channel could not be set up because of an unexpected error on our side. The other channels in the same message are answered on their own. Subscribe to it again after a short wait; if it keeps happening, contact support.
- STREAM_DROPPED
- Sent as an error frame, not as a subscribe rejection: the live stream of one account stopped, so its channels no longer deliver. message names the accountId. Subscribe to that account’s channels again; if that subscribe is rejected with NOT_HOT, call POST /v1/sessions first.
Protocol-level problems arrive as an error frame: { "type": "error", "code": "RATE_LIMIT", "message": "Slow down." }. The connection sends WebSocket ping frames as a heartbeat — reply with pong (most client libraries do this automatically) or you will be disconnected.
What to do with each: NOT_HOT and BROKER_ACCOUNT_NOT_HOT mean reconnect the account with POST /v1/sessions, then subscribe again. STREAM_DROPPED and INTERNAL mean subscribe again after a short wait. RATE_LIMIT means slow down and send the message again. INVALID_MESSAGE, NOT_FOUND, FORBIDDEN and CHANNEL_LIMIT will not change on a retry: fix the message, the account id or the number of channels first.
Rate limits #rate-limits
The API meters requests in four classes, each with its own budget per window. The limits scale with your plan tier. They are fair-use protection, separate from billing — reads and demo orders are never charged (see Plans & limits).
connect- Opening or reconnecting broker sessions.
order- Placing, modifying, or cancelling orders.
candle- Candle fetches.
read- Everything else — account, position, and trade-history reads.
Check your live budget any time with GET /v1/rate-limits:
Your current rate-limit snapshot: the per-class request limits for your plan’s tier, how many requests remain in the current window, and when each class’s window resets. Requests are metered in four classes — connect, order, candle, and read — each with its own limit per window.
curl https:// api.tickerall.com/ v1/ rate-limits \
-H "Authorization: Bearer cf_api_xxxx" const res = await fetch("https:// api.tickerall.com/ v1/ rate-limits", {
headers: {
Authorization: "Bearer cf_api_xxxx",
},
});
const data = await res.json(); import requests
res = requests.get(
"https:// api.tickerall.com/ v1/ rate-limits",
headers={
"Authorization": "Bearer cf_api_xxxx",
},
)
data = res.json() {
"tier": "PRO",
"windowSeconds": 60,
"classes": [
{ "class": "connect", "limit": 120, "remaining": 118, "resetSeconds": 42 },
{ "class": "order", "limit": 600, "remaining": 600, "resetSeconds": 60 },
{ "class": "candle", "limit": 300, "remaining": 299, "resetSeconds": 12 },
{ "class": "read", "limit": 1200, "remaining": 1100, "resetSeconds": 5 }
]
} You don’t have to poll the endpoint — every API response carries the live budget for the class that request fell into, as standard headers:
RateLimit-Limit- Requests allowed per window for that class.
RateLimit-Remaining- Requests still available in the current window.
RateLimit-Reset- Seconds until that class’s window resets.
RateLimit-Policy- The policy for that class, e.g.
600;w=60;name="order".
The same budget is also sent under the GitHub-style aliases X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset, for libraries that expect those names. One difference to note: X-RateLimit-Reset is an absolute UTC epoch-seconds time (when the window resets), whereas RateLimit-Reset above is the number of seconds remaining.
Every response also carries an X-Request-Id — a correlation id for that request. Send your own X-Request-Id and we echo it back; omit it and we generate one. Quote it when you contact support so we can trace the exact call in our logs.
Exceed a class’s budget and the call returns 429. The response adds a Retry-After header (seconds to wait) and a body naming the bucket (the request class), its limit, and the retryAfterSeconds until it clears. Back off until the window resets, then retry.
{
"error": "rate_limited",
"message": "Too many order requests for this API key: 600 per minute. Retry in 18s.",
"bucket": "order",
"limit": 600,
"retryAfterSeconds": 18
} Errors #errors
Every REST error uses the same envelope and a meaningful HTTP status. error is a stable machine code; message is human-readable. Validation failures add a details array naming the offending fields.
Each code below says whether sending the same request again can help, under Retry?. A code marked temporary is safe to retry after a wait; back off between tries, and honour Retry-After when the response carries it. Use the filter, the status and the kind to narrow the list.
{
"error": "BROKER_REJECTED",
"message": "Broker rejected the order: invalid volume",
"details": [ /* present only on VALIDATION_ERROR */ ]
} 10 of 77 codes shown
The request body or params failed validation. A details array lists the offending fields.
Retry? Not as it is. Fix what the description names, then send it again. details names the fields.
Kind: Request and auth
The broker rejected the login — wrong account number, password, or server. Returned by POST /v1/sessions and POST /v1/accounts/:id/reconnect. Fix the detail and retry. A refused password is never stored, and when it was sent for an account that is already connected the account stays connected as it was. When you sent no password and the remembered one was refused, the body also carries details: { reason: "CREDENTIAL_REJECTED", credentialRejectedAt: "<time>" } and the account’s credentialRejectedAt is set to that time — connect again with the current password. The same status and code are also answered when the broker accepted the login but the account did not become ready in time: the body then carries details: { reason: "ACCOUNT_NOT_READY", credentialRejected: false, retryAfterSeconds } and a Retry-After header — the password was not rejected and nothing is marked on the account; retry after that many seconds (30 the first time, doubling up to 15 minutes while the account stays not ready). On MetaTrader 4 the broker gives one answer for a wrong password and for an account that server does not accept, so both read as a refused password there.
Retry? Not as it is. Fix what the description names, then send it again. With details.reason "ACCOUNT_NOT_READY" the password was not refused: send the same request again after retryAfterSeconds.
Kind: Accounts and connecting
Could not reach the broker (network/endpoint down). Retry shortly. (A wrong password no longer maps here — see BROKER_AUTH_FAILED.)
Retry? Yes, after a wait. Back off between tries.
Kind: Temporary: retry
The account is not connected. Call POST /v1/sessions with credentials to reconnect. When the cause is a remembered password the broker refused, the body also carries details: { reason: "CREDENTIAL_REJECTED", credentialRejectedAt: "<time>" } — reconnect with the current password.
Retry? Not as it is. Fix what the description names, then send it again. Reconnect with POST /v1/sessions, then send it again.
Kind: Accounts and connecting
The broker refused the order/close/modify. The reason is in message (e.g. bad volume, market closed, stop level), with the broker’s return code where it gave one. Refusals with a well-known meaning use their own code instead — MARKET_CLOSED, NO_MONEY, INVALID_VOLUME, INVALID_STOPS, INVALID_PRICE, INVALID_EXPIRATION, INVALID_REQUEST, TRADE_DISABLED and similar — on MT4 and MT5 alike. On MT4, INVALID_REQUEST (retcode 3) on a market order is also how a broker refuses a symbol it runs in instant- or request-execution mode; see executionMode on GET /v1/accounts/:id/symbol-specs. The same status and code are also used when an order, close or cancel failed on our side rather than at the broker; message then says which case it is — it could not be sent and nothing was sent to the broker, or it was sent and no answer came back so the outcome is unknown, or it is not known whether it reached the broker. In the last two cases read GET /v1/accounts/:id/positions (or /orders) before you retry. A modify (SL / TP or a pending order) answers the first case the same way — 422, "could not be sent" — and the other two as 409 TRADE_UNCONFIRMED.
Retry? Not as it is. Fix what the description names, then send it again. message carries the broker’s reason.
Kind: Orders and trading
Trading is disabled for the symbol or the account at the broker. Also returned, before anything is sent to the broker, for a market order or close on an MT4 symbol whose executionMode is "instant" or "request" — those cannot be traded through the API yet.
Retry? No. The same request gets the same answer.
Kind: Orders and trading
The broker login is read-only (it was connected with an investor password), so orders, closes, modifies and cancels are not permitted; nothing was sent to the broker. Reconnect the account with its master (trading) password to trade. The account object shows readOnly: true.
Retry? Not as it is. Fix what the description names, then send it again. Reconnect the account with its master (trading) password.
Kind: Orders and trading
The order, close, modify or cancel was sent to the broker but its answer did not arrive in time, or the connection to the broker was lost before it could — so the outcome is unknown; it may have executed. This is not a rejection. Read GET /v1/accounts/:id/positions (or /orders) to see what happened before you retry; the response is not stored, so retrying with the same Idempotency-Key sends the request again. In a batch response the item carries code TRADE_UNCONFIRMED.
Retry? Check first. The outcome is unknown: read the account before you send it again.
Kind: Orders and trading
The position ticket is not open on this account.
Retry? No. The same request gets the same answer.
Kind: Orders and trading
A reconnect carried a password for an account that is already connected, the password is not the one the account is connected with, and it cannot be tested while the account stays connected. Nothing was changed: the account is still connected and its stored password is untouched. Disconnect the account (DELETE /v1/sessions/:accountId), then connect again with the new password. Returned by POST /v1/accounts/:id/reconnect.
Retry? Not as it is. Fix what the description names, then send it again. Disconnect the account, then connect again with the new password.
Kind: Accounts and connecting
The broker refused the expiry of a good-till-date order: the symbol does not allow a specific expiry time, or the time is not acceptable to it (for example too close to now). No order was placed.
Retry? Not as it is. Fix what the description names, then send it again. Send another expiry, or none.
Kind: Orders and trading
No broker account with that id belongs to your key.
Retry? Not as it is. Fix what the description names, then send it again. Use an account id this key can see.
Kind: Accounts and connecting
That broker account is already linked to another TickerAll customer. Returned by POST /v1/sessions. It stays linked to them until they remove it, connected or not.
Retry? No. The same request gets the same answer.
Kind: Accounts and connecting
You already have this broker account connected, under an API key scope the calling key cannot see (another key’s isolated account, or the shared pool when the calling key is isolated). Returned by POST /v1/sessions; nothing is connected. Use the key that owns it, or move it first with POST /v1/accounts/:id/migrate-key.
Retry? Not as it is. Fix what the description names, then send it again. Use the key that owns the account.
Kind: Accounts and connecting
This API key may not make this call; message says why. A read-only key on any trade call (removing an account, ending its session and the always-hot setting are allowed for read-only keys).
Retry? No. The same request gets the same answer. Use a key that may make this call.
Kind: Plans and keys
Live account on Free outside the Terminal, or a second one at once. API live starts at Trader.
Retry? Not as it is. Change the plan or the limit the description names, then send it again.
Kind: Plans and keys
That broker account is reserved by TickerAll for the public demo and cannot be attached.
Retry? No. The same request gets the same answer.
Kind: Accounts and connecting
You hit your plan’s broker-account cap. Upgrade, or contact us for Enterprise.
Retry? Not as it is. Change the plan or the limit the description names, then send it again.
Kind: Plans and keys
Trader/Pro: this connect would pass the account capacity you pay for, so the account was not connected. details has currentAccounts, nextAccountCostUsd, newMonthlyTotalUsd. Raise the capacity in Billing, or turn on automatic capacity there. With automatic capacity on, you only see this when the increase could not be paid or your own limit is reached — details.autoCapacity then has reason, message and (when paying fixes it) payUrl.
Retry? Not as it is. Change the plan or the limit the description names, then send it again. Raise the capacity in Billing, or turn on automatic capacity.
Kind: Plans and keys
The server name could not be resolved — it is not a known MT4/MT5 server. Use the exact name your terminal shows (MT5 servers are usually "Broker-MT5…"). No account row is left behind by a failed attempt. details.discovery is "not-found" when the name was checked and does not exist, or "failed" when the lookup itself failed (retry; the name may be fine). On "not-found", details.suggestions lists up to three close server names, best first (empty when none is close); they are suggestions only and are never connected automatically.
Retry? Not as it is. Fix what the description names, then send it again. Use the exact server name your terminal shows.
Kind: Accounts and connecting
The broker refused the account itself (disabled, archived, expired). Fix it in your broker portal; retrying will not help. This is not a refused password: a connect that ends in it never carries details.reason "CREDENTIAL_REJECTED", does not set credentialRejectedAt, and leaves a remembered password in place.
Retry? Not as it is. Fix what the description names, then send it again. The fix is in your broker portal, not in the request.
Kind: Accounts and connecting
The broker connection is being re-established — for example the broker dropped the session and it is logging in again. Nothing is wrong with the request, and on an order, close, modify or cancel nothing was sent to the broker, so it is safe to retry with the same Idempotency-Key. Wait Retry-After seconds and retry; if the connection cannot be restored the account goes cold and calls return BROKER_ACCOUNT_NOT_HOT. On MT4, GET /positions, GET /orders, close-all and cancel-all also answer this in the first moments of a connection when the broker has not yet sent the account’s open trades — rather than a list that could be read as complete.
Retry? Yes, after a wait. Back off between tries. Wait Retry-After seconds. On an order, close, modify or cancel, send it again with the same Idempotency-Key so it cannot execute twice.
Kind: Temporary: retry
Always-hot needs a paid plan: Trader ($0.99/mo per connection) or Pro / Enterprise (included).
Retry? Not as it is. Change the plan or the limit the description names, then send it again.
Kind: Plans and keys
DELETE /v1/accounts/:id could not yet destroy the account’s remembered password, so the account was not removed. Retry shortly.
Retry? Yes, after a wait. Back off between tries.
Kind: Temporary: retry
Remembered credentials (server-side password storage, opt-in) are available on the Pro and Enterprise plans.
Retry? Not as it is. Change the plan or the limit the description names, then send it again.
Kind: Plans and keys
Too many requests for this API key this minute. Budgets per key: 300/min order writes (a bulk call counts once), 600/min candles and history, 120/min POST /v1/sessions, 2000/min everything else. Wait Retry-After seconds; every response carries RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset (seconds) for its budget.
Retry? Yes, after a wait. Back off between tries. Wait Retry-After seconds.
Kind: Temporary: retry
White-label seats are not enabled for your key (the feature is off, or your plan is not Enterprise). Every /v1/seats call, acted-as-seat resolution, and every seat token return this until you enable seats (POST /v1/seats/enablement). Enterprise opt-in.
Retry? Not as it is. Change the plan or the limit the description names, then send it again. Enable seats on your key first.
Kind: Plans and keys
POST /v1/seats with an externalId that already exists for your key. Use PATCH to change it, or pick another id.
Retry? Not as it is. Fix what the description names, then send it again. Use PATCH, or another externalId.
Kind: Plans and keys
No seat with that externalId belongs to your key.
Retry? No. The same request gets the same answer.
Kind: Plans and keys
A seat create/patch (or an auto-create on connect) whose maxConnections would push Σ(seat caps) over your reserved account capacity. Shrink or remove a seat to free capacity, or raise your reserved capacity.
Retry? Not as it is. Change the plan or the limit the description names, then send it again. Or shrink or remove a seat first.
Kind: Plans and keys
A connect targets a seat already at its connection cap. Raise the seat’s maxConnections or free one of its connections.
Retry? Not as it is. Change the plan or the limit the description names, then send it again. Or free one of the seat’s connections first.
Kind: Plans and keys
PATCH /v1/seats/:externalId would set maxConnections below the seat’s current connectionsUsed. Disconnect accounts first, or set a higher cap.
Retry? Not as it is. Fix what the description names, then send it again. Disconnect accounts first, or set a higher cap.
Kind: Plans and keys
DELETE /v1/seats/:externalId while the seat still holds live connections. Disconnect them before deleting the seat.
Retry? Not as it is. Fix what the description names, then send it again. Disconnect the seat’s accounts first.
Kind: Plans and keys
DELETE /v1/seats/:externalId/tokens/:tokenId for a tokenId that is not this seat’s token.
Retry? No. The same request gets the same answer.
Kind: Plans and keys
Unexpected server error. Safe to retry idempotent calls.
Retry? Yes, after a wait. Back off between tries. On an order, close, modify or cancel, send it again with the same Idempotency-Key so it cannot execute twice.
Kind: Temporary: retry
The path is not an API route, or what it names is not there for this key: an account, a symbol on the account, a copy set or one of its followers. message says which. Check the path and the ids; the same request gets the same answer.
Retry? No. The same request gets the same answer. Check the path and the ids.
Kind: Request and auth
This Idempotency-Key was already used for a different request (another body or another endpoint). The request is neither replayed nor executed. An Idempotency-Key identifies one request: use a new key for a new request, or resend the identical request to replay its result.
Retry? Not as it is. Fix what the description names, then send it again. Use a new key for a new request.
Kind: Request and auth
The cursor on a history read is malformed or was issued by a different endpoint. Pass nextCursor back exactly as returned, to the same endpoint. Also answered when a cursor cannot be continued exactly because the times of the account’s history were on a different clock when it was issued (the broker’s clock offset was not known yet): start the walk again without a cursor.
Retry? Not as it is. Fix what the description names, then send it again. Pass nextCursor back unchanged, or start the walk again without a cursor.
Kind: Candles and history
A from or to value on a history read could not be read as a time. Use ISO-8601 (2026-10-01 or 2026-10-01T12:00:00Z) or epoch seconds or milliseconds. A digits-only value shorter than 9 digits is not read as a time: write a date as 2026-10-01, not 20261001.
Retry? Not as it is. Fix what the description names, then send it again.
Kind: Candles and history
GET /v1/accounts/:id/candles was called without a symbol. Add ?symbol=. The body carries the code only, with no message.
Retry? Not as it is. Fix what the description names, then send it again.
Kind: Candles and history
GET /v1/accounts/:id/candles: from and to must be sent together, both must be readable as times, and from must be before to. message says which rule failed and names the accepted formats. For a look-back window send hours instead.
Retry? Not as it is. Fix what the description names, then send it again.
Kind: Candles and history
GET /v1/accounts/:id/candles: the window is longer than about 5 years, or would return more than 100,000 bars at the chosen timeframe. The body carries maxBars and estimatedBars (and maxWindowDays for a from/to range). Use a coarser timeframe or a shorter window, and walk a long range in several calls.
Retry? Not as it is. Fix what the description names, then send it again. Narrow the window or use a coarser timeframe.
Kind: Candles and history
Too many candle or history requests are in flight for this account, and none finished in time to make room for this one. Nothing is wrong with the request. Wait Retry-After seconds (5) and send it again; running fewer of these requests at once on one account avoids it.
Retry? Yes, after a wait. Back off between tries. Wait Retry-After seconds (5).
Kind: Temporary: retry
The broker connection did not answer in time (the limit is two minutes). Wait Retry-After seconds (5) and send it again. On a candle read, narrow the window if it is a large range. On an order, close, modify or cancel the request may already have reached the broker: send it again with the same Idempotency-Key, or read the account’s positions and orders first.
Retry? Yes, after a wait. Back off between tries. Wait Retry-After seconds (5). On an order, close, modify or cancel, send it again with the same Idempotency-Key so it cannot execute twice.
Kind: Temporary: retry
Connecting the account could not be finished in time, and the broker never gave a verdict on it. This is not a refused password. Returned by POST /v1/sessions and POST /v1/accounts/:id/reconnect. Try again; if it repeats on the same account, check that the account number and the server are exactly as your terminal shows them.
Retry? Yes, after a wait. Back off between tries. If it repeats on the same account, check the account number and the server.
Kind: Temporary: retry
The broker closed the connection while the login was being set up, before it accepted or refused the account. Returned by POST /v1/sessions and POST /v1/accounts/:id/reconnect. If the account is disabled or invalid, fix it in your broker portal. Otherwise try again after a pause, not in a tight loop: repeated failures on the same account are rate-limited.
Retry? Yes, after a wait. Back off between tries. Leave a pause between attempts, and check the account at your broker if it repeats.
Kind: Temporary: retry
Too many new logins to this broker in a short time: TickerAll paces new connections to a broker, and this one was held back before the broker was contacted. It is not a broker problem and not a credential problem, and your connected accounts are unaffected. Wait Retry-After seconds, then connect again; when you connect many accounts, space the calls out.
Retry? Yes, after a wait. Back off between tries. Wait Retry-After seconds.
Kind: Temporary: retry
Too many failed connection attempts for this account in a row: the broker keeps rejecting it, so further attempts are refused for a while without contacting the broker. Fix the account or its credentials first; message says how many seconds to wait before the next attempt.
Retry? Yes, after a wait. Back off between tries. Fix the account or its credentials first, and wait the seconds message gives.
Kind: Temporary: retry
TickerAll cannot start a new broker connection right now. Nothing is wrong with your request or your credentials. Try again after a short wait, backing off between tries; if it keeps happening, contact support. Other codes that begin with MESH_ mean the same and are handled the same way.
Retry? Yes, after a wait. Back off between tries. If it keeps happening, contact support.
Kind: Temporary: retry
TickerAll cannot start a new broker connection right now. Nothing is wrong with your request or your credentials. Try again after a short wait, backing off between tries; if it keeps happening, contact support. Other codes that begin with MESH_ mean the same and are handled the same way.
Retry? Yes, after a wait. Back off between tries. If it keeps happening, contact support.
Kind: Temporary: retry
The connection for this account is still starting up. Nothing is wrong with your request or your credentials. Try again in a moment, backing off between tries; if it keeps happening, contact support. Other codes that begin with MESH_ mean the same and are handled the same way.
Retry? Yes, after a wait. Back off between tries. If it keeps happening, contact support.
Kind: Temporary: retry
The connection for this account was being restarted when the request arrived. Nothing is wrong with your request or your credentials. Try again in a moment, backing off between tries; if it keeps happening, contact support. Other codes that begin with MESH_ mean the same and are handled the same way.
Retry? Yes, after a wait. Back off between tries. If it keeps happening, contact support.
Kind: Temporary: retry
A bulk call (/v1/bulk/…) on a plan below Pro. Bulk operations across accounts are on Pro and Enterprise; on Free and Trader use the per-account endpoints, or upgrade.
Retry? Not as it is. Change the plan or the limit the description names, then send it again.
Kind: Plans and keys
A Copy Trading call on a plan below Pro. Copy Trading is on Pro and Enterprise.
Retry? Not as it is. Change the plan or the limit the description names, then send it again.
Kind: Plans and keys
terminalType "WEB" or "CLIENT" on a plan below Pro, on POST /v1/sessions, POST /v1/accounts/:id/reconnect or POST /v1/accounts/:id/migrate. Choosing the terminal a connection appears as is a Pro feature. Leave terminalType out for the default ("MOBILE"), or upgrade to Pro.
Retry? Not as it is. Change the plan or the limit the description names, then send it again.
Kind: Plans and keys
This API key is restricted to investor (read-only) logins, and the broker did not confirm this login as read-only, so the connection was refused and nothing stays connected. Connect with the account’s investor password, or use a key without the investor-only restriction.
Retry? Not as it is. Fix what the description names, then send it again. Connect with the investor password, or use another key.
Kind: Plans and keys
POST /v1/accounts/:id/migrate while the account has an operation in flight (a trade or account call, or another switch). The terminal type is switched only while the account is idle. No change was made; try again in a moment.
Retry? Yes, after a wait. Back off between tries. Once the account is idle.
Kind: Accounts and connecting
POST /v1/accounts/:id/migrate could not bring up the connection on the new terminal type. The account is unchanged and still connected on its previous one. Try again.
Retry? Yes, after a wait. Back off between tries.
Kind: Accounts and connecting
POST /v1/accounts/:id/migrate did not finish in time. No change was made: the account keeps its previous terminal type. Try again.
Retry? Yes, after a wait. Back off between tries.
Kind: Accounts and connecting
POST /v1/accounts/:id/migrate-key with an API key, naming an isolated key other than the calling key. Over an API key the only isolated target is the calling key itself: make the call from that isolated key to claim the account into it, or move the account in the dashboard.
Retry? Not as it is. Fix what the description names, then send it again. Call from the isolated key itself, or use the dashboard.
Kind: Accounts and connecting
POST /v1/accounts/:id/migrate-key from one isolated key straight to another. An account moves only between the shared pool and an isolated key: migrate it to the shared pool first, then into the other key.
Retry? Not as it is. Fix what the description names, then send it again. Go through the shared pool.
Kind: Accounts and connecting
DELETE /v1/accounts/:id on an account that is the master of a copy-trading set. The account was not removed. Delete the copy set first, then remove the account. (A follower account can be removed freely.)
Retry? Not as it is. Fix what the description names, then send it again. Delete the copy set first.
Kind: Accounts and connecting
terminalType "WEB" without a webTerminalUrl. A web terminal belongs to one broker, so its address must be supplied (for example https://mt5.yourbroker.com). Send webTerminalUrl, or connect with "MOBILE".
Retry? Not as it is. Fix what the description names, then send it again.
Kind: Accounts and connecting
No MT5 web terminal answered at the webTerminalUrl you sent. Check that it is your broker’s MT5 web-terminal address, not a trading page of its website. If the broker has no MT5 web terminal, connect the account with terminalType "MOBILE" instead.
Retry? Not as it is. Fix what the description names, then send it again. Correct the webTerminalUrl, or connect with "MOBILE".
Kind: Accounts and connecting
Your plan’s limit on live broker accounts is reached, so this live account cannot be connected. This is separate from TIER_ACCOUNT_CAP_REACHED, which is the limit on all accounts together. message states your plan’s limit; the limits per plan are on the Pricing page. Disconnect a live account, or upgrade.
Retry? Not as it is. Change the plan or the limit the description names, then send it again. Or disconnect a live account first.
Kind: Plans and keys
Your plan’s limit on demo broker accounts is reached, so this demo account cannot be connected. This is separate from TIER_ACCOUNT_CAP_REACHED, which is the limit on all accounts together. message states your plan’s limit; the limits per plan are on the Pricing page. Disconnect a demo account, or upgrade.
Retry? Not as it is. Change the plan or the limit the description names, then send it again. Or disconnect a demo account first.
Kind: Plans and keys
webTerminalUrl or webEndpoint does not point at a public address: its host is a local or private address, or does not resolve. message names the field and the reason. Send the broker’s public web-terminal address.
Retry? Not as it is. Fix what the description names, then send it again.
Kind: Accounts and connecting
A trade call on an account set to terminalType "WEB" that has not completed a connection yet, so whether it is a demo or a live account is not verified. TickerAll does not trade on an unverified account. Connect the account first (POST /v1/sessions), then send the call again.
Retry? Not as it is. Fix what the description names, then send it again. Connect the account first.
Kind: Orders and trading
A bulk call named one or more accounts that cannot be used, so nothing was sent to any account. problems lists each one as { accountId, reason }: "not_found" is an account this key cannot see; "not_demo" is an account that is not confirmed as a demo account where bulk trading is open to demo accounts only. Fix the list and send the call again.
Retry? Not as it is. Fix what the description names, then send it again.
Kind: Orders and trading
Plans & limits #pricing
Tiers, account caps, always-hot, and prices live on the pricing page — the single source of truth for what each plan includes and costs. This section covers only what plans mean for the API: what’s metered, and the responses that gate each tier.
/v1/bulk/*) and Copy Trading (/v1/copy/*) require a Pro or Enterprise plan. Choosing a non-mobile connection origin (the web or desktop terminal) is a Pro feature too. The plan-gating responses you’ll see from the API:
FREE_TIER_LIVE_REJECTED — a live account on Free from the API, SDKs or MCP (Free allows one, in the Terminal).
403 TIER_ACCOUNT_CAP_REACHED — you’ve hit your plan’s account cap. On Pro, demo and live accounts together count toward the 300 cap.
402 OVERAGE_CONFIRMATION_REQUIRED — on Trader or Pro, this connect would take you past the capacity you pay for. The account is not connected; details has currentAccounts, nextAccountCostUsd and newMonthlyTotalUsd. Raise the capacity in Billing, or turn on automatic capacity there.
403 COPY_REQUIRES_PRO — a Copy Trading call on a plan below Pro.
403 on the Free and Trader plans — they need Pro or Enterprise. Automatic capacity (monthly Trader and Pro plans, off by default, switched on in Billing only) raises your paid capacity by itself when a connect needs it, up to a limit you set. On a card plan the prorated difference is added to your next invoice. On prepaid credit the added account connects at once and is charged from your balance only once it has been used for an hour in total; removed before that, it costs nothing. The API tells you each time:
billing.capacityRaised- The connect that raised it returns
billing.capacityRaised(from,to,monthlyFromUsd,monthlyToUsd,chargedNowUsd—0on a card plan, where it goes on the next invoice; on prepaid creditchargedAfterUseMinutessays how much use is needed before it is charged) and a readablebilling.warning. The field is absent on every other response. autoCapacityGET /v1/billing/usagereturnsautoCapacity:enabled,maxAccounts, andnextAccountRaisesBillwithnextAccountCostUsdwhen the next account you connect will raise the bill — check it before a batch of connects.details.autoCapacity- If the payment does not go through, or your limit is reached, the connect is refused with the same
402, anddetails.autoCapacitysays why (reason,message, and apayUrlwhen paying fixes it). Nothing is charged or granted in that case.
For the actual tiers, prices, caps, and overage, see the pricing page. Need more than Pro covers? Talk to us about Enterprise.
Ready to ship?
Grab an API key and make your first POST /v1/sessions in five minutes.