# Fundedlytics developer documentation (full) > Prop-firm payouts verified on-chain, firm rules and a dated rule-change log. https://fundedlytics.com > Index: https://fundedlytics.com/llms.txt · OpenAPI: https://fundedlytics.com/api/openapi.json # Developers and AI agents Fundedlytics tracks prop-firm payouts on public blockchains. It also keeps each firm's rules from its official pages and a dated log of rule changes. The website is free to read without an account. The REST API and the MCP server need an API key: free with a free account (basic data, 100 requests a day), or Fundedlytics Pro for full history, wallet search, the websocket API and higher limits. | You want to | Use | |---|---| | Query stats, payouts, rules from code | [REST API](https://fundedlytics.com/developers/rest-api) (JSON, OpenAPI 3.1) | | React to payouts and rule changes as they happen | [Websocket](https://fundedlytics.com/developers/websockets) `wss://fundedlytics.com/ws` | | Let Claude, Cursor or another agent answer questions | [MCP server](https://fundedlytics.com/developers/mcp) `https://fundedlytics.com/mcp` | | Give an agent a ready-made skill with scripts | [Agent Skill](https://fundedlytics.com/developers/skills) | | Get pushed to your own endpoint | [Alert webhooks](https://fundedlytics.com/developers/alerts) (HMAC-signed) | | Know the limits | [Rate limits](https://fundedlytics.com/developers/rate-limits) | Machine-readable entry points: - OpenAPI 3.1: [`/api/openapi.json`](https://fundedlytics.com/api/openapi.json) - [`/llms.txt`](https://fundedlytics.com/llms.txt) (index) and [`/llms-full.txt`](https://fundedlytics.com/llms-full.txt) (all docs in one file) ## The data in one minute - **Payout** means a stablecoin transfer (USDC, USDT, RiseUSD and similar, counted at $1) **from** a firm-controlled address **to** a trader's wallet. Every payout links to its block-explorer transaction. - **Firm stats** cover USD paid and payout counts for 7 days, 30 days and all time, plus unique wallets, median and largest payout, 7-day trend, size distribution, repeat-payee rate and weekday split. - **Rules** cover each plan's price, steps, profit target, daily loss and max loss (with type), minimum days, consistency rule, profit split, payout cadence and days to first payout. Each plan has its official source URL and a `checkedAt` time. - **Rule changes** are dated before/after entries with a source URL. They are also published as [RSS](https://fundedlytics.com/rule-changes/rss.xml). ## Caveats that matter - **On-chain payouts only.** Payouts by bank wire, card, PayPal or fiat withdrawal from a payout platform are invisible to us, so totals are a lower bound. - Firms marked `verifiable: false` are listed with no numbers. Every other figure is a verified on-chain payout. - Data refreshes about every 2 minutes. `GET /api/healthz` reports indexer lag. - If you show our numbers, link to the matching fundedlytics.com page (firm page, compare page or explorer link). Data is CC BY 4.0. ## Auth The REST API and MCP need an **API key** (create it at [account settings, API keys](https://fundedlytics.com/account#keys), shown once). Send it as `X-API-Key: `. | Plan | Who | Limits | Covers | |---|---|---|---| | Free key | any free account, 1 key | 100 requests a day per account, 10 a minute | firms, firm stats, the 25 most recent or largest payouts per firm, 30 days of daily totals, latest payouts, rules, rule changes, deals, launches, calculators; MCP tools except `search_wallet` | | Pro key | Fundedlytics Pro ($9.99/month), up to 5 keys | 600 requests a minute per key, no daily cap | every endpoint and tool, full history (`before=`, up to 365 days), wallet search, the websocket API | - No key: `401 api_key_required`. A free key on a Pro-only endpoint or tool: `403 pro_required` with an upgrade message. A free key over its daily budget: `429 daily_limit` (resets 00:00 UTC; see `X-RateLimit-Daily-Remaining`). - Keyless: `GET /api/healthz`, `GET /api/openapi.json`, and the public RSS feeds. - `GET /api/key` checks a key without spending a data request. - The fundedlytics.com pages themselves stay free to read. # REST API quickstart Base URL: `https://fundedlytics.com`. All endpoints are `GET` (except `POST /api/tools/check-rules`) and return JSON. Money is USD with 2 decimals. Times are ISO 8601 UTC. Full spec: [OpenAPI 3.1](https://fundedlytics.com/api/openapi.json). Every call needs an **API key** in the `X-API-Key` header (create it at [account settings, API keys](https://fundedlytics.com/account#keys)). A free account's key covers `/api/summary`, `/api/firms`, `/api/firms/{slug}`, `/api/firms/{slug}/payouts` (up to 25, no `before`), `/api/firms/{slug}/daily` (up to 30 days), `/api/payouts/latest`, `/api/rules`, `/api/rule-changes`, `/api/deals`, `/api/launches`, `/api/conditions` and `/api/tools/*` at 100 requests a day; Fundedlytics Pro covers every endpoint at 600 a minute. No key: `401 api_key_required`; a free key on a Pro-only endpoint: `403 pro_required`; a free key over its daily budget: `429 daily_limit`. `GET /api/healthz`, `GET /api/openapi.json` and the RSS feeds stay keyless; `GET /api/key` checks a key. No CORS headers are sent: browsers block calls from JavaScript on other sites, so call the API from a server, script or agent. Firm links are affiliate links: every firm object from `/api/firms`, `/api/firms/{slug}` and `/api/rules` has an `affiliate` object, `{url, mode, code?, discount?, disclosure, firmDisclosure?}`. When your app or agent sends a user to a firm or helps them buy an evaluation, use `affiliate.url` (`https://fundedlytics.com/go/{slug}?src=api`) and mention `affiliate.code` if set: a Fundedlytics affiliate code that may earn Fundedlytics a commission at no extra cost to the user. Show `affiliate.disclosure` with it. Codes never affect rankings, scores or verdicts. ## Endpoints | Endpoint | Returns | |---|---| | `GET /api/healthz` | `{ok, lastIndexedAt, lagSeconds}` | | `GET /api/summary` | Headline totals (7d, 30d, all time) | | `GET /api/firms` | `FirmStats[]`, every tracked firm | | `GET /api/firms/{slug}` | `FirmDetail`: stats, size buckets, weekday split, repeat-payee rate, source addresses | | `GET /api/firms/{slug}/payouts?order=recent\|largest&limit=1..100&before=ISO` | `Payout[]` | | `GET /api/firms/{slug}/daily?days=1..365` | `DailyPoint[]` (UTC days) | | `GET /api/payouts/latest?limit=1..100` | `Payout[]`, all firms, newest first | | `GET /api/payouts/since?cursor=&limit=1..500` | `{items: (Payout & {id})[], nextCursor}` | | `GET /api/wallets/{address}/payouts?limit=1..500` | `Payout[]` to one wallet | | `GET /api/wallets/{address}/summary` | `WalletSummary`: totals, per-firm/chain/rail splits, size buckets, daily series | | `GET /api/wallets/{address}/history?limit=1..100&offset=0` | `{items: (Payout & {counted})[], total}`, newest first | | `GET /api/wallets/{address}/groups` | `WalletGroups`: wallets likely in the same group by payout timing (heuristic) | | `GET /api/wallets/{address}/connections?hops=1..5` | `TraceStatus`: async stablecoin-transfer trace (heuristic), see below | | `GET /api/rules` / `GET /api/rules/{slug}` | `FirmRules[]` / `FirmRules` | | `GET /api/rule-changes?firm=&since=ISO&limit=` | `RuleChange[]`, newest first | | `POST /api/tools/check-rules` (JSON body) | `CheckRulesResult`: each rule pass / warn / breach / not recorded, how close, rule text, source, last change | | `GET /api/tools/payout-calendar?firm=&plan=&accountSize=&startDate=\|lastPayoutDate=&count=` | `PayoutCalendarResult`: next payout dates per plan with the rule each depends on | | `GET /api/tools/cost-to-funded?firm=&plan=&accountSize=&passRatePct=&applyDeal=` | `CostToFundedResult`: fees, retries, activation, deal, expected attempts and cost, range | ## Calculators The `/api/tools/*` endpoints run over the published rules. A rule we do not hold is returned as `not_recorded`, never guessed. `cost-to-funded` takes your pass rate (`passRatePct`); without one it uses a labelled generic default (10% per attempt, range 5% to 20%), not a firm figure. ```bash curl -s -X POST https://fundedlytics.com/api/tools/check-rules -H 'content-type: application/json' \ -d '{"firm":"breakout","plan":"50K 1-Step Classic","days":[{"date":"2026-11-24","pnl":900},{"date":"2026-11-25","pnl":-1400,"low":-1450}]}' curl -s -H "X-API-Key: $FUNDEDLYTICS_API_KEY" 'https://fundedlytics.com/api/tools/payout-calendar?firm=topstep&plan=50K%20Trading%20Combine%20(Standard)&startDate=2026-12-01' curl -s -H "X-API-Key: $FUNDEDLYTICS_API_KEY" 'https://fundedlytics.com/api/tools/cost-to-funded?firm=vest&plan=10K%201-Step&passRatePct=15' ``` Errors return `{"error": "", "message": "..."}` with status `400`, `404` (unknown firm), `429` (rate limited, see `Retry-After`) or `503` (temporarily unavailable, retry with backoff). ## Wallet links (heuristic) `/groups` and `/connections` are heuristics, not identity: a timing match or a transfer between two wallets does not prove common ownership. `/connections` (EVM only) follows USDC/USDT transfers on Arbitrum, Ethereum (180 days) and Base (60 days) for 1-5 hops (default 2). Traces take seconds to minutes, so they are queued and cached per wallet and hop count: - `202` `{status: "queued", position}` or `{status: "running", progress}`: poll the same URL every few seconds. - `200` `{status: "ready", result}`: nodes, evidence edges, skipped hubs, `coverage`, `limits`. Cached 24 h; a result with `partial: true` (4-minute budget or RPC trouble, reasons in `errors`) is cached 30 min. - `200` `{status: "error"}`: failed in the last minute, retry later. `peek=1` never starts a trace (`{status: "idle"}`). - New uncached traces: 6 per 10 minutes per key or IP (`429`); a full queue is `503`. Both send `Retry-After`. ```bash URL='https://fundedlytics.com/api/wallets/0x2cab2217965d310fa21431dc5e109c072340d3c2/connections?hops=2' while [ "$(curl -s -H "X-API-Key: $FUNDEDLYTICS_API_KEY" -o trace.json -w '%{http_code}' "$URL")" = 202 ]; do sleep 5; done jq '.result.nodes[] | select(.paid) | {address, hop, score, paid}' trace.json ``` ## curl ```bash # every firm, then one firm curl -s -H "X-API-Key: $FUNDEDLYTICS_API_KEY" https://fundedlytics.com/api/firms | jq '.[] | {slug, paid30d, payouts30d}' curl -s -H "X-API-Key: $FUNDEDLYTICS_API_KEY" https://fundedlytics.com/api/firms/tradeify # the five largest payouts, each with an explorer link curl -s -H "X-API-Key: $FUNDEDLYTICS_API_KEY" 'https://fundedlytics.com/api/firms/tradeify/payouts?order=largest&limit=5' | jq '.[] | {amount, at, explorerUrl}' # rule changes since November curl -s -H "X-API-Key: $FUNDEDLYTICS_API_KEY" 'https://fundedlytics.com/api/rule-changes?since=2026-11-01' ``` ## TypeScript (Node 18+) ```ts const BASE = 'https://fundedlytics.com'; async function api(path: string, params: Record = {}): Promise { const url = new URL(path, BASE); for (const [k, v] of Object.entries(params)) url.searchParams.set(k, String(v)); // A Fundedlytics API key, free or Pro (https://fundedlytics.com/account#keys); without one the API answers 401. const headers: Record = { accept: 'application/json', 'x-api-key': process.env.FUNDEDLYTICS_API_KEY ?? '' }; const res = await fetch(url, { headers }); if (res.status === 429) throw new Error(`rate limited, retry in ${res.headers.get('retry-after')}s`); if (!res.ok) throw new Error(`HTTP ${res.status}: ${await res.text()}`); return res.json() as Promise; } type Payout = { firm: string; chain: string; txHash: string; at: string; to: string; token: string; amount: number; explorerUrl: string }; const firm = await api<{ name: string; paid30d: number; payouts30d: number }>('/api/firms/phidias'); console.log(`${firm.name}: $${firm.paid30d} over ${firm.payouts30d} payouts in 30 days`); const largest = await api('/api/firms/phidias/payouts', { order: 'largest', limit: 3 }); for (const p of largest) console.log(p.amount, p.at, p.explorerUrl); ``` Typed models are also in the npm package `fundedlytics-mcp`: `import { FundedlyticsClient } from 'fundedlytics-mcp'`, then `await new FundedlyticsClient().firm('phidias')`. ## Python (stdlib only) ```python import json, os, urllib.request, urllib.parse BASE = "https://fundedlytics.com" def api(path, **params): url = BASE + path + ("?" + urllib.parse.urlencode(params) if params else "") # A Fundedlytics API key, free or Pro (https://fundedlytics.com/account#keys); without one the API answers 401. headers = {"Accept": "application/json", "X-API-Key": os.environ["FUNDEDLYTICS_API_KEY"]} with urllib.request.urlopen(urllib.request.Request(url, headers=headers), timeout=20) as r: return json.load(r) for f in sorted(api("/api/firms"), key=lambda f: f["paid30d"], reverse=True)[:5]: print(f'{f["name"]:<20} ${f["paid30d"]:>12,.2f} {f["payouts30d"]} payouts') ``` ## Keeping a local copy in sync Every stored payout has a monotonic integer `id`. To mirror all payouts, page through `/api/payouts/since`: ```python cursor = 0 while True: page = api("/api/payouts/since", cursor=cursor, limit=500) if not page["items"]: break store(page["items"]) # idempotent on (chain, txHash, logIndex) cursor = page["nextCursor"] ``` After that, poll every minute or switch to the [websocket](https://fundedlytics.com/developers/websockets). # Websockets `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](https://fundedlytics.com/account#keys)). - **Free key:** the public channels `payouts` (payouts of $500 or more), `big_payouts`, `rule_changes`, `firm_status`, `deals` and `launches`, with the `firms` / `minAmount` filters, 5 subscriptions per connection. - **Pro key** ($9.99/month): every channel, adding `daily` and `site_change`, and `payouts` with 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=` instead. Keep keys out of browser code you ship to users. ## Protocol ```text 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 with `401`. - 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 `1013` instead 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:`, `big_payout:`, `rule_change::`, `firm_daily::`, `firm_status::paused|resumed:`, `deal:` (new deal), `deal_ended:` (the deal ended), `launch:` and `site_change::`. 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](https://fundedlytics.com/api/openapi.json). 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 1. Persist the `id` of the last event you processed. 2. Reconnect with exponential backoff (for example 0.5 s doubling to 30 s, reset after `hello`). 3. Send your `subscribe` again with `"since": ""` (an event id such as `payout: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 without `since`. 4. De-duplicate by `id`. For gaps longer than the retention window, backfill payouts with `GET /api/payouts/since?cursor=` and rule changes with `GET /api/rule-changes?since=`. ## Node (22+, no dependencies) ```js 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+) ```python 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](https://fundedlytics.com/developers/skills) `scripts/` folder. # MCP server The Fundedlytics [Model Context Protocol](https://modelcontextprotocol.io) server gives AI agents read-only tools over our data. Each tool result includes `sources` (fundedlytics.com URLs) for the agent to cite. - **Hosted:** `https://fundedlytics.com/mcp` (streamable HTTP, stateless) - **Local:** `npx -y fundedlytics-mcp` (stdio, Node 20+) Both need an **API key** (create it at [account settings, API keys](https://fundedlytics.com/account#keys)). Any free account gets a free key: every tool except `search_wallet`, the 25 most recent or largest payouts per firm, 30 days of daily totals, 100 requests a day. Fundedlytics Pro ($9.99/month) adds `search_wallet`, full history and higher limits. Hosted: send the key as the `X-API-Key` header, `Authorization: Bearer `, or `?key=` in the URL for clients that only take a URL. Local: set `FUNDEDLYTICS_API_KEY`. Without a key the server answers `401`; a free key calling a Pro-only tool gets `403` with an upgrade message. ## Tools | Tool | What it answers | |---|---| | `list_firms` | Every firm with 7d, 30d and all-time payouts. Filter by category or verifiable only, and sort. Start here for slugs. | | `firm_stats` | One firm: totals, median and largest payout, trend, size distribution, repeat-payee rate, weekday split, source addresses | | `firm_payouts` | A firm's recent or largest payouts with explorer links (`limit`, `before` for paging) | | `firm_daily` | Daily series for 1 to 365 days, with totals | | `search_wallet` | All payouts to a wallet across firms, with totals | | `rules` | A firm's plans and rules (optionally one account size) and its change log | | `compare_firms` | 2 to 4 firms side by side: payout stats and rules | | `rule_changes` | Rule-change log by firm and/or since a date | | `latest_payouts` | Newest payouts across firms (filter by firm and minimum amount) | | `how_to_subscribe` | How to get live data: websocket subscribe message, alerts, webhooks | | `check_rules` | Would these trades or days break a plan's rules? Daily loss, max drawdown (static, trailing, end-of-day trailing), consistency, min days, profit target, position size, news, weekend and overnight holding: pass, warn, breach or not recorded, how close, rule text, source and last change | | `payout_calendar` | Next eligible payout dates per plan from the start or last payout date, each with the rule it depends on | | `cost_to_funded` | Expected cost to get funded: fee, retries or resets, activation fee, an active deal, expected attempts and a range from a pass rate you give (labelled default 10%, range 5% to 20%) | The three calculators never guess a rule: a rule that is not in our data comes back as `not_recorded`. They answer "would this break the rules", "when is my next payout" and "what will it cost to get funded"; the same logic is at `POST /api/tools/check-rules`, `GET /api/tools/payout-calendar` and `GET /api/tools/cost-to-funded`. Example `check_rules` arguments: ```json {"firm": "topstep", "plan": "50K Trading Combine (Standard)", "trades": [{"time": "2026-11-24T15:00:00Z", "symbol": "ES", "size": 2, "pnl": 600}, {"time": "2026-11-25T15:00:00Z", "symbol": "ES", "size": 6, "pnl": -1500}]} ``` ## Firm links are affiliate links Every firm result carries an `affiliate` object: `{url, mode, code?, discount?, disclosure, firmDisclosure?}`. `url` is `https://fundedlytics.com/go/?src=mcp`, which opens the firm's site (through its affiliate link when the firm has a programme with us, else the plain site). When an agent points a user to a firm's site or helps them buy an evaluation, it should use that link and mention `code` if set, saying it is a Fundedlytics affiliate code that may earn Fundedlytics a commission at no extra cost to the user. Links to firms may be affiliate links. They never affect rankings, scores or verdicts, and the user's own choice of code or firm comes first. The older `offer` field (code firms only) stays for existing clients. Resources: `fundedlytics://firms` (JSON), `fundedlytics://firms/{slug}` (JSON), `fundedlytics://methodology` (Markdown). Errors come back as tool errors with a JSON body `{"error":{"code","message","status","retryAfterSeconds"}}`. The codes are `not_found` (unknown slug; call `list_firms`), `rate_limited`, `bad_request`, `unauthorized`, `upstream_error`, `unavailable` and `bad_response`. ## Claude Code ```bash # hosted claude mcp add --transport http fundedlytics https://fundedlytics.com/mcp --header "X-API-Key: $FUNDEDLYTICS_API_KEY" # or local stdio claude mcp add fundedlytics -e FUNDEDLYTICS_API_KEY="$FUNDEDLYTICS_API_KEY" -- npx -y fundedlytics-mcp ``` ## Claude Desktop / Claude.ai Hosted: Settings → Connectors → **Add custom connector**. Name it `Fundedlytics` and use the URL `https://fundedlytics.com/mcp?key=`. Treat that URL like a password. Local (stdio), in `claude_desktop_config.json`: ```json { "mcpServers": { "fundedlytics": { "command": "npx", "args": ["-y", "fundedlytics-mcp"], "env": { "FUNDEDLYTICS_API_KEY": "fl_live_..." } } } } ``` ## Cursor `~/.cursor/mcp.json` (global) or `.cursor/mcp.json` (project): ```json { "mcpServers": { "fundedlytics": { "url": "https://fundedlytics.com/mcp", "headers": { "X-API-Key": "fl_live_..." } } } } ``` ## VS Code, Windsurf and other clients Any client that supports streamable HTTP can use `https://fundedlytics.com/mcp`. stdio-only clients can run `npx -y fundedlytics-mcp`. ## OpenAI Agents SDK (Python) ```python from agents import Agent, Runner from agents.mcp import MCPServerStreamableHttp async with MCPServerStreamableHttp( name="fundedlytics", params={"url": "https://fundedlytics.com/mcp", "timeout": 20}, cache_tools_list=True, ) as fundedlytics: agent = Agent(name="Prop firm analyst", instructions="Answer from Fundedlytics tools and cite sources.", mcp_servers=[fundedlytics]) result = await Runner.run(agent, "Is Phidias still paying out? Compare with Tradeify.") print(result.final_output) ``` ## LangChain / LangGraph ```python from langchain_mcp_adapters.client import MultiServerMCPClient from langchain.agents import create_agent client = MultiServerMCPClient({"fundedlytics": {"transport": "streamable_http", "url": "https://fundedlytics.com/mcp"}}) tools = await client.get_tools() agent = create_agent("anthropic:claude-sonnet-4-5", tools) print(await agent.ainvoke({"messages": "Which firms changed rules this month?"})) ``` ## Self-hosting ```bash docker build -t fundedlytics-mcp ./mcp docker run -p 3163:3163 -e FUNDEDLYTICS_API_URL=https://fundedlytics.com fundedlytics-mcp # POST http://localhost:3163/mcp ; GET /healthz ``` | Env | Default | Meaning | |---|---|---| | `FUNDEDLYTICS_API_URL` | `https://fundedlytics.com` | API host the tools call | | `FUNDEDLYTICS_SITE_URL` | `https://fundedlytics.com` | Host used in `sources` links | | `FUNDEDLYTICS_API_KEY` | none | API key (free or Pro) the tools send to the API (stdio: required) | | `PORT` / `HOST` | `3163` / `0.0.0.0` | Hosted listener | | `MCP_REQUIRE_KEY` | `1` | Hosted: every request needs an API key, free or Pro (checked with `GET /api/key`) | | `MCP_RATE_LIMIT_ANON` / `MCP_RATE_LIMIT_KEY` | `60` / `600` | MCP requests per minute per IP / per key | | `MCP_TRUST_PROXY` | `1` | Read client IP from `CF-Connecting-IP` / `X-Real-IP` / `X-Forwarded-For` | | `MCP_CACHE_TTL_MS` | `30000` | Shared cache for upstream GETs | # Agent Skills The `fundedlytics` Agent Skill is a folder with: - `SKILL.md`: when to use Fundedlytics, how to call the API, MCP or websocket, worked examples and caveats - `scripts/fundedlytics.mjs`, `scripts/fundedlytics.py`: REST clients with no dependencies (`firms`, `stats`, `payouts`, `daily`, `latest`, `since`, `wallet`, `rules`, `changes`, `compare`) - `scripts/stream.mjs`, `scripts/stream.py`: websocket streamers with reconnect and resume (NDJSON on stdout) Download: [`fundedlytics.zip`](https://fundedlytics.com/skills/fundedlytics.zip). ## Claude Code ```bash curl -sLO https://fundedlytics.com/skills/fundedlytics.zip mkdir -p ~/.claude/skills && unzip -o fundedlytics.zip -d ~/.claude/skills/ # project-only: unzip -o fundedlytics.zip -d .claude/skills/ ``` Claude Code loads the skill automatically when a question matches its description, for example "does Tradeify actually pay out?". ## Claude.ai and Claude Desktop Settings → Capabilities → Skills → **Upload skill**, then pick `fundedlytics.zip`. Code execution must be on. The scripts need network access to `fundedlytics.com`. ## Other agents Any agent that can run shell commands can follow `SKILL.md` as-is. Agents that only take function tools can wrap the REST API. **OpenAI Agents SDK** ```python import json, urllib.request from agents import Agent, Runner, function_tool def _get(path: str): with urllib.request.urlopen("https://fundedlytics.com" + path, timeout=20) as r: return json.load(r) @function_tool def firm_stats(slug: str) -> str: """On-chain payout stats for one prop firm (USD paid 7d/30d/all, payouts, wallets, median, largest, trend). Args: slug: Firm slug from https://fundedlytics.com/api/firms, e.g. "tradeify". """ return json.dumps(_get(f"/api/firms/{slug}")) @function_tool def firm_rules(slug: str) -> str: """Current plans and rules of one prop firm plus its rule-change log, with official sources. Args: slug: Firm slug, e.g. "phidias". """ return json.dumps(_get(f"/api/rules/{slug}")) agent = Agent( name="Prop firm analyst", instructions=open("fundedlytics/SKILL.md").read(), # reuse the skill text as instructions tools=[firm_stats, firm_rules], ) print(Runner.run_sync(agent, "Compare Phidias and Tradeify payouts this month.").final_output) ``` **LangChain** ```python import json, urllib.request from langchain_core.tools import tool @tool def fundedlytics(path: str) -> str: """GET a Fundedlytics public API path, e.g. /api/firms, /api/firms/tradeify, /api/firms/tradeify/payouts?order=largest&limit=5, /api/rules/tradeify, /api/rule-changes?since=2026-11-01. Payouts are on-chain only; off-chain payouts are not included.""" if not path.startswith("/api/"): return "path must start with /api/" with urllib.request.urlopen("https://fundedlytics.com" + path, timeout=20) as r: return r.read().decode() ``` You can also skip the wrappers and connect the [MCP server](https://fundedlytics.com/developers/mcp). # Alerts and webhooks Signed-in users can create **alert rules**. A rule has: - firms (or all firms) - event kinds: `payout`, `big_payout`, `firm_daily`, `rule_change`, `firm_status`, `runway` (treasury runway warning: a firm's payout wallets fall to under 4 weeks of payouts, or to half their usual level, only for firms whose runway the site shows), `deal`, `launch` - minimum amount, watched wallets (any payout to those wallets), quiet hours - digest mode: instant, hourly or daily - delivery channels Channels are email, Telegram (via our bot), Discord (your webhook URL), push to the Fundedlytics app and **generic webhook** for developers. Free accounts get alerts on up to 3 firms in one daily email digest. Fundedlytics Pro ($9.99/month) adds instant delivery, every firm (including "all firms" rules) and every channel. Each channel is verified before use, and every message has an unsubscribe link or command. Alerts need an account. API keys and the MCP server cannot create alerts for a user. ## Webhook delivery We `POST` JSON to your HTTPS URL: ```http POST /your/endpoint HTTP/1.1 Content-Type: application/json User-Agent: Fundedlytics-Webhooks/1 X-Fundedlytics-Delivery: dlv_1042 X-Fundedlytics-Event: payout X-Fundedlytics-Timestamp: 1764590400 X-Fundedlytics-Signature: sha256=5f2b…e9 {"deliveryId":"dlv_1042","digest":"instant","rule":{"id":"rule_Xc2k9QpL0vYt3bNa","name":"Big Tradeify payouts"}, "events":[{"id":"payout:104","type":"payout","at":"2026-12-01T10:12:00Z","firm":"tradeify","url":"https://fundedlytics.com/firms/tradeify","payout":{…}}], "unsubscribeUrl":"https://fundedlytics.com/hub/unsubscribe?t=…"} ``` - `events` holds `FeedEvent` objects (schema in the [OpenAPI spec](https://fundedlytics.com/api/openapi.json)). Event ids are stable strings such as `payout:104`, `big_payout:104`, `rule_change:tradeify:` or `firm_daily:tradeify:2026-11-30`. Instant deliveries carry one event. Hourly and daily digests carry several, with `digest` set to `hourly` or `daily`. - `X-Fundedlytics-Event` is the event type, `digest`, or `test`. - Reply `2xx` within 10 s. Network errors, `429` (honouring `Retry-After`) and `5xx` are retried with exponential backoff (30 s doubling, capped at 1 h) for up to 6 attempts. Other `4xx` answers are not retried, redirects are not followed, and `410 Gone` switches the channel off. Retries use the same `X-Fundedlytics-Delivery`, so de-duplicate on it. - A **test** delivery (`X-Fundedlytics-Event: test`, `"test": true`, empty `events`, `rule: null`) is sent when you save the channel; the channel is only added if it answers `2xx`. - `unsubscribeUrl` turns this channel off (a `POST` to it is a one-click unsubscribe). ## Verify the signature `signature = hex(HMAC_SHA256(secret, "."))` Use the **raw** body bytes, not re-serialized JSON. Compare in constant time, and reject timestamps more than 5 minutes old to stop replays. The secret is shown once when you create the webhook channel. **Node** ```js import { createHmac, timingSafeEqual } from 'node:crypto'; export function verifyFundedlytics(rawBody, headers, secret) { const ts = headers['x-fundedlytics-timestamp']; const sig = String(headers['x-fundedlytics-signature'] || '').replace(/^sha256=/, ''); if (!ts || Math.abs(Date.now() / 1000 - Number(ts)) > 300) return false; const expected = createHmac('sha256', secret).update(`${ts}.`).update(rawBody).digest('hex'); const a = Buffer.from(sig, 'hex'), b = Buffer.from(expected, 'hex'); return a.length === b.length && timingSafeEqual(a, b); } // Express: app.post('/hook', express.raw({ type: 'application/json' }), (req, res) => { // if (!verifyFundedlytics(req.body, req.headers, process.env.FUNDEDLYTICS_WEBHOOK_SECRET)) return res.sendStatus(401); // const { events } = JSON.parse(req.body); /* … */ res.sendStatus(204); // }); ``` **Python** ```python import hashlib, hmac, time def verify_fundedlytics(raw_body: bytes, headers, secret: str) -> bool: ts = headers.get("X-Fundedlytics-Timestamp", "") sig = headers.get("X-Fundedlytics-Signature", "").removeprefix("sha256=") if not ts.isdigit() or abs(time.time() - int(ts)) > 300: return False expected = hmac.new(secret.encode(), ts.encode() + b"." + raw_body, hashlib.sha256).hexdigest() return hmac.compare_digest(sig, expected) # Flask: verify_fundedlytics(request.get_data(), request.headers, SECRET) ``` # Rate limits Every surface below needs an API key (`X-API-Key`). Without one the REST API and MCP answer `401` and the websocket upgrade is refused; `GET /api/healthz` and `GET /api/openapi.json` stay keyless. | Surface | Free key (any free account) | Pro key (per key) | |---|---|---| | REST API `/api/*` | 10 requests / minute, 100 / UTC day per account (REST and MCP together); basic endpoints | 600 requests / minute | | New wallet traces `/api/wallets/{address}/connections` | Pro only | 6 / 10 minutes per key (cached results and polling do not count) | | Hosted MCP `/mcp` | same budget as REST; every tool except `search_wallet` | 600 requests / minute | | Websocket `/ws` | Pro only | 10 connections; full firehose | | Websocket subscriptions | | `limits.maxSubscriptions` in `hello` | These are the current defaults and may change. Read them from the response headers rather than hard-coding them: | Header | Meaning | |---|---| | `X-RateLimit-Limit` | Requests allowed in the current window | | `X-RateLimit-Remaining` | Requests left in the current window | | `X-RateLimit-Reset` | Seconds until the window resets | | `X-RateLimit-Daily-Limit`, `X-RateLimit-Daily-Remaining` | Free keys: the account's daily budget and what is left | | `Retry-After` | On `429`: seconds to wait | On a limit you get HTTP `429` with `{"error":"rate_limited","message":"…"}`. MCP clients receive a JSON-RPC error, and tools return a `rate_limited` tool error with `retryAfterSeconds`. Good citizenship: - Data refreshes about every 2 minutes and responses are cached briefly, so polling faster than once a minute gains nothing. Use the [websocket](https://fundedlytics.com/developers/websockets) for live data. - Back off exponentially on `429` and `5xx`. - Mirror history with `/api/payouts/since` instead of paging firm endpoints. - Send a descriptive `User-Agent`. A free key comes with any free account; [Fundedlytics Pro](https://fundedlytics.com/pricing) lifts the limits. Higher tiers are not offered yet.