Websockets
Live feed of payouts, big payouts, rule changes, firm pause signals, daily recaps, deals, new account types and firm page changes over wss://fundedlytics.com/ws, with resume.
wss://fundedlytics.com/ws streams events as they are indexed. All frames are JSON text.
Access
Any Fundedlytics API key opens the websocket from anywhere (account settings, API keys).
- Free key: the public channels
payouts(payouts of $500 or more),big_payouts,rule_changes,firm_status,dealsandlaunches, with thefirms/minAmountfilters, 5 subscriptions per connection. - Pro key ($9.99/month): every channel, adding
dailyandsite_change, andpayoutswith every payout.
Without a key the upgrade is refused with HTTP 401 (api_key_required): the keyless feed serves the
fundedlytics.com pages only. A free key asking for a Pro channel gets an unauthorized error frame naming it.
How fast. Each firm's key pages (its rules, FAQ, payout policy, terms and pricing pages, the homepage promo area and the pages our rule readers use) are checked every 6 to 8 minutes with a cheap fingerprint. A change must still be there on the next check, about 5 minutes later, before anything is sent; then the full rule read, deal scan or page diff runs and the event reaches websocket clients within seconds. So a firm's change usually arrives 5 to 15 minutes after it goes live. A full re-read of every rule page every 6 hours remains as a safety net.
Send the key as an X-API-Key header on the upgrade request. Clients that cannot set headers, such as
browsers and Node's built-in WebSocket, can use wss://fundedlytics.com/ws?key=<key> instead. Keep keys
out of browser code you ship to users.
Protocol
server → {"type":"hello","serverTime":"2026-12-01T12:00:00Z","authenticated":true,"limits":{"maxSubscriptions":20}}
client → {"type":"subscribe","channels":["payouts","big_payouts","rule_changes"],"firms":["tradeify"],"minAmount":1000}
server → {"type":"subscribed","channels":["payouts","big_payouts","rule_changes"],"firms":["tradeify"]}
server → {"type":"event","event":{"id":"payout:104","type":"payout","at":"…","firm":"tradeify","url":"https://fundedlytics.com/firms/tradeify","payout":{…}}}
client → {"type":"ping"} (every 25 s)
server → {"type":"pong"}
client → {"type":"unsubscribe","channels":["big_payouts"]}
server → {"type":"error","code":"too_many_subscriptions","message":"…"}
Limits and errors
| Free key | Pro key | |
|---|---|---|
| Connections | 10 per key | 10 per key |
| Subscriptions per connection | 5 | 20 |
Replay on since |
up to 100 events | up to 1,000 events |
- Over the connection cap the upgrade is refused with HTTP
429(Retry-After: 30). An unknown or revoked key is refused with401. - Client frames: JSON text, at most 4 KB, at most 30 per 10 s (more closes the socket with code
1008). - The server also sends WebSocket ping frames every 25 s and drops connections that stop answering. A client
that cannot keep up with the stream is closed with code
1013instead of being buffered without bound.
Channels → event types
| Channel | Event type |
Payload |
|---|---|---|
payouts |
payout |
payout (Payout + id) |
big_payouts |
big_payout |
payout, at or above the firm's threshold (default $10,000) |
rule_changes |
rule_change |
change (date, field, before, after, summary, source) |
firm_status |
firm_status |
status paused/resumed, hoursSinceLastPayout, typicalGapHours |
daily |
firm_daily |
day, paid, payouts, wallets, vsPrevDayPct (UTC day recap) |
deals |
deal |
deal (id, name, title, kind, pctMax, code, appliesTo, end, source, status active/ended, endedOn) |
launches |
launch |
launch (id, name, title, kind, sizes, priceMin, priceMax, targetPct, maxLossPct, splitPct, summary, date, source) |
site_change |
site_change |
change (page, role rules/faq/payout/terms/plans, name, summary, added, removed, firstSeenAt, detectedAt) |
Every event has id, type, at, firm (slug or null) and url (the fundedlytics.com page for it).
Event ids are stable strings: payout:<payout id>, big_payout:<payout id>, rule_change:<firm>:<hash>,
firm_daily:<firm>:<YYYY-MM-DD>, firm_status:<firm>:paused|resumed:<n>, deal:<deal id> (new deal),
deal_ended:<deal id> (the deal ended), launch:<launch id> and site_change:<firm>:<hash>. A big payout arrives twice (as big_payout and payout), with the same payout.id.
The JSON Schemas are FeedEvent, WsClientMsg and WsServerMsg in the OpenAPI spec.
Every accepted subscribe is answered with {"type":"subscribed","channels":[…],"firms":[…] | null} (after any
since replay), so a client knows the subscription is live.
A site_change event means the visible copy of one of the firm's key pages changed and stayed changed on two checks.
Dates, counters, cookie banners, chat widgets, tickers, markup and styling are ignored, and so is an A/B variant that
flips back. summary is a short plain diff, for example
Changed: "Maximum daily loss: 5% of the starting balance." to "Maximum daily loss: 4% of the starting balance.";
added and removed hold the changed lines (up to 20 each). Read the page itself before acting on it.
A firm_status: paused event means the firm has sent no on-chain payouts for much longer than its usual gap.
It signals that payouts may be paused. It is not proof: payouts could be going out off-chain.
A deal event with deal.status: "active" is a public promotion the firm started; "ended" means a deal seen
running before has stopped (end date passed or the offer is gone from the firm's page), with deal.endedOn as
YYYY-MM-DD. Codes are only ones the firm publishes itself. A launch event is a new plan, account size or platform
dated within the last 14 days. The firms filter works on both channels.
Resume after a disconnect
- Persist the
idof the last event you processed. - Reconnect with exponential backoff (for example 0.5 s doubling to 30 s, reset after
hello). - Send your
subscribeagain with"since": "<last id>"(an event id such aspayout:104; an ISO timestamp also works). The server replays missed events (limited retention), then continues live. If the id is no longer known you get{"type":"error","code":"bad_request","message":"since cursor not found; resubscribe without since"}: subscribe again withoutsince. - De-duplicate by
id.
For gaps longer than the retention window, backfill payouts with GET /api/payouts/since?cursor=<payout id> and rule
changes with GET /api/rule-changes?since=<ISO>.
Node (22+, no dependencies)
import { readFileSync, writeFileSync } from 'node:fs';
let since = (() => { try { return readFileSync('.cursor', 'utf8'); } catch { return undefined; } })();
let backoff = 500;
function connect() {
// Node's built-in WebSocket cannot set headers: pass the API key as ?key=
const ws = new WebSocket(`wss://fundedlytics.com/ws?key=${process.env.FUNDEDLYTICS_API_KEY}`);
let timer;
ws.onopen = () => {
ws.send(JSON.stringify({ type: 'subscribe', channels: ['payouts', 'rule_changes'], minAmount: 1000, ...(since && { since }) }));
timer = setInterval(() => ws.send('{"type":"ping"}'), 25_000);
};
ws.onmessage = ({ data }) => {
const msg = JSON.parse(data);
if (msg.type === 'hello') backoff = 500;
if (msg.type !== 'event') return;
console.log(msg.event.type, msg.event.firm, msg.event.payout?.amount ?? msg.event.change?.summary);
since = msg.event.id;
writeFileSync('.cursor', since);
};
ws.onclose = () => { clearInterval(timer); setTimeout(connect, backoff); backoff = Math.min(backoff * 2, 30_000); };
}
connect();
Python (websockets 14+)
import asyncio, json, os, pathlib
from websockets.asyncio.client import connect # pip install websockets
from websockets.exceptions import ConnectionClosed
CURSOR = pathlib.Path(".cursor")
KEY = os.environ["FUNDEDLYTICS_API_KEY"] # a Fundedlytics API key (Pro for site_change and daily)
async def main():
backoff = 0.5
while True:
try:
headers = {"X-API-Key": KEY}
async with connect("wss://fundedlytics.com/ws", additional_headers=headers, ping_interval=None) as ws:
sub = {"type": "subscribe", "channels": ["payouts", "rule_changes"], "minAmount": 1000}
if CURSOR.exists():
sub["since"] = CURSOR.read_text()
await ws.send(json.dumps(sub))
async def keepalive():
while True:
await asyncio.sleep(25)
await ws.send('{"type":"ping"}')
ka = asyncio.create_task(keepalive())
try:
async for raw in ws:
msg = json.loads(raw)
if msg["type"] == "hello":
backoff = 0.5
elif msg["type"] == "event":
print(msg["event"]["type"], msg["event"]["firm"])
CURSOR.write_text(msg["event"]["id"])
finally:
ka.cancel()
except (OSError, ConnectionClosed):
pass
await asyncio.sleep(backoff) # also after a clean close
backoff = min(backoff * 2, 30)
asyncio.run(main())
Dependency-free versions with resume (stream.mjs, stream.py) ship in the Agent Skill scripts/ folder.


