{"openapi":"3.1.0","info":{"title":"FomoScan Identity API","version":"1.1.0","description":"Resolve a FOMO trader handle to their on-chain wallet addresses, and\nany wallet back to the traders behind it. Every returned address is a\nverified match.\n\n## Authentication\nSend your API key as `Authorization: Bearer fsk_live_…` (or the\n`X-Api-Key` header). Enter it under Authentication at the top of this\npage to call any endpoint live.\n\n```bash\ncurl -s -H \"Authorization: Bearer $KEY\" \\\n  \"https://api.fomoscan.sh/v2/user/handle/tradername\"\n```\n\n## Response format\nA successful response is the record itself, as flat JSON. There is no\nwrapper to unwrap. Timestamps on thesis and PnL records are epoch\nmilliseconds.\n\n## Billing\n- A lookup that finds nothing is still charged, at the miss price stated on the endpoint.\n- `GET /v2/me` is free and reports your remaining units.\n- Errors that are our fault or your client’s (`401`, `403`, `429`, `5xx`) are not billed.\n- When the allowance is spent, calls return `402 QUOTA_EXCEEDED` until the counter resets.\n\n## Free keys\nA free key reveals wallets for the sample set below and nobody else.\nSample lookups cost no credits. Outside the set, a wallet lookup, or a\nhandle or id lookup whose answer carries a wallet, returns\n`403 SAMPLE_SET_ONLY`. Profiles without a wallet and misses answer as\nthey do for any key. A self-serve free key cannot open the WebSocket.\n\n- Handles: `frankdegods`, `unipcs`, `pointfarmcap`, `orangie`, `theveeman`\n- Wallets: `498g1rVnFcnjBjpfw1xyqA1WvgQXUU8RWuELjxkjAayQ`, `0x696d1265c8fc4f14797abebfae3c43ebfa9d8e28`, `2heJbC32Tpfcb3nbUb5ER61K11FGZVfVGtVnDm6LDogF`, `Beqv6dzTcjV2eodo8RRXCiCcnSYrS1vkQKhfqwHXqeit`, `83b2LMf12aLec92kur3duRA8VvUkLaXUtML31aCcZNCM`, `F5hkYsi8JxjyA2JHN5CA7MbnnhWubkXB2ZQB7Gkaxqs6`\n\n## 404 NOT_FOUND\nA lookup that finds nothing answers `404` with the code `NOT_FOUND`. On\na handle or id lookup it means we hold no user under that handle or id.\nOn a wallet lookup it means we hold no verified link from that address\nto a trader. Treat it as \"no answer today\", cache the negative briefly\nand ask again later. A user we hold without a verified wallet answers\n`200` with both addresses `null`.\n\n## Errors\nEvery error uses one shape: `{ \"error\": { \"code\": \"…\", \"message\": \"…\" } }`.\n\n| HTTP | Code | Meaning |\n|---|---|---|\n| 400 | `VALIDATION_ERROR` | A malformed handle, address or query parameter. |\n| 400 | `BAD_REQUEST` | The request cannot be served as sent. |\n| 401 | `UNAUTHORIZED` | Missing or invalid API key. |\n| 402 | `QUOTA_EXCEEDED` | Out of credits. |\n| 402 | `REVEAL_LIMIT_REACHED` | The key’s reveal limit is reached. |\n| 403 | `FORBIDDEN` | The key may not perform this action. |\n| 403 | `FORBIDDEN_SCOPE` | The key is not provisioned for this endpoint. |\n| 403 | `FREE_TIER_DISABLED` | The key has no allowance. |\n| 403 | `SAMPLE_SET_ONLY` | A free key asked for a wallet outside the sample set. |\n| 403 | `WEBSOCKET_PLAN_REQUIRED` | The key’s plan has no WebSocket. It is included from Growth ($899), and legacy plans keep it. |\n| 404 | `NOT_FOUND` | No answer for the handle, id or wallet you asked about, or no such route. See the section above. |\n| 409 | `CONFLICT` | The request conflicts with one already accepted. |\n| 429 | `RATE_LIMITED` | Per-minute limit exceeded. Retry after `retryAfter` seconds. |\n| 500 | `INTERNAL_ERROR` | Our fault. Retry. If it persists, contact support with the path and the time. |\n| 503 | `OVERLOADED` | We are shedding load. Retry. |\n| 503 | `B2B_DISABLED` | The API is switched off on this deployment. |\n| 504 | `TIMEOUT` | The answer did not arrive in time. Retry. |\n\nA `429` also carries `retryAfter`, in seconds.\n\n## Rate limits\nEach key has one per-minute request limit across every endpoint,\nreadable from `GET /v2/me` as `ratePerMinute`. A per-IP burst ceiling\nsits behind it. Exceeding either returns `429 RATE_LIMITED`.\n\n## Pricing\nPaid plans reach every REST endpoint. Plans differ in credits, request rate,\nwallet reveals and the WebSocket. Credits and CU are the same unit.\n\n| Plan | Free | Starter | Builder | Growth | Scale | Enterprise |\n| --- | --- | --- | --- | --- | --- | --- |\n| Price per month | $0 | $99 | $299 | $899 | $2,499 | Set in the contract |\n| Credits | 25,000 once, for 30 days | 1,000,000 a month | 5,000,000 a month | 20,000,000 a month | 75,000,000 a month | Set in the contract |\n| Requests per minute | 60 | 150 | 300 | 600 | 1,200 | Set in the contract |\n| Wallet reveals per month | Sample set only | 150 | 500 | 1,500 | 4,000 | No cap |\n| Price per 30,000-credit reveal | $0 on the sample set | $2.97 | $1.79 | $1.35 | $1.00 | Set in the contract |\n| WebSocket | No | No | No | Included | Included | Included |\n\nKeys on legacy plans keep the WebSocket access they already have.\n\n### Wallet reveals\nA wallet reveal is an answer that returns a verified wallet. Each reveal counts\nagainst the plan’s wallet reveals for the month. It costs the credits of the\nendpoint that returned it:\n\n| Reveal endpoint | Credits per reveal |\n| --- | --- |\n| `GET /v2/user/handle/{handle}` | 100 |\n| `POST /v2/user/handle/{handle}/reveal` | 0 |\n| `GET /v2/user/wallet/{address}` | 30,000 |\n| `GET /v2/user/id/{id}` | 100 |\n| `POST /v2/user/handle/{handle}/resolve` | 30,000 |\n| `GET /v2/user/handle/{handle}/pnl` | 30,000 |\n| `POST /v2/user/handles/pnl` | 30,000 per handle revealed |\n\nThe price per 30,000-credit reveal in the plan table is what 30,000 credits\ncost on the plan. It applies to `GET /v2/user/wallet/{address}`, `POST /v2/user/handle/{handle}/resolve`, `GET /v2/user/handle/{handle}/pnl`, `POST /v2/user/handles/pnl`.\nA reveal on another endpoint costs that endpoint’s credits.\n\n### Credit cost per endpoint\n\n| Endpoint | Credits |\n| --- | --- |\n| `GET /v2/user/handle/{handle}/profile` | 100 CU per call. |\n| `GET /v2/user/id/{id}/profile` | 100 CU per call. |\n| `GET /v2/token/{address}` | 100 CU per call. |\n| `GET /v2/user/handle/{handle}` | 100 CU on a hit, 200 CU on a 404. |\n| `POST /v2/user/handle/{handle}/reveal` | 0 CU per call. |\n| `GET /v2/user/wallet/{address}` | 30,000 CU on a hit, 200 CU on a 404. |\n| `GET /v2/user/id/{id}` | 100 CU on a hit, 200 CU on a 404. |\n| `POST /v2/user/handle/{handle}/resolve` | 30,000 CU on a hit, 200 CU on a 202 or a 404. A paused lookup (202 with reason unavailable and retryable false) is not charged. |\n| `GET /v2/user/handle/{handle}/pnl` | 30,000 CU on a hit, 200 CU on any answer that is not ready, and on a 404. |\n| `POST /v2/user/handles/pnl` | 30,000 CU per entry answered ready, 200 CU per entry not ready and per handle in `missing`. |\n| `GET /v2/thesis` | 200 CU per 20 requested rows (`limit`, up to 100). An empty page costs the same as a full one. |\n| `GET /v2/thesis/token/{tokenAddress}` | 200 CU per 20 requested rows (`limit`, up to 100). An empty page costs the same as a full one. |\n| `GET /v2/thesis/user/{id}` | 200 CU per 20 requested rows (`limit`, up to 100). An empty page costs the same as a full one. |\n| `GET /v2/thesis/user/{id}/token/{tokenAddress}` | 200 CU per 20 requested rows (`limit`, up to 100). An empty page costs the same as a full one. |\n| `GET /v2/leaderboard/tokens/trending` | 10 CU per call. |\n| `GET /v2/me` | Free. |\n| `GET /v2/pump/user/wallet/{wallet}` | 10 CU per call. |\n| `GET /v2/pump/thesis` | 10 CU per call. |\n| `GET /v2/pump/thesis/token/{mint}` | 10 CU per call. |\n| `GET /v2/pump/thesis/wallet/{wallet}` | 10 CU per call. |\n| `GET /v2/pump/leaderboard/traders` | 10 CU per call. |\n| `GET /v2/pump/user/wallet/{wallet}/pnl` | 500 CU per call. |\n| `POST /v2/pump/user/wallets/pnl` | 500 CU per entry answered ready, 200 CU per entry not ready and per wallet in `missing`. |\n| `GET /v2/ws` | 20,000 CU per minute held open. |\n| `GET /v2/ws/pump` | 20,000 CU per minute held open. |\n\n### Credit packs\nA pack adds credits on top of a plan. Pack credits do not expire, and they are\nspent after the plan’s monthly credits run out.\n\n| Pack | Price |\n| --- | --- |\n| 250,000 credits | $29 |\n| 1,000,000 credits | $115 |\n| 5,000,000 credits | $349 |\n| 20,000,000 credits | $1,049 |\n| 75,000,000 credits | $2,899 |\n\n### Payment\nPlans are paid by card, and Apple Pay counts as a card. Credit packs are paid\nin crypto only, with no surcharge.\n\n## Chains\nWallet lookups take a Solana address or an EVM address. A verified EVM address\nis the same address on every EVM chain.\n\nTheses carry their token’s chain in `tokenNetwork`. This table shows the value\nthe API returns for each chain we serve. Some chains arrive as a short name and\nsome as a numeric chain id. Match on the exact value in the table.\n\n| Chain | `tokenNetwork` |\n| --- | --- |\n| Solana | `sol` |\n| Base | `base` |\n| BNB Chain | `bsc` |\n| Robinhood Chain | `robinhood` |\n| Ethereum | `eth` |\n| Arc | `5042` |\n| Monad | `143` |\n\nA thesis on a chain outside this table arrives as a short name or a numeric chain id.\n\n## Breaking changes\nA breaking change removes or renames an endpoint, a field or an error code, or\nchanges what a field means. We announce each one at least 3 days before it\nships. The notice goes out on the changelog, on the Telegram announcements\nchannel (https://t.me/scanfomo) and on every other channel we run.\n\nNew fields can appear without notice. Ignore fields you do not recognise.","contact":{"name":"FomoScan","url":"https://fomoscan.sh","email":"fomoscan-support@proton.me"}},"servers":[{"url":"https://api.fomoscan.sh","description":"Production"}],"externalDocs":{"description":"Full documentation","url":"https://docs.fomoscan.sh"},"tags":[{"name":"Identities","description":"Resolve handles ↔ wallets."},{"name":"Thesis Feed","description":"Trader \"thesis\" posts, newest first, by token, by author, or both. Ask with no `before` for the newest page. Clients MUST dedupe on `id`."},{"name":"Leaderboards","description":"Token rankings. A ranking has no id and never settles, so boards are read by instant: omit `at` for the current board, or pass one to read it as it stood then."},{"name":"WebSocket","description":"The streaming surface. Everything above is a request you make; this is a connection you hold. It delivers the same thesis objects `Thesis Feed` returns."},{"name":"Pump","description":"pump.fun lookups: a user by wallet, the global callout feed or one coin's or wallet's wall, and the PnL leaderboard. On pump.fun the wallet IS the account, so a wallet lookup here is a stored read, not a resolution."},{"name":"Account","description":"Your key: entitlements and usage."}],"paths":{"/v2/user/handle/{handle}/profile":{"get":{"summary":"Read a wallet-free stored profile","tags":["Identities"],"description":"100 credits on a hit, 200 on a miss. match=closest automatically resolves a missing handle using indexed handles and display names before billing one result. Exact handles and aliases retain priority. Spends zero wallet reveals. walletAvailable says whether a verified wallet is on record; the address is never included. asOf is null when source freshness is unavailable. Request ID identifies the HTTP response.\n\n**Price:** 100 CU per call.","parameters":[{"schema":{"type":"string","enum":["exact","closest"],"default":"exact"},"in":"query","name":"match","required":false},{"schema":{"type":"string","minLength":1,"maxLength":64},"in":"path","name":"handle","required":true}],"security":[{"b2bApiKey":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["profile_only","version","profile","asOf","requestId","billing"],"properties":{"profile_only":{"type":"boolean","enum":[true]},"version":{"type":"integer","enum":[1]},"profile":{"type":["null","object"],"additionalProperties":false,"required":["id","handle","name","bio","banner","profilePicture","twitter","walletAvailable"],"properties":{"id":{"type":"string","format":"uuid"},"handle":{"type":"string"},"name":{"type":["null","string"]},"bio":{"type":["null","string"]},"banner":{"type":["null","string"]},"profilePicture":{"type":["null","string"]},"twitter":{"type":["null","string"]},"walletAvailable":{"type":"boolean"}}},"match":{"type":"object","additionalProperties":false,"required":["query","handle","kind"],"properties":{"query":{"type":"string"},"handle":{"type":"string"},"kind":{"type":"string","enum":["closest"]}}},"asOf":{"type":["null","string"]},"requestId":{"type":"string"},"suggestions":{"type":"array","maxItems":5,"items":{"type":"object","additionalProperties":false,"required":["handle","name","followers"],"properties":{"handle":{"type":"string"},"name":{"type":["null","string"]},"followers":{"type":["null","integer"]}}}},"billing":{"type":"object","additionalProperties":false,"required":["status","credits","reveals","costVersion"],"properties":{"status":{"type":"string","enum":["settled"]},"credits":{"type":"integer","minimum":0},"reveals":{"type":"integer","enum":[0]},"costVersion":{"type":"string","enum":["profile-v1"]}}}}}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["profile_only","version","profile","asOf","requestId","billing"],"properties":{"profile_only":{"type":"boolean","enum":[true]},"version":{"type":"integer","enum":[1]},"profile":{"type":["null","object"],"additionalProperties":false,"required":["id","handle","name","bio","banner","profilePicture","twitter","walletAvailable"],"properties":{"id":{"type":"string","format":"uuid"},"handle":{"type":"string"},"name":{"type":["null","string"]},"bio":{"type":["null","string"]},"banner":{"type":["null","string"]},"profilePicture":{"type":["null","string"]},"twitter":{"type":["null","string"]},"walletAvailable":{"type":"boolean"}}},"match":{"type":"object","additionalProperties":false,"required":["query","handle","kind"],"properties":{"query":{"type":"string"},"handle":{"type":"string"},"kind":{"type":"string","enum":["closest"]}}},"asOf":{"type":["null","string"]},"requestId":{"type":"string"},"suggestions":{"type":"array","maxItems":5,"items":{"type":"object","additionalProperties":false,"required":["handle","name","followers"],"properties":{"handle":{"type":"string"},"name":{"type":["null","string"]},"followers":{"type":["null","integer"]}}}},"billing":{"type":"object","additionalProperties":false,"required":["status","credits","reveals","costVersion"],"properties":{"status":{"type":"string","enum":["settled"]},"credits":{"type":"integer","minimum":0},"reveals":{"type":"integer","enum":[0]},"costVersion":{"type":"string","enum":["profile-v1"]}}}}}}}}}}},"/v2/user/id/{id}/profile":{"get":{"summary":"Read a wallet-free stored profile","tags":["Identities"],"description":"100 credits on a hit, 200 on a miss. match=closest automatically resolves a missing handle using indexed handles and display names before billing one result. Exact handles and aliases retain priority. Spends zero wallet reveals. walletAvailable says whether a verified wallet is on record; the address is never included. asOf is null when source freshness is unavailable. Request ID identifies the HTTP response.\n\n**Price:** 100 CU per call.","parameters":[{"schema":{"type":"string","enum":["exact","closest"],"default":"exact"},"in":"query","name":"match","required":false},{"schema":{"type":"string","minLength":1,"maxLength":64,"format":"uuid"},"in":"path","name":"id","required":true}],"security":[{"b2bApiKey":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["profile_only","version","profile","asOf","requestId","billing"],"properties":{"profile_only":{"type":"boolean","enum":[true]},"version":{"type":"integer","enum":[1]},"profile":{"type":["null","object"],"additionalProperties":false,"required":["id","handle","name","bio","banner","profilePicture","twitter","walletAvailable"],"properties":{"id":{"type":"string","format":"uuid"},"handle":{"type":"string"},"name":{"type":["null","string"]},"bio":{"type":["null","string"]},"banner":{"type":["null","string"]},"profilePicture":{"type":["null","string"]},"twitter":{"type":["null","string"]},"walletAvailable":{"type":"boolean"}}},"match":{"type":"object","additionalProperties":false,"required":["query","handle","kind"],"properties":{"query":{"type":"string"},"handle":{"type":"string"},"kind":{"type":"string","enum":["closest"]}}},"asOf":{"type":["null","string"]},"requestId":{"type":"string"},"suggestions":{"type":"array","maxItems":5,"items":{"type":"object","additionalProperties":false,"required":["handle","name","followers"],"properties":{"handle":{"type":"string"},"name":{"type":["null","string"]},"followers":{"type":["null","integer"]}}}},"billing":{"type":"object","additionalProperties":false,"required":["status","credits","reveals","costVersion"],"properties":{"status":{"type":"string","enum":["settled"]},"credits":{"type":"integer","minimum":0},"reveals":{"type":"integer","enum":[0]},"costVersion":{"type":"string","enum":["profile-v1"]}}}}}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["profile_only","version","profile","asOf","requestId","billing"],"properties":{"profile_only":{"type":"boolean","enum":[true]},"version":{"type":"integer","enum":[1]},"profile":{"type":["null","object"],"additionalProperties":false,"required":["id","handle","name","bio","banner","profilePicture","twitter","walletAvailable"],"properties":{"id":{"type":"string","format":"uuid"},"handle":{"type":"string"},"name":{"type":["null","string"]},"bio":{"type":["null","string"]},"banner":{"type":["null","string"]},"profilePicture":{"type":["null","string"]},"twitter":{"type":["null","string"]},"walletAvailable":{"type":"boolean"}}},"match":{"type":"object","additionalProperties":false,"required":["query","handle","kind"],"properties":{"query":{"type":"string"},"handle":{"type":"string"},"kind":{"type":"string","enum":["closest"]}}},"asOf":{"type":["null","string"]},"requestId":{"type":"string"},"suggestions":{"type":"array","maxItems":5,"items":{"type":"object","additionalProperties":false,"required":["handle","name","followers"],"properties":{"handle":{"type":"string"},"name":{"type":["null","string"]},"followers":{"type":["null","integer"]}}}},"billing":{"type":"object","additionalProperties":false,"required":["status","credits","reveals","costVersion"],"properties":{"status":{"type":"string","enum":["settled"]},"credits":{"type":"integer","minimum":0},"reveals":{"type":"integer","enum":[0]},"costVersion":{"type":"string","enum":["profile-v1"]}}}}}}}}}}},"/v2/token/{address}":{"get":{"summary":"Read token identity and market data","tags":["Tokens"],"description":"100 credits on a hit, 200 on a miss. Cached for 45 seconds. Market data failures return 503 without a credit charge.\n\n**Price:** 100 CU per call.","parameters":[{"schema":{"type":"string","enum":["1","56","4663","5042","8453","1399811149","solana"]},"in":"query","name":"networkId","required":false},{"schema":{"type":"string","minLength":32,"maxLength":128},"in":"path","name":"address","required":true}],"security":[{"b2bApiKey":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["token","requestId","billing"],"properties":{"token":{"type":["null","object"],"additionalProperties":false,"required":["address","networkId","name","symbol","logo","chain","priceUsd","marketCapUsd","liquidityUsd","volume24hUsd","priceChange24h","holders","asOf"],"properties":{"address":{"type":"string"},"networkId":{"type":["null","string"]},"name":{"type":["null","string"]},"symbol":{"type":["null","string"]},"logo":{"type":["null","string"]},"chain":{"type":["null","string"]},"priceUsd":{"type":["null","number"]},"marketCapUsd":{"type":["null","number"]},"liquidityUsd":{"type":["null","number"]},"volume24hUsd":{"type":["null","number"]},"priceChange24h":{"type":["null","number"]},"holders":{"type":["null","number"]},"asOf":{"type":"string"}}},"requestId":{"type":"string"},"billing":{"type":"object","required":["status","credits","reveals"],"properties":{"status":{"type":"string","enum":["settled"]},"credits":{"type":"integer","minimum":0},"reveals":{"type":"integer","enum":[0]}}}}}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["token","requestId","billing"],"properties":{"token":{"type":["null","object"],"additionalProperties":false,"required":["address","networkId","name","symbol","logo","chain","priceUsd","marketCapUsd","liquidityUsd","volume24hUsd","priceChange24h","holders","asOf"],"properties":{"address":{"type":"string"},"networkId":{"type":["null","string"]},"name":{"type":["null","string"]},"symbol":{"type":["null","string"]},"logo":{"type":["null","string"]},"chain":{"type":["null","string"]},"priceUsd":{"type":["null","number"]},"marketCapUsd":{"type":["null","number"]},"liquidityUsd":{"type":["null","number"]},"volume24hUsd":{"type":["null","number"]},"priceChange24h":{"type":["null","number"]},"holders":{"type":["null","number"]},"asOf":{"type":"string"}}},"requestId":{"type":"string"},"billing":{"type":"object","required":["status","credits","reveals"],"properties":{"status":{"type":"string","enum":["settled"]},"credits":{"type":"integer","minimum":0},"reveals":{"type":"integer","enum":[0]}}}}}}}},"503":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/def-0"}}}}}}},"/v2/user/handle/{handle}":{"get":{"summary":"Resolve a FOMO handle to the user and their verified wallet","tags":["Identities"],"description":"Looks a user up by their FOMO handle.\n\n- **404** when we do not know the handle.\n- A handle the user renamed to is found through their theses of the last 30 days;\n  `handle` in the answer is the handle we hold for them.\n- A **200** with both addresses null means we hold no verified wallet\n  for this user.\n\nA response that carries a wallet counts as one of the plan’s monthly reveals.\n\n**Price:** 100 CU on a hit, 200 CU on a 404.","parameters":[{"schema":{"type":"string","minLength":1,"maxLength":64},"example":"tradername","in":"path","name":"handle","required":true,"description":"FOMO username (case-insensitive; leading @ is stripped)."}],"security":[{"b2bApiKey":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["id","handle","name","bio","banner","profilePicture","twitter","solanaAddress","evmAddress"],"properties":{"id":{"type":"string","format":"uuid","description":"Stable FOMO user id. Unlike `handle` it never changes, so it is the key to store."},"handle":{"type":"string","description":"The canonical handle. Users rename — do not key on it."},"name":{"type":["null","string"],"description":"Display name."},"bio":{"type":["null","string"],"description":"Profile blurb as written by the user, or null if they have none."},"banner":{"type":["null","string"],"description":"Cover photo URL on our image host, or null. The path is `/a/<key>.webp`. A new picture gets a new URL. A picture added in the last few minutes can show a neutral placeholder until it is ready."},"profilePicture":{"type":["null","string"],"description":"Avatar URL on our image host, or null. The path is `/a/<key>.webp`. A new picture gets a new URL. A picture added in the last few minutes can show a neutral placeholder until it is ready."},"twitter":{"type":["null","string"],"description":"Canonical X profile link, `https://x.com/<handle>`, or null. Normalised from whatever the user typed on FOMO; null when that could not be reduced to a plausible handle. Self-declared and NOT verified by us — a claim, not a proof.","example":"https://x.com/tradername"},"solanaAddress":{"type":["null","string"],"description":"Verified Solana address (base58), or null."},"evmAddress":{"type":["null","string"],"description":"Verified EVM address, `0x`-prefixed, or null."},"socials":{"type":"array","description":"Verified social account links. Present only when social account links are enabled on the API. Absent, not null, when they are not.","items":{"type":"object","required":["provider","subject","handle"],"properties":{"provider":{"type":"string","description":"Platform identifier: 'x', 'telegram', 'youtube', 'reddit', etc."},"subject":{"type":"string","description":"Platform-stable user id (e.g. Twitter numeric id '12345678'). Stable across renames; use this as your join key."},"handle":{"type":["null","string"],"description":"Display username at verification time. May change; do not key on it."}}}}}}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/def-0"}}}}}}},"/v2/user/handle/{handle}/reveal":{"post":{"summary":"Resolve a FOMO handle to the user and their verified wallet","tags":["Identities"],"description":"Looks a user up by their FOMO handle.\n\n- **404** when we do not know the handle.\n- A handle the user renamed to is found through their theses of the last 30 days;\n  `handle` in the answer is the handle we hold for them.\n- A **200** with both addresses null means we hold no verified wallet\n  for this user.\n\n**Price:** 0 CU per call.","parameters":[{"schema":{"type":"string","minLength":1,"maxLength":64},"example":"tradername","in":"path","name":"handle","required":true,"description":"FOMO username (case-insensitive; leading @ is stripped)."}],"security":[{"b2bApiKey":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["id","handle","name","bio","banner","profilePicture","twitter","solanaAddress","evmAddress"],"properties":{"id":{"type":"string","format":"uuid","description":"Stable FOMO user id. Unlike `handle` it never changes, so it is the key to store."},"handle":{"type":"string","description":"The canonical handle. Users rename — do not key on it."},"name":{"type":["null","string"],"description":"Display name."},"bio":{"type":["null","string"],"description":"Profile blurb as written by the user, or null if they have none."},"banner":{"type":["null","string"],"description":"Cover photo URL on our image host, or null. The path is `/a/<key>.webp`. A new picture gets a new URL. A picture added in the last few minutes can show a neutral placeholder until it is ready."},"profilePicture":{"type":["null","string"],"description":"Avatar URL on our image host, or null. The path is `/a/<key>.webp`. A new picture gets a new URL. A picture added in the last few minutes can show a neutral placeholder until it is ready."},"twitter":{"type":["null","string"],"description":"Canonical X profile link, `https://x.com/<handle>`, or null. Normalised from whatever the user typed on FOMO; null when that could not be reduced to a plausible handle. Self-declared and NOT verified by us — a claim, not a proof.","example":"https://x.com/tradername"},"solanaAddress":{"type":["null","string"],"description":"Verified Solana address (base58), or null."},"evmAddress":{"type":["null","string"],"description":"Verified EVM address, `0x`-prefixed, or null."},"socials":{"type":"array","description":"Verified social account links. Present only when social account links are enabled on the API. Absent, not null, when they are not.","items":{"type":"object","required":["provider","subject","handle"],"properties":{"provider":{"type":"string","description":"Platform identifier: 'x', 'telegram', 'youtube', 'reddit', etc."},"subject":{"type":"string","description":"Platform-stable user id (e.g. Twitter numeric id '12345678'). Stable across renames; use this as your join key."},"handle":{"type":["null","string"],"description":"Display username at verification time. May change; do not key on it."}}}}}}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/def-0"}}}}}}},"/v2/user/wallet/{address}":{"get":{"summary":"Resolve a wallet address to the user(s) behind it","tags":["Identities"],"description":"The same record as `/v2/user/handle/{handle}`.\n\n- **EVM addresses must be `0x`-prefixed.** The chain is inferred\n  from the address.\n- **404** when we hold no user for the address.\n- One record is returned even when the address is linked to more than\n  one user. Repeat calls return the same one.\n\nA response that carries a wallet counts as one of the plan’s monthly reveals.\n\n**Price:** 30,000 CU on a hit, 200 CU on a 404.","parameters":[{"schema":{"type":"string","minLength":1,"maxLength":128},"example":"So11111111111111111111111111111111111111112","in":"path","name":"address","required":true,"description":"Solana address (base58) or EVM address (**must** include the `0x` prefix)."}],"security":[{"b2bApiKey":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["id","handle","name","bio","banner","profilePicture","twitter","solanaAddress","evmAddress"],"properties":{"id":{"type":"string","format":"uuid","description":"Stable FOMO user id. Unlike `handle` it never changes, so it is the key to store."},"handle":{"type":"string","description":"The canonical handle. Users rename — do not key on it."},"name":{"type":["null","string"],"description":"Display name."},"bio":{"type":["null","string"],"description":"Profile blurb as written by the user, or null if they have none."},"banner":{"type":["null","string"],"description":"Cover photo URL on our image host, or null. The path is `/a/<key>.webp`. A new picture gets a new URL. A picture added in the last few minutes can show a neutral placeholder until it is ready."},"profilePicture":{"type":["null","string"],"description":"Avatar URL on our image host, or null. The path is `/a/<key>.webp`. A new picture gets a new URL. A picture added in the last few minutes can show a neutral placeholder until it is ready."},"twitter":{"type":["null","string"],"description":"Canonical X profile link, `https://x.com/<handle>`, or null. Normalised from whatever the user typed on FOMO; null when that could not be reduced to a plausible handle. Self-declared and NOT verified by us — a claim, not a proof.","example":"https://x.com/tradername"},"solanaAddress":{"type":["null","string"],"description":"Verified Solana address (base58), or null."},"evmAddress":{"type":["null","string"],"description":"Verified EVM address, `0x`-prefixed, or null."},"socials":{"type":"array","description":"Verified social account links. Present only when social account links are enabled on the API. Absent, not null, when they are not.","items":{"type":"object","required":["provider","subject","handle"],"properties":{"provider":{"type":"string","description":"Platform identifier: 'x', 'telegram', 'youtube', 'reddit', etc."},"subject":{"type":"string","description":"Platform-stable user id (e.g. Twitter numeric id '12345678'). Stable across renames; use this as your join key."},"handle":{"type":["null","string"],"description":"Display username at verification time. May change; do not key on it."}}}}}}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/def-0"}}}}}}},"/v2/user/id/{id}":{"get":{"summary":"Resolve a FOMO user id to the user and their verified wallet","tags":["Identities"],"description":"Looks a user up by the `id` from a previous response. `id` is stable\nwhere `handle` is not, so it is the value to store against your own\nrecords and come back with.\n\n- **404** when we do not know the id.\n- A **200** with both addresses null means we hold no verified wallet\n  for this user.\n\nA response that carries a wallet counts as one of the plan’s monthly reveals.\n\n**Price:** 100 CU on a hit, 200 CU on a 404.","parameters":[{"schema":{"type":"string","format":"uuid"},"example":"00000000-0000-0000-0000-000000000000","in":"path","name":"id","required":true,"description":"FOMO user id, as returned in `id` on any user record. Same id FOMO uses."}],"security":[{"b2bApiKey":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["id","handle","name","bio","banner","profilePicture","twitter","solanaAddress","evmAddress"],"properties":{"id":{"type":"string","format":"uuid","description":"Stable FOMO user id. Unlike `handle` it never changes, so it is the key to store."},"handle":{"type":"string","description":"The canonical handle. Users rename — do not key on it."},"name":{"type":["null","string"],"description":"Display name."},"bio":{"type":["null","string"],"description":"Profile blurb as written by the user, or null if they have none."},"banner":{"type":["null","string"],"description":"Cover photo URL on our image host, or null. The path is `/a/<key>.webp`. A new picture gets a new URL. A picture added in the last few minutes can show a neutral placeholder until it is ready."},"profilePicture":{"type":["null","string"],"description":"Avatar URL on our image host, or null. The path is `/a/<key>.webp`. A new picture gets a new URL. A picture added in the last few minutes can show a neutral placeholder until it is ready."},"twitter":{"type":["null","string"],"description":"Canonical X profile link, `https://x.com/<handle>`, or null. Normalised from whatever the user typed on FOMO; null when that could not be reduced to a plausible handle. Self-declared and NOT verified by us — a claim, not a proof.","example":"https://x.com/tradername"},"solanaAddress":{"type":["null","string"],"description":"Verified Solana address (base58), or null."},"evmAddress":{"type":["null","string"],"description":"Verified EVM address, `0x`-prefixed, or null."},"socials":{"type":"array","description":"Verified social account links. Present only when social account links are enabled on the API. Absent, not null, when they are not.","items":{"type":"object","required":["provider","subject","handle"],"properties":{"provider":{"type":"string","description":"Platform identifier: 'x', 'telegram', 'youtube', 'reddit', etc."},"subject":{"type":"string","description":"Platform-stable user id (e.g. Twitter numeric id '12345678'). Stable across renames; use this as your join key."},"handle":{"type":["null","string"],"description":"Display username at verification time. May change; do not key on it."}}}}}}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/def-0"}}}}}}},"/v2/user/handle/{handle}/resolve":{"post":{"summary":"Resolve a handle to its wallets (temporarily unavailable)","tags":["Identities"],"description":"**Temporarily unavailable.** Live resolution is paused.\n\n- A handle we already hold a wallet for is answered from our data: **200** with the\n  ordinary user record and `x-fomoscan-resolve: cached`, at the usual hit price.\n- A request for a handle we do not already hold answers **202**\n  `{ pending: true, reason: \"unavailable\", retryable: false }` and is not charged.\n- This paused response includes a `message` explaining that no job was queued and cached wallet lookups remain available.\n\nWhen live resolution runs, it returns the wallet we hold for this handle, and looks for\none when we hold none:\n\n- **200** returns the ordinary user record.\n- **202** `{ pending: true, reason }` means the answer is not ready, not that the call\n  failed. `retryAfterSeconds` says when to ask again. Asking again does not start a\n  second resolve, it joins the one already running.\n- **404** when no such FOMO user exists, as opposed to a 202, which means we could not\n  answer yet.\n- A live answer can take several seconds, so allow for it in your client timeout.\n- `x-fomoscan-resolve: cached` on a response answered from a wallet we already held, `live` when we went and looked.\n- Refused with **402** before any work starts when the key cannot pay for a hit.\n- Rate limited to **10/minute** per IP, separately from your plan rate.\n\nA response that carries a wallet counts as one of the plan’s monthly reveals.\n\n**Price:** 30,000 CU on a hit, 200 CU on a 202 or a 404. A paused lookup (202 with reason unavailable and retryable false) is not charged.","parameters":[{"schema":{"type":"string","minLength":1,"maxLength":64},"example":"tradername","in":"path","name":"handle","required":true,"description":"FOMO handle (case-insensitive; leading @ is stripped)."}],"security":[{"b2bApiKey":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["id","handle","name","bio","banner","profilePicture","twitter","solanaAddress","evmAddress"],"properties":{"id":{"type":"string","format":"uuid","description":"Stable FOMO user id. Unlike `handle` it never changes, so it is the key to store."},"handle":{"type":"string","description":"The canonical handle. Users rename — do not key on it."},"name":{"type":["null","string"],"description":"Display name."},"bio":{"type":["null","string"],"description":"Profile blurb as written by the user, or null if they have none."},"banner":{"type":["null","string"],"description":"Cover photo URL on our image host, or null. The path is `/a/<key>.webp`. A new picture gets a new URL. A picture added in the last few minutes can show a neutral placeholder until it is ready."},"profilePicture":{"type":["null","string"],"description":"Avatar URL on our image host, or null. The path is `/a/<key>.webp`. A new picture gets a new URL. A picture added in the last few minutes can show a neutral placeholder until it is ready."},"twitter":{"type":["null","string"],"description":"Canonical X profile link, `https://x.com/<handle>`, or null. Normalised from whatever the user typed on FOMO; null when that could not be reduced to a plausible handle. Self-declared and NOT verified by us — a claim, not a proof.","example":"https://x.com/tradername"},"solanaAddress":{"type":["null","string"],"description":"Verified Solana address (base58), or null."},"evmAddress":{"type":["null","string"],"description":"Verified EVM address, `0x`-prefixed, or null."},"socials":{"type":"array","description":"Verified social account links. Present only when social account links are enabled on the API. Absent, not null, when they are not.","items":{"type":"object","required":["provider","subject","handle"],"properties":{"provider":{"type":"string","description":"Platform identifier: 'x', 'telegram', 'youtube', 'reddit', etc."},"subject":{"type":"string","description":"Platform-stable user id (e.g. Twitter numeric id '12345678'). Stable across renames; use this as your join key."},"handle":{"type":["null","string"],"description":"Display username at verification time. May change; do not key on it."}}}}}}}}},"202":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["pending","reason"],"properties":{"pending":{"type":"boolean","enum":[true]},"message":{"type":"string"},"reason":{"type":"string","enum":["queued","timeout","unavailable","rate_limited","no_preview","not_ingested"],"description":"`queued` — accepted. The answer is not ready yet.\n`timeout` — the answer did not arrive in time. Ask again.\n`unavailable` — no answer can be produced right now.\n`rate_limited` — the request was not accepted. Ask again later.\n`no_preview` — no wallet can be attested for this user. Retrying rarely helps.\n`not_ingested` — the record is not readable yet. Ask again shortly."},"retryable":{"type":"boolean","description":"False for `no_preview`, where a prompt retry is wasted effort, and for `unavailable` while live resolution is paused."},"retryAfterSeconds":{"type":"integer","description":"Seconds to wait before asking again. Present on `queued` and `rate_limited`."},"position":{"type":"integer","description":"On `queued` only: the rank of this request. 1 is next up."}}}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/def-0"}}}},"429":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/def-0"}}}}}}},"/v2/user/handle/{handle}/pnl":{"get":{"summary":"One trader's realized and unrealized profit across their whole wallet","tags":["Identities"],"description":"Profit and trading activity across one account's whole wallet: every venue, Solana and EVM together.\n\n- `24h`, `7d` and `30d`: realized profit (`netUsd`), return, buy and sell volume, trade\n  counts and tokens traded.\n- `all`: FOMO trades only, as cash flow (sold minus bought) with its `rank`, plus\n  whole-wallet realized and unrealized profit since 1 January 2025.\n- Every window carries `realizedPnlUsd`, `unrealizedPnlUsd` and `totalPnlUsd`, one\n  formula across 24h, 7d, 30d and all: realized profit on average cost plus the\n  unrealized profit of positions last traded in the window.\n- `unrealized`: profit on what the wallets hold now. It has no window, and it leaves\n  out spam, pools under $10,000 of liquidity and positions larger than their pool.\n- Each window carries its own `status` and `updatedAt`. A window that is due to be\n  read again is read while you wait, up to 8 seconds; if the read does not finish in\n  time, the previous figures are served with their older `updatedAt`.\n- The first call for an account reads it live. A window that does not finish within\n  8 seconds comes back `pending` with null figures and is ready on the next call.\n- `status` is `pending` only when nothing could be read in time. Only a `ready`\n  answer is charged the hit price; every other answer is charged the miss price.\n- A handle the user renamed to is found through their theses of the last 30 days;\n  `handle` in the answer is the handle we hold for them.\n- **404** when we do not hold the handle.\n\nA response with `status` `ready` carries a wallet and counts as one of the plan’s monthly reveals.\n\n**Price:** 30,000 CU on a hit, 200 CU on any answer that is not ready, and on a 404.","parameters":[{"schema":{"type":"string","minLength":1,"maxLength":64},"example":"tradername","in":"path","name":"handle","required":true,"description":"FOMO username (case-insensitive; leading @ is stripped)."}],"security":[{"b2bApiKey":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["handle","wallet","evmWallet","status","retryAfterSeconds","updatedAt","windows","unrealized"],"properties":{"handle":{"type":"string"},"displayName":{"type":["null","string"]},"avatarUrl":{"type":["null","string"],"description":"Avatar URL on our image host, or null. The path is `/a/<key>.webp`. A new picture gets a new URL. A picture added in the last few minutes can show a neutral placeholder until it is ready."},"twitter":{"type":["null","string"],"description":"Bare X username."},"followers":{"type":["null","integer"]},"wallet":{"type":["null","string"],"description":"The Solana address these numbers include: the verified Solana wallet of this account, left out when the same address is verified for another account too. Null when there is none."},"evmWallet":{"type":["null","string"],"description":"The EVM address these numbers include, across every EVM chain FOMO runs on: the verified EVM wallet of this account, left out when the same address is verified for another account too. Null when there is none."},"status":{"type":"string","enum":["ready","pending","failed","no-wallet","unavailable"],"description":"`ready`: whole-wallet figures are served; each window carries its own status and updatedAt, and a window read for the first time can still be pending. `pending`: nothing could be read within the wait; every field of 24h, 7d and 30d is null and unrealized is null; ask again after retryAfterSeconds. `failed`: the last reading failed and nothing is held yet; the next attempt starts after retryAfterSeconds. `no-wallet`: we hold no verified wallet. `unavailable`: whole-wallet reading is switched off or out of capacity; retrying will not help soon. Only `ready` is charged the hit price."},"retryAfterSeconds":{"type":["null","integer"],"description":"Set only when status is pending or failed: seconds until asking again is worth it."},"updatedAt":{"type":["null","integer"],"description":"Epoch ms of the oldest figure served: the oldest window or unrealized reading when status is ready, the FOMO board otherwise. Each window carries its own updatedAt."},"windows":{"type":"object","description":"One entry per window, with all four keys present. 24h, 7d and 30d are always objects: whole-wallet figures when their own status is ready, every figure null while it is pending (FOMO cash flow is never shown in their place). On all, netUsd, returnPct, volumeUsd, trades and rank are FOMO cash flow with its rank, and realizedPnlUsd, unrealizedPnlUsd and totalPnlUsd are whole-wallet figures since 1 January 2025. all is null for an account with no FOMO trade until its whole-wallet figures have been read.","properties":{"24h":{"type":["null","object"],"properties":{"netUsd":{"type":["null","number"],"description":"On 24h, 7d and 30d: realized profit across the whole wallet, every venue, Solana and EVM together, in USD. On all: sold minus bought across FOMO trades, which is cash flow and not profit. Null on 24h, 7d and 30d unless status is ready, and whenever the figure is one no real wallet reaches (not a number, or over 1e12 USD in size), or a realized profit larger than sellVolumeUsd; the size rule also applies to the volumes."},"returnPct":{"type":["null","number"],"description":"On 24h, 7d and 30d: realized profit as a percentage of what the sold tokens cost. On all: netUsd as a percentage of what was paid on buys. Null when there is nothing to divide by."},"volumeUsd":{"type":["null","number"],"description":"Bought plus sold in the window, USD. On 24h, 7d and 30d across the whole wallet; on all across FOMO trades."},"buyVolumeUsd":{"type":["null","number"],"description":"Paid on buys in the window across the whole wallet, USD. Null on all."},"sellVolumeUsd":{"type":["null","number"],"description":"Received on sells in the window across the whole wallet, USD. Null on all."},"trades":{"type":["null","integer"],"description":"Trades in the window. On 24h, 7d and 30d across the whole wallet; on all FOMO swaps."},"buys":{"type":["null","integer"],"description":"Buy trades in the window. Null on all."},"sells":{"type":["null","integer"],"description":"Sell trades in the window. Null on all."},"tokensTraded":{"type":["null","integer"],"description":"Distinct tokens bought or sold in the window. Null on all."},"winningTokens":{"type":["null","integer"],"description":"Tokens that closed the window with positive realized profit. Null on all."},"realizedPnlUsd":{"type":["null","number"],"description":"Realized profit in the window across the whole wallet, every venue, Solana and EVM together, USD: what sells received minus the average cost of the tokens sold. On 24h, 7d and 30d the same figure as netUsd. On all, every trade since 1 January 2025. Null until the window has been read, and on the same rules as netUsd."},"unrealizedPnlUsd":{"type":["null","number"],"description":"What the tokens held now are worth minus what they cost, USD, for the positions last traded in the window. On all, every position counted in unrealized. It leaves out the positions unrealized leaves out. Null until the positions have been read."},"totalPnlUsd":{"type":["null","number"],"description":"realizedPnlUsd plus unrealizedPnlUsd, USD: one formula on every window. Null when either part is null."},"rank":{"type":["null","integer"],"description":"Position on the FOMO cash-flow ranking for this window, 1 = highest, ties share a rank. Set on all. Always null on 24h, 7d and 30d, whose numbers the ranking does not order."},"status":{"type":"string","enum":["ready","pending"],"description":"`ready`: the figures are filled. `pending`: this window is still being read for the first time; its figures are null and the next call a few seconds later carries them."},"updatedAt":{"type":["null","integer"],"description":"Epoch ms when this window's figures were read. It can be older than usual when a fresh reading could not be taken, in which case the previous figures are served. On all, when the FOMO board was read. Null while pending."},"approximate":{"type":"boolean","description":"True when the whole-wallet figures of this window were counted from per-token totals, because the window itself could not be read. Each token's whole realized profit, volume and trade count lands in the window of its last trade, so 24h, 7d and 30d can show more than happened inside them. The next reading of the window replaces these figures. False otherwise, and while pending."}}},"7d":{"type":["null","object"],"properties":{"netUsd":{"type":["null","number"],"description":"On 24h, 7d and 30d: realized profit across the whole wallet, every venue, Solana and EVM together, in USD. On all: sold minus bought across FOMO trades, which is cash flow and not profit. Null on 24h, 7d and 30d unless status is ready, and whenever the figure is one no real wallet reaches (not a number, or over 1e12 USD in size), or a realized profit larger than sellVolumeUsd; the size rule also applies to the volumes."},"returnPct":{"type":["null","number"],"description":"On 24h, 7d and 30d: realized profit as a percentage of what the sold tokens cost. On all: netUsd as a percentage of what was paid on buys. Null when there is nothing to divide by."},"volumeUsd":{"type":["null","number"],"description":"Bought plus sold in the window, USD. On 24h, 7d and 30d across the whole wallet; on all across FOMO trades."},"buyVolumeUsd":{"type":["null","number"],"description":"Paid on buys in the window across the whole wallet, USD. Null on all."},"sellVolumeUsd":{"type":["null","number"],"description":"Received on sells in the window across the whole wallet, USD. Null on all."},"trades":{"type":["null","integer"],"description":"Trades in the window. On 24h, 7d and 30d across the whole wallet; on all FOMO swaps."},"buys":{"type":["null","integer"],"description":"Buy trades in the window. Null on all."},"sells":{"type":["null","integer"],"description":"Sell trades in the window. Null on all."},"tokensTraded":{"type":["null","integer"],"description":"Distinct tokens bought or sold in the window. Null on all."},"winningTokens":{"type":["null","integer"],"description":"Tokens that closed the window with positive realized profit. Null on all."},"realizedPnlUsd":{"type":["null","number"],"description":"Realized profit in the window across the whole wallet, every venue, Solana and EVM together, USD: what sells received minus the average cost of the tokens sold. On 24h, 7d and 30d the same figure as netUsd. On all, every trade since 1 January 2025. Null until the window has been read, and on the same rules as netUsd."},"unrealizedPnlUsd":{"type":["null","number"],"description":"What the tokens held now are worth minus what they cost, USD, for the positions last traded in the window. On all, every position counted in unrealized. It leaves out the positions unrealized leaves out. Null until the positions have been read."},"totalPnlUsd":{"type":["null","number"],"description":"realizedPnlUsd plus unrealizedPnlUsd, USD: one formula on every window. Null when either part is null."},"rank":{"type":["null","integer"],"description":"Position on the FOMO cash-flow ranking for this window, 1 = highest, ties share a rank. Set on all. Always null on 24h, 7d and 30d, whose numbers the ranking does not order."},"status":{"type":"string","enum":["ready","pending"],"description":"`ready`: the figures are filled. `pending`: this window is still being read for the first time; its figures are null and the next call a few seconds later carries them."},"updatedAt":{"type":["null","integer"],"description":"Epoch ms when this window's figures were read. It can be older than usual when a fresh reading could not be taken, in which case the previous figures are served. On all, when the FOMO board was read. Null while pending."},"approximate":{"type":"boolean","description":"True when the whole-wallet figures of this window were counted from per-token totals, because the window itself could not be read. Each token's whole realized profit, volume and trade count lands in the window of its last trade, so 24h, 7d and 30d can show more than happened inside them. The next reading of the window replaces these figures. False otherwise, and while pending."}}},"30d":{"type":["null","object"],"properties":{"netUsd":{"type":["null","number"],"description":"On 24h, 7d and 30d: realized profit across the whole wallet, every venue, Solana and EVM together, in USD. On all: sold minus bought across FOMO trades, which is cash flow and not profit. Null on 24h, 7d and 30d unless status is ready, and whenever the figure is one no real wallet reaches (not a number, or over 1e12 USD in size), or a realized profit larger than sellVolumeUsd; the size rule also applies to the volumes."},"returnPct":{"type":["null","number"],"description":"On 24h, 7d and 30d: realized profit as a percentage of what the sold tokens cost. On all: netUsd as a percentage of what was paid on buys. Null when there is nothing to divide by."},"volumeUsd":{"type":["null","number"],"description":"Bought plus sold in the window, USD. On 24h, 7d and 30d across the whole wallet; on all across FOMO trades."},"buyVolumeUsd":{"type":["null","number"],"description":"Paid on buys in the window across the whole wallet, USD. Null on all."},"sellVolumeUsd":{"type":["null","number"],"description":"Received on sells in the window across the whole wallet, USD. Null on all."},"trades":{"type":["null","integer"],"description":"Trades in the window. On 24h, 7d and 30d across the whole wallet; on all FOMO swaps."},"buys":{"type":["null","integer"],"description":"Buy trades in the window. Null on all."},"sells":{"type":["null","integer"],"description":"Sell trades in the window. Null on all."},"tokensTraded":{"type":["null","integer"],"description":"Distinct tokens bought or sold in the window. Null on all."},"winningTokens":{"type":["null","integer"],"description":"Tokens that closed the window with positive realized profit. Null on all."},"realizedPnlUsd":{"type":["null","number"],"description":"Realized profit in the window across the whole wallet, every venue, Solana and EVM together, USD: what sells received minus the average cost of the tokens sold. On 24h, 7d and 30d the same figure as netUsd. On all, every trade since 1 January 2025. Null until the window has been read, and on the same rules as netUsd."},"unrealizedPnlUsd":{"type":["null","number"],"description":"What the tokens held now are worth minus what they cost, USD, for the positions last traded in the window. On all, every position counted in unrealized. It leaves out the positions unrealized leaves out. Null until the positions have been read."},"totalPnlUsd":{"type":["null","number"],"description":"realizedPnlUsd plus unrealizedPnlUsd, USD: one formula on every window. Null when either part is null."},"rank":{"type":["null","integer"],"description":"Position on the FOMO cash-flow ranking for this window, 1 = highest, ties share a rank. Set on all. Always null on 24h, 7d and 30d, whose numbers the ranking does not order."},"status":{"type":"string","enum":["ready","pending"],"description":"`ready`: the figures are filled. `pending`: this window is still being read for the first time; its figures are null and the next call a few seconds later carries them."},"updatedAt":{"type":["null","integer"],"description":"Epoch ms when this window's figures were read. It can be older than usual when a fresh reading could not be taken, in which case the previous figures are served. On all, when the FOMO board was read. Null while pending."},"approximate":{"type":"boolean","description":"True when the whole-wallet figures of this window were counted from per-token totals, because the window itself could not be read. Each token's whole realized profit, volume and trade count lands in the window of its last trade, so 24h, 7d and 30d can show more than happened inside them. The next reading of the window replaces these figures. False otherwise, and while pending."}}},"all":{"type":["null","object"],"properties":{"netUsd":{"type":["null","number"],"description":"On 24h, 7d and 30d: realized profit across the whole wallet, every venue, Solana and EVM together, in USD. On all: sold minus bought across FOMO trades, which is cash flow and not profit. Null on 24h, 7d and 30d unless status is ready, and whenever the figure is one no real wallet reaches (not a number, or over 1e12 USD in size), or a realized profit larger than sellVolumeUsd; the size rule also applies to the volumes."},"returnPct":{"type":["null","number"],"description":"On 24h, 7d and 30d: realized profit as a percentage of what the sold tokens cost. On all: netUsd as a percentage of what was paid on buys. Null when there is nothing to divide by."},"volumeUsd":{"type":["null","number"],"description":"Bought plus sold in the window, USD. On 24h, 7d and 30d across the whole wallet; on all across FOMO trades."},"buyVolumeUsd":{"type":["null","number"],"description":"Paid on buys in the window across the whole wallet, USD. Null on all."},"sellVolumeUsd":{"type":["null","number"],"description":"Received on sells in the window across the whole wallet, USD. Null on all."},"trades":{"type":["null","integer"],"description":"Trades in the window. On 24h, 7d and 30d across the whole wallet; on all FOMO swaps."},"buys":{"type":["null","integer"],"description":"Buy trades in the window. Null on all."},"sells":{"type":["null","integer"],"description":"Sell trades in the window. Null on all."},"tokensTraded":{"type":["null","integer"],"description":"Distinct tokens bought or sold in the window. Null on all."},"winningTokens":{"type":["null","integer"],"description":"Tokens that closed the window with positive realized profit. Null on all."},"realizedPnlUsd":{"type":["null","number"],"description":"Realized profit in the window across the whole wallet, every venue, Solana and EVM together, USD: what sells received minus the average cost of the tokens sold. On 24h, 7d and 30d the same figure as netUsd. On all, every trade since 1 January 2025. Null until the window has been read, and on the same rules as netUsd."},"unrealizedPnlUsd":{"type":["null","number"],"description":"What the tokens held now are worth minus what they cost, USD, for the positions last traded in the window. On all, every position counted in unrealized. It leaves out the positions unrealized leaves out. Null until the positions have been read."},"totalPnlUsd":{"type":["null","number"],"description":"realizedPnlUsd plus unrealizedPnlUsd, USD: one formula on every window. Null when either part is null."},"rank":{"type":["null","integer"],"description":"Position on the FOMO cash-flow ranking for this window, 1 = highest, ties share a rank. Set on all. Always null on 24h, 7d and 30d, whose numbers the ranking does not order."},"status":{"type":"string","enum":["ready","pending"],"description":"`ready`: the figures are filled. `pending`: this window is still being read for the first time; its figures are null and the next call a few seconds later carries them."},"updatedAt":{"type":["null","integer"],"description":"Epoch ms when this window's figures were read. It can be older than usual when a fresh reading could not be taken, in which case the previous figures are served. On all, when the FOMO board was read. Null while pending."},"approximate":{"type":"boolean","description":"True when the whole-wallet figures of this window were counted from per-token totals, because the window itself could not be read. Each token's whole realized profit, volume and trade count lands in the window of its last trade, so 24h, 7d and 30d can show more than happened inside them. The next reading of the window replaces these figures. False otherwise, and while pending."}}}}},"unrealized":{"type":["null","object"],"required":["unrealizedPnlUsd","holdingsUsd","positions","excludedPositions","status","updatedAt"],"properties":{"unrealizedPnlUsd":{"type":"number","description":"What the tokens held now are worth minus what they cost, USD. A token held without any buy, such as a transfer in or an airdrop, has no cost to measure against and is left out."},"holdingsUsd":{"type":"number","description":"Current value of the positions counted, USD."},"positions":{"type":"integer","description":"Open positions counted."},"excludedPositions":{"type":"integer","description":"Open positions left out: flagged as spam, a pool under $10,000 of liquidity, or a position worth more than its pool holds, since none of those can be sold at the quoted price; and a token held without any buy, which has no cost."},"status":{"type":"string","enum":["ready"],"description":"Always `ready` when present."},"updatedAt":{"type":"integer","description":"Epoch ms when the positions were read."}},"description":"Profit on what the wallets hold now, across the whole wallet, every venue, Solana and EVM. It has no window. Null until the positions have been read at least once."}}}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/def-0"}}}}}}},"/v2/user/handles/pnl":{"post":{"summary":"Whole-wallet profit for up to 100 traders in one call","tags":["Identities"],"description":"GET /v2/user/handle/{handle}/pnl for up to 100 handles at once.\n\n- Each entry is the object the single endpoint returns, with the same windows,\n  `status` and `unrealized`.\n- Entries come back in the order requested. Handles match case-insensitively,\n  a leading @ is stripped, and a repeated handle counts once.\n- A handle we do not know goes into `missing` and the call still succeeds.\n- A handle the user renamed to is found through their theses of the last 30 days;\n  the entry carries the handle we hold for them.\n- A batch is charged as one call: it is served in full or refused as a whole\n  with **402**, before any entry comes back.\n- Accounts are read live, several at a time, for up to 8 seconds. An account or\n  window that does not finish in time comes back `pending` and is ready on the next\n  call. Only `ready` entries are charged the hit price.\n\nEach entry with `status` `ready` carries a wallet and counts as one of the plan’s monthly reveals.\n\n**Price:** 30,000 CU per entry answered ready, 200 CU per entry not ready and per handle in `missing`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["handles"],"properties":{"handles":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"string","minLength":1,"maxLength":64},"description":"FOMO usernames (case-insensitive; leading @ is stripped).","example":["tradername","anothertrader"]}}}}}},"security":[{"b2bApiKey":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["count","missing","entries"],"properties":{"count":{"type":"integer","description":"Entries returned: the handles we hold."},"missing":{"type":"array","items":{"type":"string"},"description":"Requested handles we do not hold, lowercased and without a leading @. Each is still charged."},"entries":{"type":"array","items":{"type":"object","required":["handle","wallet","evmWallet","status","retryAfterSeconds","updatedAt","windows","unrealized"],"properties":{"handle":{"type":"string"},"displayName":{"type":["null","string"]},"avatarUrl":{"type":["null","string"],"description":"Avatar URL on our image host, or null. The path is `/a/<key>.webp`. A new picture gets a new URL. A picture added in the last few minutes can show a neutral placeholder until it is ready."},"twitter":{"type":["null","string"],"description":"Bare X username."},"followers":{"type":["null","integer"]},"wallet":{"type":["null","string"],"description":"The Solana address these numbers include: the verified Solana wallet of this account, left out when the same address is verified for another account too. Null when there is none."},"evmWallet":{"type":["null","string"],"description":"The EVM address these numbers include, across every EVM chain FOMO runs on: the verified EVM wallet of this account, left out when the same address is verified for another account too. Null when there is none."},"status":{"type":"string","enum":["ready","pending","failed","no-wallet","unavailable"],"description":"`ready`: whole-wallet figures are served; each window carries its own status and updatedAt, and a window read for the first time can still be pending. `pending`: nothing could be read within the wait; every field of 24h, 7d and 30d is null and unrealized is null; ask again after retryAfterSeconds. `failed`: the last reading failed and nothing is held yet; the next attempt starts after retryAfterSeconds. `no-wallet`: we hold no verified wallet. `unavailable`: whole-wallet reading is switched off or out of capacity; retrying will not help soon. Only `ready` is charged the hit price."},"retryAfterSeconds":{"type":["null","integer"],"description":"Set only when status is pending or failed: seconds until asking again is worth it."},"updatedAt":{"type":["null","integer"],"description":"Epoch ms of the oldest figure served: the oldest window or unrealized reading when status is ready, the FOMO board otherwise. Each window carries its own updatedAt."},"windows":{"type":"object","description":"One entry per window, with all four keys present. 24h, 7d and 30d are always objects: whole-wallet figures when their own status is ready, every figure null while it is pending (FOMO cash flow is never shown in their place). On all, netUsd, returnPct, volumeUsd, trades and rank are FOMO cash flow with its rank, and realizedPnlUsd, unrealizedPnlUsd and totalPnlUsd are whole-wallet figures since 1 January 2025. all is null for an account with no FOMO trade until its whole-wallet figures have been read.","properties":{"24h":{"type":["null","object"],"properties":{"netUsd":{"type":["null","number"],"description":"On 24h, 7d and 30d: realized profit across the whole wallet, every venue, Solana and EVM together, in USD. On all: sold minus bought across FOMO trades, which is cash flow and not profit. Null on 24h, 7d and 30d unless status is ready, and whenever the figure is one no real wallet reaches (not a number, or over 1e12 USD in size), or a realized profit larger than sellVolumeUsd; the size rule also applies to the volumes."},"returnPct":{"type":["null","number"],"description":"On 24h, 7d and 30d: realized profit as a percentage of what the sold tokens cost. On all: netUsd as a percentage of what was paid on buys. Null when there is nothing to divide by."},"volumeUsd":{"type":["null","number"],"description":"Bought plus sold in the window, USD. On 24h, 7d and 30d across the whole wallet; on all across FOMO trades."},"buyVolumeUsd":{"type":["null","number"],"description":"Paid on buys in the window across the whole wallet, USD. Null on all."},"sellVolumeUsd":{"type":["null","number"],"description":"Received on sells in the window across the whole wallet, USD. Null on all."},"trades":{"type":["null","integer"],"description":"Trades in the window. On 24h, 7d and 30d across the whole wallet; on all FOMO swaps."},"buys":{"type":["null","integer"],"description":"Buy trades in the window. Null on all."},"sells":{"type":["null","integer"],"description":"Sell trades in the window. Null on all."},"tokensTraded":{"type":["null","integer"],"description":"Distinct tokens bought or sold in the window. Null on all."},"winningTokens":{"type":["null","integer"],"description":"Tokens that closed the window with positive realized profit. Null on all."},"realizedPnlUsd":{"type":["null","number"],"description":"Realized profit in the window across the whole wallet, every venue, Solana and EVM together, USD: what sells received minus the average cost of the tokens sold. On 24h, 7d and 30d the same figure as netUsd. On all, every trade since 1 January 2025. Null until the window has been read, and on the same rules as netUsd."},"unrealizedPnlUsd":{"type":["null","number"],"description":"What the tokens held now are worth minus what they cost, USD, for the positions last traded in the window. On all, every position counted in unrealized. It leaves out the positions unrealized leaves out. Null until the positions have been read."},"totalPnlUsd":{"type":["null","number"],"description":"realizedPnlUsd plus unrealizedPnlUsd, USD: one formula on every window. Null when either part is null."},"rank":{"type":["null","integer"],"description":"Position on the FOMO cash-flow ranking for this window, 1 = highest, ties share a rank. Set on all. Always null on 24h, 7d and 30d, whose numbers the ranking does not order."},"status":{"type":"string","enum":["ready","pending"],"description":"`ready`: the figures are filled. `pending`: this window is still being read for the first time; its figures are null and the next call a few seconds later carries them."},"updatedAt":{"type":["null","integer"],"description":"Epoch ms when this window's figures were read. It can be older than usual when a fresh reading could not be taken, in which case the previous figures are served. On all, when the FOMO board was read. Null while pending."},"approximate":{"type":"boolean","description":"True when the whole-wallet figures of this window were counted from per-token totals, because the window itself could not be read. Each token's whole realized profit, volume and trade count lands in the window of its last trade, so 24h, 7d and 30d can show more than happened inside them. The next reading of the window replaces these figures. False otherwise, and while pending."}}},"7d":{"type":["null","object"],"properties":{"netUsd":{"type":["null","number"],"description":"On 24h, 7d and 30d: realized profit across the whole wallet, every venue, Solana and EVM together, in USD. On all: sold minus bought across FOMO trades, which is cash flow and not profit. Null on 24h, 7d and 30d unless status is ready, and whenever the figure is one no real wallet reaches (not a number, or over 1e12 USD in size), or a realized profit larger than sellVolumeUsd; the size rule also applies to the volumes."},"returnPct":{"type":["null","number"],"description":"On 24h, 7d and 30d: realized profit as a percentage of what the sold tokens cost. On all: netUsd as a percentage of what was paid on buys. Null when there is nothing to divide by."},"volumeUsd":{"type":["null","number"],"description":"Bought plus sold in the window, USD. On 24h, 7d and 30d across the whole wallet; on all across FOMO trades."},"buyVolumeUsd":{"type":["null","number"],"description":"Paid on buys in the window across the whole wallet, USD. Null on all."},"sellVolumeUsd":{"type":["null","number"],"description":"Received on sells in the window across the whole wallet, USD. Null on all."},"trades":{"type":["null","integer"],"description":"Trades in the window. On 24h, 7d and 30d across the whole wallet; on all FOMO swaps."},"buys":{"type":["null","integer"],"description":"Buy trades in the window. Null on all."},"sells":{"type":["null","integer"],"description":"Sell trades in the window. Null on all."},"tokensTraded":{"type":["null","integer"],"description":"Distinct tokens bought or sold in the window. Null on all."},"winningTokens":{"type":["null","integer"],"description":"Tokens that closed the window with positive realized profit. Null on all."},"realizedPnlUsd":{"type":["null","number"],"description":"Realized profit in the window across the whole wallet, every venue, Solana and EVM together, USD: what sells received minus the average cost of the tokens sold. On 24h, 7d and 30d the same figure as netUsd. On all, every trade since 1 January 2025. Null until the window has been read, and on the same rules as netUsd."},"unrealizedPnlUsd":{"type":["null","number"],"description":"What the tokens held now are worth minus what they cost, USD, for the positions last traded in the window. On all, every position counted in unrealized. It leaves out the positions unrealized leaves out. Null until the positions have been read."},"totalPnlUsd":{"type":["null","number"],"description":"realizedPnlUsd plus unrealizedPnlUsd, USD: one formula on every window. Null when either part is null."},"rank":{"type":["null","integer"],"description":"Position on the FOMO cash-flow ranking for this window, 1 = highest, ties share a rank. Set on all. Always null on 24h, 7d and 30d, whose numbers the ranking does not order."},"status":{"type":"string","enum":["ready","pending"],"description":"`ready`: the figures are filled. `pending`: this window is still being read for the first time; its figures are null and the next call a few seconds later carries them."},"updatedAt":{"type":["null","integer"],"description":"Epoch ms when this window's figures were read. It can be older than usual when a fresh reading could not be taken, in which case the previous figures are served. On all, when the FOMO board was read. Null while pending."},"approximate":{"type":"boolean","description":"True when the whole-wallet figures of this window were counted from per-token totals, because the window itself could not be read. Each token's whole realized profit, volume and trade count lands in the window of its last trade, so 24h, 7d and 30d can show more than happened inside them. The next reading of the window replaces these figures. False otherwise, and while pending."}}},"30d":{"type":["null","object"],"properties":{"netUsd":{"type":["null","number"],"description":"On 24h, 7d and 30d: realized profit across the whole wallet, every venue, Solana and EVM together, in USD. On all: sold minus bought across FOMO trades, which is cash flow and not profit. Null on 24h, 7d and 30d unless status is ready, and whenever the figure is one no real wallet reaches (not a number, or over 1e12 USD in size), or a realized profit larger than sellVolumeUsd; the size rule also applies to the volumes."},"returnPct":{"type":["null","number"],"description":"On 24h, 7d and 30d: realized profit as a percentage of what the sold tokens cost. On all: netUsd as a percentage of what was paid on buys. Null when there is nothing to divide by."},"volumeUsd":{"type":["null","number"],"description":"Bought plus sold in the window, USD. On 24h, 7d and 30d across the whole wallet; on all across FOMO trades."},"buyVolumeUsd":{"type":["null","number"],"description":"Paid on buys in the window across the whole wallet, USD. Null on all."},"sellVolumeUsd":{"type":["null","number"],"description":"Received on sells in the window across the whole wallet, USD. Null on all."},"trades":{"type":["null","integer"],"description":"Trades in the window. On 24h, 7d and 30d across the whole wallet; on all FOMO swaps."},"buys":{"type":["null","integer"],"description":"Buy trades in the window. Null on all."},"sells":{"type":["null","integer"],"description":"Sell trades in the window. Null on all."},"tokensTraded":{"type":["null","integer"],"description":"Distinct tokens bought or sold in the window. Null on all."},"winningTokens":{"type":["null","integer"],"description":"Tokens that closed the window with positive realized profit. Null on all."},"realizedPnlUsd":{"type":["null","number"],"description":"Realized profit in the window across the whole wallet, every venue, Solana and EVM together, USD: what sells received minus the average cost of the tokens sold. On 24h, 7d and 30d the same figure as netUsd. On all, every trade since 1 January 2025. Null until the window has been read, and on the same rules as netUsd."},"unrealizedPnlUsd":{"type":["null","number"],"description":"What the tokens held now are worth minus what they cost, USD, for the positions last traded in the window. On all, every position counted in unrealized. It leaves out the positions unrealized leaves out. Null until the positions have been read."},"totalPnlUsd":{"type":["null","number"],"description":"realizedPnlUsd plus unrealizedPnlUsd, USD: one formula on every window. Null when either part is null."},"rank":{"type":["null","integer"],"description":"Position on the FOMO cash-flow ranking for this window, 1 = highest, ties share a rank. Set on all. Always null on 24h, 7d and 30d, whose numbers the ranking does not order."},"status":{"type":"string","enum":["ready","pending"],"description":"`ready`: the figures are filled. `pending`: this window is still being read for the first time; its figures are null and the next call a few seconds later carries them."},"updatedAt":{"type":["null","integer"],"description":"Epoch ms when this window's figures were read. It can be older than usual when a fresh reading could not be taken, in which case the previous figures are served. On all, when the FOMO board was read. Null while pending."},"approximate":{"type":"boolean","description":"True when the whole-wallet figures of this window were counted from per-token totals, because the window itself could not be read. Each token's whole realized profit, volume and trade count lands in the window of its last trade, so 24h, 7d and 30d can show more than happened inside them. The next reading of the window replaces these figures. False otherwise, and while pending."}}},"all":{"type":["null","object"],"properties":{"netUsd":{"type":["null","number"],"description":"On 24h, 7d and 30d: realized profit across the whole wallet, every venue, Solana and EVM together, in USD. On all: sold minus bought across FOMO trades, which is cash flow and not profit. Null on 24h, 7d and 30d unless status is ready, and whenever the figure is one no real wallet reaches (not a number, or over 1e12 USD in size), or a realized profit larger than sellVolumeUsd; the size rule also applies to the volumes."},"returnPct":{"type":["null","number"],"description":"On 24h, 7d and 30d: realized profit as a percentage of what the sold tokens cost. On all: netUsd as a percentage of what was paid on buys. Null when there is nothing to divide by."},"volumeUsd":{"type":["null","number"],"description":"Bought plus sold in the window, USD. On 24h, 7d and 30d across the whole wallet; on all across FOMO trades."},"buyVolumeUsd":{"type":["null","number"],"description":"Paid on buys in the window across the whole wallet, USD. Null on all."},"sellVolumeUsd":{"type":["null","number"],"description":"Received on sells in the window across the whole wallet, USD. Null on all."},"trades":{"type":["null","integer"],"description":"Trades in the window. On 24h, 7d and 30d across the whole wallet; on all FOMO swaps."},"buys":{"type":["null","integer"],"description":"Buy trades in the window. Null on all."},"sells":{"type":["null","integer"],"description":"Sell trades in the window. Null on all."},"tokensTraded":{"type":["null","integer"],"description":"Distinct tokens bought or sold in the window. Null on all."},"winningTokens":{"type":["null","integer"],"description":"Tokens that closed the window with positive realized profit. Null on all."},"realizedPnlUsd":{"type":["null","number"],"description":"Realized profit in the window across the whole wallet, every venue, Solana and EVM together, USD: what sells received minus the average cost of the tokens sold. On 24h, 7d and 30d the same figure as netUsd. On all, every trade since 1 January 2025. Null until the window has been read, and on the same rules as netUsd."},"unrealizedPnlUsd":{"type":["null","number"],"description":"What the tokens held now are worth minus what they cost, USD, for the positions last traded in the window. On all, every position counted in unrealized. It leaves out the positions unrealized leaves out. Null until the positions have been read."},"totalPnlUsd":{"type":["null","number"],"description":"realizedPnlUsd plus unrealizedPnlUsd, USD: one formula on every window. Null when either part is null."},"rank":{"type":["null","integer"],"description":"Position on the FOMO cash-flow ranking for this window, 1 = highest, ties share a rank. Set on all. Always null on 24h, 7d and 30d, whose numbers the ranking does not order."},"status":{"type":"string","enum":["ready","pending"],"description":"`ready`: the figures are filled. `pending`: this window is still being read for the first time; its figures are null and the next call a few seconds later carries them."},"updatedAt":{"type":["null","integer"],"description":"Epoch ms when this window's figures were read. It can be older than usual when a fresh reading could not be taken, in which case the previous figures are served. On all, when the FOMO board was read. Null while pending."},"approximate":{"type":"boolean","description":"True when the whole-wallet figures of this window were counted from per-token totals, because the window itself could not be read. Each token's whole realized profit, volume and trade count lands in the window of its last trade, so 24h, 7d and 30d can show more than happened inside them. The next reading of the window replaces these figures. False otherwise, and while pending."}}}}},"unrealized":{"type":["null","object"],"required":["unrealizedPnlUsd","holdingsUsd","positions","excludedPositions","status","updatedAt"],"properties":{"unrealizedPnlUsd":{"type":"number","description":"What the tokens held now are worth minus what they cost, USD. A token held without any buy, such as a transfer in or an airdrop, has no cost to measure against and is left out."},"holdingsUsd":{"type":"number","description":"Current value of the positions counted, USD."},"positions":{"type":"integer","description":"Open positions counted."},"excludedPositions":{"type":"integer","description":"Open positions left out: flagged as spam, a pool under $10,000 of liquidity, or a position worth more than its pool holds, since none of those can be sold at the quoted price; and a token held without any buy, which has no cost."},"status":{"type":"string","enum":["ready"],"description":"Always `ready` when present."},"updatedAt":{"type":"integer","description":"Epoch ms when the positions were read."}},"description":"Profit on what the wallets hold now, across the whole wallet, every venue, Solana and EVM. It has no window. Null until the positions have been read at least once."}}},"description":"One entry per handle we hold, in the order requested, each shaped as GET /v2/user/handle/{handle}/pnl answers."}}}}}}}}},"/v2/thesis":{"get":{"summary":"Every thesis, newest first — the unfiltered feed","tags":["Thesis Feed"],"description":"Every thesis on the platform, newest first, 20 to a page — no token filter,\nno author filter.\n\n- **Live:** call with no `before` on a timer and dedupe on each item’s `thesisHash`, falling back to `id` when it is null.\n\nNarrow before you ask if you can: `/v2/thesis/token/{tokenAddress}` and\n`/v2/thesis/user/{id}` answer the same question about one subject, so\nasking this one and filtering client-side buys nothing.\n\n**Price:** 200 CU per 20 requested rows (`limit`, up to 100). An empty page costs the same as a full one.","parameters":[{"schema":{"type":"string"},"in":"query","name":"before","required":false,"description":"The `id` of the last thesis you saw — the previous page’s `nextBefore`. Returns theses older than it. Omit for the newest 20."},{"schema":{"type":"integer","minimum":1,"maximum":100,"default":20},"in":"query","name":"limit","required":false,"description":"Rows per page, 1..100. Priced per started block of 20 rows on the REQUESTED limit."}],"security":[{"b2bApiKey":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["count","hasMore","nextBefore","updatedAt","items"],"properties":{"count":{"type":"integer","description":"Items in this page (0..20)."},"hasMore":{"type":"boolean","description":"Whether older theses exist behind this page."},"nextBefore":{"type":["null","string"],"description":"The OLDEST item’s `id`. Send back as `?before=` for the next page while `hasMore` is true. Null on the last page."},"updatedAt":{"type":["null","integer"],"description":"Post time of the NEWEST thesis in this page, epoch millis."},"items":{"type":"array","items":{"type":"object","required":["id","authorHandle","thesis","fomoCreatedAt"],"properties":{"id":{"type":"string","description":"Thesis id. Send it back as `?before=` to paginate. The same thesis can be issued again under a new id, so dedupe on `thesisHash`. Not related to a user `id`."},"thesisHash":{"type":["null","string"],"description":"Stable key for deduping. Identical for theses with the same author, the same trade, the same token and the same text, whatever their `id` and post time. Null when one of those is missing; fall back to `id` then."},"tokenAddress":{"type":["null","string"],"description":"The token this thesis is about. Present on every item, including the narrowed feeds, so one item shape works everywhere."},"tokenNetwork":{"type":["null","string"],"description":"Chain name (`sol`, `eth`, `base`, …)."},"tokenSymbol":{"type":["null","string"],"description":"Ticker."},"authorId":{"type":["null","string"],"description":"The author’s `id`, the same value a user record carries. `/v2/user/id/{id}` returns their profile and `/v2/thesis/user/{id}` everything else they have posted."},"authorHandle":{"type":["null","string"],"description":"Author’s handle. Display it; to look the author up prefer `authorId`, which does not change when they rename."},"authorName":{"type":["null","string"],"description":"Author display name."},"authorIsDev":{"type":["null","boolean"],"description":"Author is the token’s dev."},"authorAvatarUrl":{"type":["null","string"],"description":"Author’s profile picture URL, for a callout mark or avatar next to the thesis."},"thesis":{"type":["null","string"],"description":"The thesis text."},"segments":{"type":["null","array"],"description":"Rich-text runs of the thesis text (text + optional link).","items":{"type":"object","additionalProperties":true}},"likeCount":{"type":["null","integer"]},"holdingsUsd":{"type":["null","number"],"description":"Author’s position value in USD at post time."},"authorTradeUsd":{"type":["null","number"],"description":"USD size of the trade behind the thesis."},"pnl":{"type":["null","number"],"description":"Single PnL figure in USD: realized, falling back to unrealized."},"realizedPnlUsd":{"type":["null","number"],"description":"Realized PnL in USD."},"unrealizedPnlUsd":{"type":["null","number"],"description":"Unrealized PnL in USD."},"percentageRealizedPnl":{"type":["null","number"],"description":"Realized PnL as a percentage."},"percentageUnrealizedPnl":{"type":["null","number"],"description":"Unrealized PnL as a percentage."},"tokenAmount":{"type":["null","number"],"description":"Author’s token balance behind the thesis."},"priceUsdAtPost":{"type":["null","number"],"description":"Token price in USD when the thesis was posted. Null on theses stored before we recorded it."},"marketCapAtPost":{"type":["null","number"],"description":"Token market cap in USD when the thesis was posted. Null on theses stored before we recorded it."},"closedAt":{"type":["null","integer"],"description":"When the author’s position closed, epoch millis. Null while open — the PnL above is then a running figure, not a final one."},"fomoCreatedAt":{"type":["null","integer"],"description":"Post time, epoch milliseconds."},"updatedAt":{"type":["null","integer"],"description":"When we last wrote this record, epoch milliseconds. It can move without any field changing."},"tokenImageUrl":{"type":["null","string"],"description":"Token logo URL on our image host, or null. The path is `/a/<key>.webp`. A new logo gets a new URL. A logo first seen in the last few minutes can show a neutral placeholder until it is ready."}}}}}}}}}}}},"/v2/thesis/token/{tokenAddress}":{"get":{"summary":"Theses for a token, newest first, ask on a timer for a live feed","tags":["Thesis Feed"],"description":"The 20 most recent theses for one token, newest first by post time.\n\n- **Live:** call with no `before` on a timer; dedupe on `thesisHash`, falling back to `id` when it is null.\n- `before` is a thesis **`id`** — the last thesis you saw — not a timestamp.\n  An id positions the walk exactly, including inside a group of theses\n  posted in the same millisecond, which a timestamp cannot.\n- An unknown `before` is a **400**.\n- Ask on a sensible timer rather than in a tight loop.\n\nA page can come back empty. Ask again on your normal interval.\n\n**Price:** 200 CU per 20 requested rows (`limit`, up to 100). An empty page costs the same as a full one.","parameters":[{"schema":{"type":"string"},"in":"query","name":"before","required":false,"description":"The `id` of the last thesis you saw — the previous page’s `nextBefore`. Returns theses older than it. Omit for the newest 20."},{"schema":{"type":"integer","minimum":1,"maximum":100,"default":20},"in":"query","name":"limit","required":false,"description":"Rows per page, 1..100. Priced per started block of 20 rows on the REQUESTED limit."},{"schema":{"type":"string"},"example":"So11111111111111111111111111111111111111112","in":"path","name":"tokenAddress","required":true,"description":"Mint / contract address. Case-sensitive for Solana base58; EVM `0x…` is lower-cased for you."}],"security":[{"b2bApiKey":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["tokenAddress","tokenNetwork","symbol","updatedAt","count","hasMore","nextBefore","items"],"properties":{"tokenAddress":{"type":"string","description":"Normalised (EVM lower-cased)."},"tokenNetwork":{"type":["null","string"],"description":"Chain name (`sol`, `eth`, `base`, …). Null when the page is empty."},"symbol":{"type":["null","string"],"description":"Ticker. Null when the page is empty."},"updatedAt":{"type":["null","integer"],"description":"Post time of the NEWEST thesis in this page, epoch millis."},"count":{"type":"integer","description":"Items in this page (0..20)."},"hasMore":{"type":"boolean","description":"Whether older theses exist behind this page."},"nextBefore":{"type":["null","string"],"description":"The OLDEST item’s `id`. Send back as `?before=` for the next page while `hasMore` is true. Null on the last page."},"items":{"type":"array","items":{"type":"object","required":["id","authorHandle","thesis","fomoCreatedAt"],"properties":{"id":{"type":"string","description":"Thesis id. Send it back as `?before=` to paginate. The same thesis can be issued again under a new id, so dedupe on `thesisHash`. Not related to a user `id`."},"thesisHash":{"type":["null","string"],"description":"Stable key for deduping. Identical for theses with the same author, the same trade, the same token and the same text, whatever their `id` and post time. Null when one of those is missing; fall back to `id` then."},"tokenAddress":{"type":["null","string"],"description":"The token this thesis is about. Present on every item, including the narrowed feeds, so one item shape works everywhere."},"tokenNetwork":{"type":["null","string"],"description":"Chain name (`sol`, `eth`, `base`, …)."},"tokenSymbol":{"type":["null","string"],"description":"Ticker."},"authorId":{"type":["null","string"],"description":"The author’s `id`, the same value a user record carries. `/v2/user/id/{id}` returns their profile and `/v2/thesis/user/{id}` everything else they have posted."},"authorHandle":{"type":["null","string"],"description":"Author’s handle. Display it; to look the author up prefer `authorId`, which does not change when they rename."},"authorName":{"type":["null","string"],"description":"Author display name."},"authorIsDev":{"type":["null","boolean"],"description":"Author is the token’s dev."},"authorAvatarUrl":{"type":["null","string"],"description":"Author’s profile picture URL, for a callout mark or avatar next to the thesis."},"thesis":{"type":["null","string"],"description":"The thesis text."},"segments":{"type":["null","array"],"description":"Rich-text runs of the thesis text (text + optional link).","items":{"type":"object","additionalProperties":true}},"likeCount":{"type":["null","integer"]},"holdingsUsd":{"type":["null","number"],"description":"Author’s position value in USD at post time."},"authorTradeUsd":{"type":["null","number"],"description":"USD size of the trade behind the thesis."},"pnl":{"type":["null","number"],"description":"Single PnL figure in USD: realized, falling back to unrealized."},"realizedPnlUsd":{"type":["null","number"],"description":"Realized PnL in USD."},"unrealizedPnlUsd":{"type":["null","number"],"description":"Unrealized PnL in USD."},"percentageRealizedPnl":{"type":["null","number"],"description":"Realized PnL as a percentage."},"percentageUnrealizedPnl":{"type":["null","number"],"description":"Unrealized PnL as a percentage."},"tokenAmount":{"type":["null","number"],"description":"Author’s token balance behind the thesis."},"priceUsdAtPost":{"type":["null","number"],"description":"Token price in USD when the thesis was posted. Null on theses stored before we recorded it."},"marketCapAtPost":{"type":["null","number"],"description":"Token market cap in USD when the thesis was posted. Null on theses stored before we recorded it."},"closedAt":{"type":["null","integer"],"description":"When the author’s position closed, epoch millis. Null while open — the PnL above is then a running figure, not a final one."},"fomoCreatedAt":{"type":["null","integer"],"description":"Post time, epoch milliseconds."},"updatedAt":{"type":["null","integer"],"description":"When we last wrote this record, epoch milliseconds. It can move without any field changing."},"tokenImageUrl":{"type":["null","string"],"description":"Token logo URL on our image host, or null. The path is `/a/<key>.webp`. A new logo gets a new URL. A logo first seen in the last few minutes can show a neutral placeholder until it is ready."}}}}}}}}}}}},"/v2/thesis/user/{id}":{"get":{"summary":"Theses by a user, newest first, ask on a timer for their feed","tags":["Thesis Feed"],"description":"Every thesis this user has posted, newest first, 20 to a page.\n\nThe `id` is the one carried on any user record.\n\n- **Live**: call with no `before` on a timer and dedupe on each item’s `thesisHash`, falling back to `id` when it is null.\n\nAn empty page means the user has posted nothing we hold.\n\n**Price:** 200 CU per 20 requested rows (`limit`, up to 100). An empty page costs the same as a full one.","parameters":[{"schema":{"type":"string"},"in":"query","name":"before","required":false,"description":"The `id` of the last thesis you saw — the previous page’s `nextBefore`. Returns theses older than it. Omit for the newest 20."},{"schema":{"type":"integer","minimum":1,"maximum":100,"default":20},"in":"query","name":"limit","required":false,"description":"Rows per page, 1..100. Priced per started block of 20 rows on the REQUESTED limit."},{"schema":{"type":"string","format":"uuid"},"example":"00000000-0000-0000-0000-000000000000","in":"path","name":"id","required":true,"description":"The author’s `id`, as carried on any user record."}],"security":[{"b2bApiKey":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["userId","tokenAddress","count","hasMore","nextBefore","updatedAt","items"],"properties":{"userId":{"type":"string","description":"The author, echoed back — the same `id` a user record carries."},"tokenAddress":{"type":["null","string"],"description":"The token this page was narrowed to, normalised. Null on the unfiltered feed."},"count":{"type":"integer","description":"Items in this page (0..20)."},"hasMore":{"type":"boolean","description":"Whether older theses exist behind this page."},"nextBefore":{"type":["null","string"],"description":"The OLDEST item’s `id`. Send back as `?before=` for the next page while `hasMore` is true. Null on the last page."},"updatedAt":{"type":["null","integer"],"description":"Post time of the NEWEST thesis in this page, epoch millis."},"items":{"type":"array","items":{"type":"object","required":["id","authorHandle","thesis","fomoCreatedAt"],"properties":{"id":{"type":"string","description":"Thesis id. Send it back as `?before=` to paginate. The same thesis can be issued again under a new id, so dedupe on `thesisHash`. Not related to a user `id`."},"thesisHash":{"type":["null","string"],"description":"Stable key for deduping. Identical for theses with the same author, the same trade, the same token and the same text, whatever their `id` and post time. Null when one of those is missing; fall back to `id` then."},"tokenAddress":{"type":["null","string"],"description":"The token this thesis is about. Present on every item, including the narrowed feeds, so one item shape works everywhere."},"tokenNetwork":{"type":["null","string"],"description":"Chain name (`sol`, `eth`, `base`, …)."},"tokenSymbol":{"type":["null","string"],"description":"Ticker."},"authorId":{"type":["null","string"],"description":"The author’s `id`, the same value a user record carries. `/v2/user/id/{id}` returns their profile and `/v2/thesis/user/{id}` everything else they have posted."},"authorHandle":{"type":["null","string"],"description":"Author’s handle. Display it; to look the author up prefer `authorId`, which does not change when they rename."},"authorName":{"type":["null","string"],"description":"Author display name."},"authorIsDev":{"type":["null","boolean"],"description":"Author is the token’s dev."},"authorAvatarUrl":{"type":["null","string"],"description":"Author’s profile picture URL, for a callout mark or avatar next to the thesis."},"thesis":{"type":["null","string"],"description":"The thesis text."},"segments":{"type":["null","array"],"description":"Rich-text runs of the thesis text (text + optional link).","items":{"type":"object","additionalProperties":true}},"likeCount":{"type":["null","integer"]},"holdingsUsd":{"type":["null","number"],"description":"Author’s position value in USD at post time."},"authorTradeUsd":{"type":["null","number"],"description":"USD size of the trade behind the thesis."},"pnl":{"type":["null","number"],"description":"Single PnL figure in USD: realized, falling back to unrealized."},"realizedPnlUsd":{"type":["null","number"],"description":"Realized PnL in USD."},"unrealizedPnlUsd":{"type":["null","number"],"description":"Unrealized PnL in USD."},"percentageRealizedPnl":{"type":["null","number"],"description":"Realized PnL as a percentage."},"percentageUnrealizedPnl":{"type":["null","number"],"description":"Unrealized PnL as a percentage."},"tokenAmount":{"type":["null","number"],"description":"Author’s token balance behind the thesis."},"priceUsdAtPost":{"type":["null","number"],"description":"Token price in USD when the thesis was posted. Null on theses stored before we recorded it."},"marketCapAtPost":{"type":["null","number"],"description":"Token market cap in USD when the thesis was posted. Null on theses stored before we recorded it."},"closedAt":{"type":["null","integer"],"description":"When the author’s position closed, epoch millis. Null while open — the PnL above is then a running figure, not a final one."},"fomoCreatedAt":{"type":["null","integer"],"description":"Post time, epoch milliseconds."},"updatedAt":{"type":["null","integer"],"description":"When we last wrote this record, epoch milliseconds. It can move without any field changing."},"tokenImageUrl":{"type":["null","string"],"description":"Token logo URL on our image host, or null. The path is `/a/<key>.webp`. A new logo gets a new URL. A logo first seen in the last few minutes can show a neutral placeholder until it is ready."}}}}}}}}}}}},"/v2/thesis/user/{id}/token/{tokenAddress}":{"get":{"summary":"Theses by a user about one token","tags":["Thesis Feed"],"description":"Everything one user has posted about one token, newest first.\n\nThe intersection of the two walls above. Same page size, same `?before=`\ncursor, same item shape — only the filter is narrower.\n\nAn empty page means this user has said nothing we hold about this token. It\ndoes NOT mean the token is unknown to us: ask `/v2/thesis/token/{tokenAddress}`\nfor that.\n\n**Price:** 200 CU per 20 requested rows (`limit`, up to 100). An empty page costs the same as a full one.","parameters":[{"schema":{"type":"string"},"in":"query","name":"before","required":false,"description":"The `id` of the last thesis you saw — the previous page’s `nextBefore`. Returns theses older than it. Omit for the newest 20."},{"schema":{"type":"integer","minimum":1,"maximum":100,"default":20},"in":"query","name":"limit","required":false,"description":"Rows per page, 1..100. Priced per started block of 20 rows on the REQUESTED limit."},{"schema":{"type":"string","format":"uuid"},"example":"00000000-0000-0000-0000-000000000000","in":"path","name":"id","required":true,"description":"The author’s `id`, as carried on any user record."},{"schema":{"type":"string"},"example":"So11111111111111111111111111111111111111112","in":"path","name":"tokenAddress","required":true,"description":"Mint / contract address. Case-sensitive for Solana base58; EVM `0x…` is lower-cased for you."}],"security":[{"b2bApiKey":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["userId","tokenAddress","count","hasMore","nextBefore","updatedAt","items"],"properties":{"userId":{"type":"string","description":"The author, echoed back — the same `id` a user record carries."},"tokenAddress":{"type":["null","string"],"description":"The token this page was narrowed to, normalised. Null on the unfiltered feed."},"count":{"type":"integer","description":"Items in this page (0..20)."},"hasMore":{"type":"boolean","description":"Whether older theses exist behind this page."},"nextBefore":{"type":["null","string"],"description":"The OLDEST item’s `id`. Send back as `?before=` for the next page while `hasMore` is true. Null on the last page."},"updatedAt":{"type":["null","integer"],"description":"Post time of the NEWEST thesis in this page, epoch millis."},"items":{"type":"array","items":{"type":"object","required":["id","authorHandle","thesis","fomoCreatedAt"],"properties":{"id":{"type":"string","description":"Thesis id. Send it back as `?before=` to paginate. The same thesis can be issued again under a new id, so dedupe on `thesisHash`. Not related to a user `id`."},"thesisHash":{"type":["null","string"],"description":"Stable key for deduping. Identical for theses with the same author, the same trade, the same token and the same text, whatever their `id` and post time. Null when one of those is missing; fall back to `id` then."},"tokenAddress":{"type":["null","string"],"description":"The token this thesis is about. Present on every item, including the narrowed feeds, so one item shape works everywhere."},"tokenNetwork":{"type":["null","string"],"description":"Chain name (`sol`, `eth`, `base`, …)."},"tokenSymbol":{"type":["null","string"],"description":"Ticker."},"authorId":{"type":["null","string"],"description":"The author’s `id`, the same value a user record carries. `/v2/user/id/{id}` returns their profile and `/v2/thesis/user/{id}` everything else they have posted."},"authorHandle":{"type":["null","string"],"description":"Author’s handle. Display it; to look the author up prefer `authorId`, which does not change when they rename."},"authorName":{"type":["null","string"],"description":"Author display name."},"authorIsDev":{"type":["null","boolean"],"description":"Author is the token’s dev."},"authorAvatarUrl":{"type":["null","string"],"description":"Author’s profile picture URL, for a callout mark or avatar next to the thesis."},"thesis":{"type":["null","string"],"description":"The thesis text."},"segments":{"type":["null","array"],"description":"Rich-text runs of the thesis text (text + optional link).","items":{"type":"object","additionalProperties":true}},"likeCount":{"type":["null","integer"]},"holdingsUsd":{"type":["null","number"],"description":"Author’s position value in USD at post time."},"authorTradeUsd":{"type":["null","number"],"description":"USD size of the trade behind the thesis."},"pnl":{"type":["null","number"],"description":"Single PnL figure in USD: realized, falling back to unrealized."},"realizedPnlUsd":{"type":["null","number"],"description":"Realized PnL in USD."},"unrealizedPnlUsd":{"type":["null","number"],"description":"Unrealized PnL in USD."},"percentageRealizedPnl":{"type":["null","number"],"description":"Realized PnL as a percentage."},"percentageUnrealizedPnl":{"type":["null","number"],"description":"Unrealized PnL as a percentage."},"tokenAmount":{"type":["null","number"],"description":"Author’s token balance behind the thesis."},"priceUsdAtPost":{"type":["null","number"],"description":"Token price in USD when the thesis was posted. Null on theses stored before we recorded it."},"marketCapAtPost":{"type":["null","number"],"description":"Token market cap in USD when the thesis was posted. Null on theses stored before we recorded it."},"closedAt":{"type":["null","integer"],"description":"When the author’s position closed, epoch millis. Null while open — the PnL above is then a running figure, not a final one."},"fomoCreatedAt":{"type":["null","integer"],"description":"Post time, epoch milliseconds."},"updatedAt":{"type":["null","integer"],"description":"When we last wrote this record, epoch milliseconds. It can move without any field changing."},"tokenImageUrl":{"type":["null","string"],"description":"Token logo URL on our image host, or null. The path is `/a/<key>.webp`. A new logo gets a new URL. A logo first seen in the last few minutes can show a neutral placeholder until it is ready."}}}}}}}}}}}},"/v2/leaderboard/tokens/trending":{"get":{"summary":"Trending tokens","tags":["Leaderboards"],"description":"FOMO's trending board: the tokens seeing the most recent activity.\n\nNo window — token lists are \"right now\" boards.\n\n`capturedAt` is when the ranking was read. A snapshot is one instant.\n\nPass `?at=` to read the board as it stood at an instant: the most recent\nsnapshot taken at or before it.\n\nBoards are at most 100 entries, so there is no pagination.\n\n**Price:** 10 CU per call.","parameters":[{"schema":{"type":"integer","minimum":0},"in":"query","name":"at","required":false,"description":"Epoch milliseconds, e.g. `1755765600000`, the same unit as `capturedAt` in the response. Returns the ranking current at that moment: the most recent snapshot taken at or before it. Omit for the newest."}],"security":[{"b2bApiKey":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["board","window","capturedAt","count","entries"],"properties":{"board":{"type":"string","enum":["traders","clans","tokens/most-held","tokens/trending","tokens/graduated"]},"window":{"type":["null","string"],"description":"Null for boards with no window."},"capturedAt":{"type":"integer","description":"When this ranking was read, epoch millis. A snapshot is one instant."},"count":{"type":"integer"},"entries":{"type":"array","items":{"type":"object","required":["rank","id"],"properties":{"rank":{"type":"integer","description":"Position on the board, 1 = top."},"id":{"type":"string","description":"The subject's FOMO id: a trader uuid, a clan id, or a token address."},"handle":{"type":["null","string"],"description":"Trader @-handle, clan name, or token symbol."},"label":{"type":["null","string"],"description":"Display name, clan name, or token name."},"avatarUrl":{"type":["null","string"],"description":"Avatar URL on our image host, or null. The path is `/a/<key>.webp`. A new picture gets a new URL. A picture added in the last few minutes can show a neutral placeholder until it is ready."},"pnl":{"type":["null","number"],"description":"The measure the board is sorted by, in USD."},"volume":{"type":["null","number"]},"followers":{"type":["null","integer"],"description":"Traders only."},"numTrades":{"type":["null","integer"],"description":"Traders only."},"memberCount":{"type":["null","integer"],"description":"Clans only."},"marketCap":{"type":["null","number"],"description":"Tokens only."},"price":{"type":["null","number"],"description":"Tokens only."},"liquidity":{"type":["null","number"],"description":"Tokens only."}}}}}}}}}}}},"/v2/me":{"get":{"summary":"Introspect the calling API key","tags":["Account"],"description":"Returns the account, plan, scopes, entitlement and current usage for\nthe presented API key.\n\n- Requires any valid API key (no specific scope).\n- Not metered.\n- `usage.period` is the current UTC month, `YYYY-MM`. `usage.unitsRemaining` never goes below 0.\n- `usage.additionalUnits` never expires and is spent only once the month’s grant cannot cover a call.\n- `usage.revealsUsed` counts the responses that returned a wallet this period, forward lookups included.\n- `entitlement.unmetered` is true on a key that is never refused for quota. Calls are still counted, so `usage.unitsUsed` climbs as always, and `monthlyUnits` still reports the plan’s grant without acting as a limit.\n- `usage.unitsRemaining` and `usage.revealsRemaining` are `null`, not `0`,\n  on a key with no cap to count down.","security":[{"b2bApiKey":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["key","plan","scopes","entitlement","usage","capabilities"],"properties":{"mcpProduct":{"type":"object","properties":{"remaining":{"type":"integer","minimum":0},"allowance":{"type":"integer","minimum":0},"apiRemaining":{"type":"integer","minimum":0},"expiresAt":{"type":["null","string"]},"revealCredits":{"type":"integer","minimum":0}}},"capabilities":{"type":"object","required":["walletRevealAllocationOnly"],"properties":{"walletRevealAllocationOnly":{"type":"boolean"}}},"key":{"type":"object","additionalProperties":false,"required":["prefix","name","environment"],"properties":{"prefix":{"type":"string","description":"The visible start of the key."},"name":{"type":"string","description":"The name given to the key."},"environment":{"type":"string","enum":["live","sandbox"],"description":"`live` for a production key, `sandbox` for a test key."}}},"plan":{"type":"string","description":"The plan the key is on."},"scopes":{"type":"array","items":{"type":"string"},"description":"What the key may call."},"entitlement":{"type":"object","additionalProperties":false,"required":["monthlyUnits","ratePerMinute","monthlyReveals","unmetered"],"properties":{"monthlyUnits":{"type":"integer","minimum":0,"description":"Units the plan grants each month."},"ratePerMinute":{"type":"integer","minimum":0,"description":"Requests per minute, across every endpoint."},"monthlyReveals":{"type":["null","integer"],"minimum":0,"description":"Reveals the plan grants each month. Null when there is no cap."},"unmetered":{"type":"boolean","description":"True on a key that is never refused for quota."}}},"usage":{"type":"object","additionalProperties":false,"required":["period","unitsUsed","unitsRemaining","additionalUnits","revealsUsed","revealsRemaining"],"properties":{"period":{"type":"string","pattern":"^\\d{4}-\\d{2}$","description":"The current UTC month, `YYYY-MM`."},"unitsUsed":{"type":"integer","minimum":0,"description":"Units spent this period."},"unitsRemaining":{"type":["null","integer"],"minimum":0,"description":"Units left in the month’s grant. Null on an unmetered key."},"additionalUnits":{"type":"integer","minimum":0,"description":"Top-up units. They never expire."},"revealsUsed":{"type":"integer","minimum":0,"description":"Reveals counted this period."},"revealsRemaining":{"type":["null","integer"],"minimum":0,"description":"Reveals left this period. Null when there is no cap to count down."}}},"features":{"type":"object","properties":{"profileOnly":{"type":"integer","enum":[1]},"tokenInfo":{"type":"integer","enum":[1]}}}}}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/def-0"}}}},"429":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/def-0"}}}},"503":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/def-0"}}}}}}},"/v2/pump/user/wallet/{wallet}":{"get":{"summary":"A pump.fun user by wallet","tags":["Pump"],"description":"The pump.fun profile for a wallet: handle, bio, follower counts, linked X handle.\n\n- On pump.fun the **wallet is the account**, so this is a read, not a resolution.\n- **404** when the wallet has no pump.fun user.\n\n**Price:** 10 CU per call.","parameters":[{"schema":{"type":"string","minLength":1,"maxLength":128},"in":"path","name":"wallet","required":true}],"security":[{"b2bApiKey":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"wallet":{"type":"string"},"username":{"type":["null","string"]},"bio":{"type":["null","string"]},"profileImage":{"type":["null","string"],"description":"Profile image URL on our image host, or null. The path is `/a/<key>.webp`. A new picture gets a new URL. A picture added in the last few minutes can show a neutral placeholder until it is ready."},"xUsername":{"type":["null","string"],"description":"Linked X handle."},"isVerified":{"type":["null","boolean"]},"isPumpUser":{"type":["null","boolean"],"description":"False for a wallet that traded without creating an account."},"followers":{"type":["null","integer"]},"following":{"type":["null","integer"]},"groupBadges":{"type":"array","items":{"type":"string"}}}}}}}}}},"/v2/pump/thesis":{"get":{"summary":"Every pump.fun callout, newest first","tags":["Pump"],"description":"The 25 most recent pump.fun callouts across ALL coins. The global\nthesis feed pump.fun itself does not expose.\n\n- **Live:** call with no `before` on a timer, or hold `/v2/ws/pump`; dedupe on `id`.\n- `before` is a callout **`id`**; an unknown one is a **400**.\n- `hasMore` is true while older callouts remain; `nextBefore` is where they start.\n\n**Price:** 10 CU per call.","parameters":[{"schema":{"type":"string"},"in":"query","name":"before","required":false,"description":"Previous page’s `nextBefore`."}],"security":[{"b2bApiKey":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["count","hasMore","nextBefore","items"],"properties":{"count":{"type":"integer","description":"Items in this page (0..25)."},"hasMore":{"type":"boolean","description":"True when older callouts sit behind this page."},"nextBefore":{"type":["null","string"],"description":"Oldest item's `id`; send as `?before=` to continue. Null on the last page."},"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"wallet":{"type":"string","description":"The author. On pump.fun the wallet is the identity."},"userName":{"type":["null","string"]},"profileImage":{"type":["null","string"],"description":"Author’s pump.fun profile picture URL."},"xUsername":{"type":["null","string"]},"isVerified":{"type":["null","boolean"]},"coinMint":{"type":"string"},"chain":{"type":["null","string"]},"coinSymbol":{"type":["null","string"]},"coinName":{"type":["null","string"]},"thesis":{"type":["null","string"]},"mediaUrl":{"type":["null","string"],"description":"Image the author attached to the callout, or null when there is none."},"calledOutAtMcap":{"type":["null","number"],"description":"Market cap (USD) when the callout was posted."},"multiple":{"type":["null","number"],"description":"Price move since the callout, ×."},"maxMultiplier":{"type":["null","number"]},"createdAt":{"type":["null","integer"],"description":"Post time, epoch ms."},"likes":{"type":["null","integer"]},"commentCount":{"type":["null","integer"],"description":"Comments, excluding author updates."},"replyCount":{"type":["null","integer"],"description":"Total replies, including author updates."},"viewCount":{"type":["null","integer"]},"position":{"type":["null","object"],"description":"Caller position snapshot from the last position read; null until observed. Monetary values are USD. Not a live price quote.","properties":{"amountHeld":{"type":["null","number"]},"valueUsd":{"type":["null","number"]},"pnlUsd":{"type":["null","number"],"description":"Combined realized and unrealized PnL."},"pnlPercentage":{"type":["null","number"],"description":"Percentage points, e.g. 39.5 means 39.5%."},"realizedPnlUsd":{"type":["null","number"]},"costBasisAmount":{"type":["null","number"]},"costBasisUsd":{"type":["null","number"]},"amountBought":{"type":["null","number"]},"amountBoughtUsd":{"type":["null","number"],"description":"Lifetime USD spent buying, not reduced by sells."},"avgEntryPriceUsd":{"type":["null","number"]},"avgEntryMcapUsd":{"type":["null","number"],"description":"Average entry market cap in USD, using verified token supply; null when unavailable."},"isExited":{"type":["null","boolean"]},"observedAt":{"type":"integer","description":"Position observation time, epoch ms."}}}}}}}}}}}}}},"/v2/pump/thesis/token/{mint}":{"get":{"summary":"A coin's callout wall, newest first","tags":["Pump"],"description":"The 25 most recent pump.fun callouts (their theses) for a coin.\n\n- **Live:** call with no `before` on a timer, or hold `/v2/ws/pump`; dedupe on `id`.\n- `before` is a callout **`id`**; an unknown one is a **400**.\n- `hasMore` is true while older callouts remain; `nextBefore` is where they start.\n\n**Price:** 10 CU per call.","parameters":[{"schema":{"type":"string"},"in":"query","name":"before","required":false,"description":"Previous page’s `nextBefore`."},{"schema":{"type":"string","minLength":1,"maxLength":128},"in":"path","name":"mint","required":true}],"security":[{"b2bApiKey":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["count","hasMore","nextBefore","items"],"properties":{"count":{"type":"integer","description":"Items in this page (0..25)."},"hasMore":{"type":"boolean","description":"True when older callouts sit behind this page."},"nextBefore":{"type":["null","string"],"description":"Oldest item's `id`; send as `?before=` to continue. Null on the last page."},"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"wallet":{"type":"string","description":"The author. On pump.fun the wallet is the identity."},"userName":{"type":["null","string"]},"profileImage":{"type":["null","string"],"description":"Author’s pump.fun profile picture URL."},"xUsername":{"type":["null","string"]},"isVerified":{"type":["null","boolean"]},"coinMint":{"type":"string"},"chain":{"type":["null","string"]},"coinSymbol":{"type":["null","string"]},"coinName":{"type":["null","string"]},"thesis":{"type":["null","string"]},"mediaUrl":{"type":["null","string"],"description":"Image the author attached to the callout, or null when there is none."},"calledOutAtMcap":{"type":["null","number"],"description":"Market cap (USD) when the callout was posted."},"multiple":{"type":["null","number"],"description":"Price move since the callout, ×."},"maxMultiplier":{"type":["null","number"]},"createdAt":{"type":["null","integer"],"description":"Post time, epoch ms."},"likes":{"type":["null","integer"]},"commentCount":{"type":["null","integer"],"description":"Comments, excluding author updates."},"replyCount":{"type":["null","integer"],"description":"Total replies, including author updates."},"viewCount":{"type":["null","integer"]},"position":{"type":["null","object"],"description":"Caller position snapshot from the last position read; null until observed. Monetary values are USD. Not a live price quote.","properties":{"amountHeld":{"type":["null","number"]},"valueUsd":{"type":["null","number"]},"pnlUsd":{"type":["null","number"],"description":"Combined realized and unrealized PnL."},"pnlPercentage":{"type":["null","number"],"description":"Percentage points, e.g. 39.5 means 39.5%."},"realizedPnlUsd":{"type":["null","number"]},"costBasisAmount":{"type":["null","number"]},"costBasisUsd":{"type":["null","number"]},"amountBought":{"type":["null","number"]},"amountBoughtUsd":{"type":["null","number"],"description":"Lifetime USD spent buying, not reduced by sells."},"avgEntryPriceUsd":{"type":["null","number"]},"avgEntryMcapUsd":{"type":["null","number"],"description":"Average entry market cap in USD, using verified token supply; null when unavailable."},"isExited":{"type":["null","boolean"]},"observedAt":{"type":"integer","description":"Position observation time, epoch ms."}}}}}}}}}}}}}},"/v2/pump/thesis/wallet/{wallet}":{"get":{"summary":"A wallet's callouts, newest first","tags":["Pump"],"description":"The 25 most recent callouts posted by one wallet. Same paging as\nthe token wall.\n\n- **Live:** call with no `before` on a timer; dedupe on `id`.\n- `before` is a callout **`id`**; an unknown one is a **400**.\n- `hasMore` is true while older callouts remain; `nextBefore` is where they start.\n\n**Price:** 10 CU per call.","parameters":[{"schema":{"type":"string"},"in":"query","name":"before","required":false,"description":"Previous page’s `nextBefore`."},{"schema":{"type":"string","minLength":1,"maxLength":128},"in":"path","name":"wallet","required":true}],"security":[{"b2bApiKey":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["count","hasMore","nextBefore","items"],"properties":{"count":{"type":"integer","description":"Items in this page (0..25)."},"hasMore":{"type":"boolean","description":"True when older callouts sit behind this page."},"nextBefore":{"type":["null","string"],"description":"Oldest item's `id`; send as `?before=` to continue. Null on the last page."},"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"wallet":{"type":"string","description":"The author. On pump.fun the wallet is the identity."},"userName":{"type":["null","string"]},"profileImage":{"type":["null","string"],"description":"Author’s pump.fun profile picture URL."},"xUsername":{"type":["null","string"]},"isVerified":{"type":["null","boolean"]},"coinMint":{"type":"string"},"chain":{"type":["null","string"]},"coinSymbol":{"type":["null","string"]},"coinName":{"type":["null","string"]},"thesis":{"type":["null","string"]},"mediaUrl":{"type":["null","string"],"description":"Image the author attached to the callout, or null when there is none."},"calledOutAtMcap":{"type":["null","number"],"description":"Market cap (USD) when the callout was posted."},"multiple":{"type":["null","number"],"description":"Price move since the callout, ×."},"maxMultiplier":{"type":["null","number"]},"createdAt":{"type":["null","integer"],"description":"Post time, epoch ms."},"likes":{"type":["null","integer"]},"commentCount":{"type":["null","integer"],"description":"Comments, excluding author updates."},"replyCount":{"type":["null","integer"],"description":"Total replies, including author updates."},"viewCount":{"type":["null","integer"]},"position":{"type":["null","object"],"description":"Caller position snapshot from the last position read; null until observed. Monetary values are USD. Not a live price quote.","properties":{"amountHeld":{"type":["null","number"]},"valueUsd":{"type":["null","number"]},"pnlUsd":{"type":["null","number"],"description":"Combined realized and unrealized PnL."},"pnlPercentage":{"type":["null","number"],"description":"Percentage points, e.g. 39.5 means 39.5%."},"realizedPnlUsd":{"type":["null","number"]},"costBasisAmount":{"type":["null","number"]},"costBasisUsd":{"type":["null","number"]},"amountBought":{"type":["null","number"]},"amountBoughtUsd":{"type":["null","number"],"description":"Lifetime USD spent buying, not reduced by sells."},"avgEntryPriceUsd":{"type":["null","number"]},"avgEntryMcapUsd":{"type":["null","number"],"description":"Average entry market cap in USD, using verified token supply; null when unavailable."},"isExited":{"type":["null","boolean"]},"observedAt":{"type":"integer","description":"Position observation time, epoch ms."}}}}}}}}}}}}}},"/v2/pump/leaderboard/traders":{"get":{"summary":"The pump.fun PnL leaderboard","tags":["Pump"],"description":"pump.fun's top 100 traders by realized+unrealized PnL, as a snapshot.\n\n- `period` is `daily`, `weekly` (default) or `monthly`.\n- `capturedAt` is the time of the snapshot.\n- **Point-in-time:** `?at=` (epoch ms or ISO) returns the latest snapshot at or\n  before that instant.\n\n**Price:** 10 CU per call.","parameters":[{"schema":{"type":"string","enum":["daily","weekly","monthly"],"default":"weekly"},"in":"query","name":"period","required":false},{"schema":{"type":"string"},"in":"query","name":"at","required":false,"description":"Epoch ms or ISO timestamp."}],"security":[{"b2bApiKey":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["period","capturedAt","count","entries"],"properties":{"period":{"type":"string"},"capturedAt":{"type":["null","integer"],"description":"Snapshot time, epoch ms."},"count":{"type":"integer"},"entries":{"type":"array","items":{"type":"object","properties":{"rank":{"type":"integer"},"wallet":{"type":"string"},"username":{"type":["null","string"]},"isVerified":{"type":["null","boolean"]},"pnlSol":{"type":["null","number"]},"pnlUsd":{"type":["null","number"]},"pnlPercent":{"type":["null","number"]},"realizedPnlUsd":{"type":["null","number"]},"unrealizedPnlUsd":{"type":["null","number"]}}}}}}}}}}}},"/v2/pump/user/wallet/{wallet}/pnl":{"get":{"summary":"One pump.fun account's realized and unrealized profit","tags":["Pump"],"description":"Profit and trading activity across the whole wallet, on the same formula as\nGET /v2/user/handle/{handle}/pnl.\n\n- The wallet can be the Solana or the EVM wallet of the account. Both wallets pump.fun\n  links to the account are read and summed; `wallets` names them.\n- `24h`, `7d`, `30d` and `all` each carry `realizedPnlUsd`, `unrealizedPnlUsd` and\n  `totalPnlUsd`. `all` covers every trade since 1 January 2025.\n- `unrealized`: profit on what the wallets hold now. It leaves out spam, pools under $10,000 of liquidity and positions larger than their pool.\n- `stale` is true when a figure is past its refresh age and could not be read again;\n  `nextUpdateAt` is when the oldest figure falls due.\n- `pumpBoard`: the Solana wallet's standing pump.fun itself shows on its PnL boards, for reference.\n- The first call for a wallet reads it live, up to 8 seconds. A window that does not\n  finish in time comes back `pending` and is ready on the next call.\n- Only a `ready` answer is charged the hit price; every other answer is charged the\n  miss price.\n- **404** when the wallet has no pump.fun user.\n\n**Price:** 500 CU per call.","parameters":[{"schema":{"type":"string","minLength":1,"maxLength":128},"in":"path","name":"wallet","required":true,"description":"pump.fun wallet, Solana or EVM. An EVM address matches case-insensitively."}],"security":[{"b2bApiKey":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["wallet","username","wallets","status","retryAfterSeconds","updatedAt","nextUpdateAt","stale","windows","unrealized","pumpBoard"],"properties":{"wallet":{"type":"string","description":"The wallet asked for."},"username":{"type":["null","string"]},"wallets":{"type":"object","required":["solana","evm"],"description":"The wallets read for this pump.fun account: the one asked for, and the wallet on the other chain that pump.fun links to the same account. Every figure covers both.","properties":{"solana":{"type":["null","string"]},"evm":{"type":["null","string"]}}},"status":{"type":"string","enum":["ready","pending","failed","unavailable"],"description":"`ready`: figures are served; each window carries its own status. `pending`: nothing could be read within the wait; ask again after retryAfterSeconds. `failed`: the last reading failed and nothing is held yet. `unavailable`: whole-wallet reading is switched off or out of capacity. Only `ready` is charged the hit price."},"retryAfterSeconds":{"type":["null","integer"],"description":"Set only when status is pending or failed."},"updatedAt":{"type":["null","integer"],"description":"Epoch ms of the oldest figure served. Null unless status is ready."},"nextUpdateAt":{"type":["null","integer"],"description":"Epoch ms when the oldest figure served falls due to be read again; the first call after that moment reads it. Earlier than now when stale is true. Null unless status is ready."},"stale":{"type":"boolean","description":"True when at least one figure served is past its refresh age and could not be read again on this call, because reading is out of capacity or the read is still running. A later call can carry newer figures; updatedAt says how old the oldest one is."},"windows":{"type":"object","required":["24h","7d","30d","all"],"description":"One formula on every window: realized profit on average cost plus the unrealized profit of positions last traded in the window. 24h, 7d and 30d are UTC calendar days ending today.","properties":{"24h":{"type":"object","required":["realizedPnlUsd","unrealizedPnlUsd","totalPnlUsd","returnPct","volumeUsd","buyVolumeUsd","sellVolumeUsd","trades","buys","sells","tokensTraded","winningTokens","status","updatedAt","approximate"],"properties":{"realizedPnlUsd":{"type":["null","number"],"description":"Realized profit in the window across the account's wallets, every venue, USD: what sells received minus the average cost of the tokens sold. On all, every trade since 1 January 2025. Null while pending, and when the figure is one no real wallet reaches or a realized profit larger than sellVolumeUsd."},"unrealizedPnlUsd":{"type":["null","number"],"description":"What the tokens held now are worth minus what they cost, USD, for the positions last traded in the window. On all, every position counted in unrealized. Null until the positions have been read."},"totalPnlUsd":{"type":["null","number"],"description":"realizedPnlUsd plus unrealizedPnlUsd, USD. Null when either part is null."},"returnPct":{"type":["null","number"],"description":"Realized profit as a percentage of what the sold tokens cost."},"volumeUsd":{"type":["null","number"],"description":"Bought plus sold in the window, USD."},"buyVolumeUsd":{"type":["null","number"],"description":"Paid on buys in the window, USD."},"sellVolumeUsd":{"type":["null","number"],"description":"Received on sells in the window, USD."},"trades":{"type":["null","integer"],"description":"Trades in the window."},"buys":{"type":["null","integer"]},"sells":{"type":["null","integer"]},"tokensTraded":{"type":["null","integer"],"description":"Distinct tokens bought or sold in the window."},"winningTokens":{"type":["null","integer"],"description":"Tokens that closed the window with positive realized profit."},"status":{"type":"string","enum":["ready","pending"],"description":"`ready`: the figures are filled. `pending`: this window is still being read for the first time; its figures are null and a call a few seconds later carries them."},"updatedAt":{"type":["null","integer"],"description":"Epoch ms when this window's figures were read. Null while pending."},"approximate":{"type":"boolean","description":"True when the whole-wallet figures of this window were counted from per-token totals, because the window itself could not be read. Each token's whole realized profit, volume and trade count lands in the window of its last trade, so 24h, 7d and 30d can show more than happened inside them. The next reading of the window replaces these figures. False otherwise, and while pending."}}},"7d":{"type":"object","required":["realizedPnlUsd","unrealizedPnlUsd","totalPnlUsd","returnPct","volumeUsd","buyVolumeUsd","sellVolumeUsd","trades","buys","sells","tokensTraded","winningTokens","status","updatedAt","approximate"],"properties":{"realizedPnlUsd":{"type":["null","number"],"description":"Realized profit in the window across the account's wallets, every venue, USD: what sells received minus the average cost of the tokens sold. On all, every trade since 1 January 2025. Null while pending, and when the figure is one no real wallet reaches or a realized profit larger than sellVolumeUsd."},"unrealizedPnlUsd":{"type":["null","number"],"description":"What the tokens held now are worth minus what they cost, USD, for the positions last traded in the window. On all, every position counted in unrealized. Null until the positions have been read."},"totalPnlUsd":{"type":["null","number"],"description":"realizedPnlUsd plus unrealizedPnlUsd, USD. Null when either part is null."},"returnPct":{"type":["null","number"],"description":"Realized profit as a percentage of what the sold tokens cost."},"volumeUsd":{"type":["null","number"],"description":"Bought plus sold in the window, USD."},"buyVolumeUsd":{"type":["null","number"],"description":"Paid on buys in the window, USD."},"sellVolumeUsd":{"type":["null","number"],"description":"Received on sells in the window, USD."},"trades":{"type":["null","integer"],"description":"Trades in the window."},"buys":{"type":["null","integer"]},"sells":{"type":["null","integer"]},"tokensTraded":{"type":["null","integer"],"description":"Distinct tokens bought or sold in the window."},"winningTokens":{"type":["null","integer"],"description":"Tokens that closed the window with positive realized profit."},"status":{"type":"string","enum":["ready","pending"],"description":"`ready`: the figures are filled. `pending`: this window is still being read for the first time; its figures are null and a call a few seconds later carries them."},"updatedAt":{"type":["null","integer"],"description":"Epoch ms when this window's figures were read. Null while pending."},"approximate":{"type":"boolean","description":"True when the whole-wallet figures of this window were counted from per-token totals, because the window itself could not be read. Each token's whole realized profit, volume and trade count lands in the window of its last trade, so 24h, 7d and 30d can show more than happened inside them. The next reading of the window replaces these figures. False otherwise, and while pending."}}},"30d":{"type":"object","required":["realizedPnlUsd","unrealizedPnlUsd","totalPnlUsd","returnPct","volumeUsd","buyVolumeUsd","sellVolumeUsd","trades","buys","sells","tokensTraded","winningTokens","status","updatedAt","approximate"],"properties":{"realizedPnlUsd":{"type":["null","number"],"description":"Realized profit in the window across the account's wallets, every venue, USD: what sells received minus the average cost of the tokens sold. On all, every trade since 1 January 2025. Null while pending, and when the figure is one no real wallet reaches or a realized profit larger than sellVolumeUsd."},"unrealizedPnlUsd":{"type":["null","number"],"description":"What the tokens held now are worth minus what they cost, USD, for the positions last traded in the window. On all, every position counted in unrealized. Null until the positions have been read."},"totalPnlUsd":{"type":["null","number"],"description":"realizedPnlUsd plus unrealizedPnlUsd, USD. Null when either part is null."},"returnPct":{"type":["null","number"],"description":"Realized profit as a percentage of what the sold tokens cost."},"volumeUsd":{"type":["null","number"],"description":"Bought plus sold in the window, USD."},"buyVolumeUsd":{"type":["null","number"],"description":"Paid on buys in the window, USD."},"sellVolumeUsd":{"type":["null","number"],"description":"Received on sells in the window, USD."},"trades":{"type":["null","integer"],"description":"Trades in the window."},"buys":{"type":["null","integer"]},"sells":{"type":["null","integer"]},"tokensTraded":{"type":["null","integer"],"description":"Distinct tokens bought or sold in the window."},"winningTokens":{"type":["null","integer"],"description":"Tokens that closed the window with positive realized profit."},"status":{"type":"string","enum":["ready","pending"],"description":"`ready`: the figures are filled. `pending`: this window is still being read for the first time; its figures are null and a call a few seconds later carries them."},"updatedAt":{"type":["null","integer"],"description":"Epoch ms when this window's figures were read. Null while pending."},"approximate":{"type":"boolean","description":"True when the whole-wallet figures of this window were counted from per-token totals, because the window itself could not be read. Each token's whole realized profit, volume and trade count lands in the window of its last trade, so 24h, 7d and 30d can show more than happened inside them. The next reading of the window replaces these figures. False otherwise, and while pending."}}},"all":{"type":"object","required":["realizedPnlUsd","unrealizedPnlUsd","totalPnlUsd","returnPct","volumeUsd","buyVolumeUsd","sellVolumeUsd","trades","buys","sells","tokensTraded","winningTokens","status","updatedAt","approximate"],"properties":{"realizedPnlUsd":{"type":["null","number"],"description":"Realized profit in the window across the account's wallets, every venue, USD: what sells received minus the average cost of the tokens sold. On all, every trade since 1 January 2025. Null while pending, and when the figure is one no real wallet reaches or a realized profit larger than sellVolumeUsd."},"unrealizedPnlUsd":{"type":["null","number"],"description":"What the tokens held now are worth minus what they cost, USD, for the positions last traded in the window. On all, every position counted in unrealized. Null until the positions have been read."},"totalPnlUsd":{"type":["null","number"],"description":"realizedPnlUsd plus unrealizedPnlUsd, USD. Null when either part is null."},"returnPct":{"type":["null","number"],"description":"Realized profit as a percentage of what the sold tokens cost."},"volumeUsd":{"type":["null","number"],"description":"Bought plus sold in the window, USD."},"buyVolumeUsd":{"type":["null","number"],"description":"Paid on buys in the window, USD."},"sellVolumeUsd":{"type":["null","number"],"description":"Received on sells in the window, USD."},"trades":{"type":["null","integer"],"description":"Trades in the window."},"buys":{"type":["null","integer"]},"sells":{"type":["null","integer"]},"tokensTraded":{"type":["null","integer"],"description":"Distinct tokens bought or sold in the window."},"winningTokens":{"type":["null","integer"],"description":"Tokens that closed the window with positive realized profit."},"status":{"type":"string","enum":["ready","pending"],"description":"`ready`: the figures are filled. `pending`: this window is still being read for the first time; its figures are null and a call a few seconds later carries them."},"updatedAt":{"type":["null","integer"],"description":"Epoch ms when this window's figures were read. Null while pending."},"approximate":{"type":"boolean","description":"True when the whole-wallet figures of this window were counted from per-token totals, because the window itself could not be read. Each token's whole realized profit, volume and trade count lands in the window of its last trade, so 24h, 7d and 30d can show more than happened inside them. The next reading of the window replaces these figures. False otherwise, and while pending."}}}}},"unrealized":{"type":["null","object"],"required":["unrealizedPnlUsd","holdingsUsd","positions","excludedPositions","status","updatedAt"],"properties":{"unrealizedPnlUsd":{"type":"number","description":"What the tokens held now are worth minus what they cost, USD. A token held without any buy, such as a transfer in or an airdrop, has no cost to measure against and is left out."},"holdingsUsd":{"type":"number","description":"Current value of the positions counted, USD."},"positions":{"type":"integer","description":"Open positions counted."},"excludedPositions":{"type":"integer","description":"Open positions left out: flagged as spam, a pool under $10,000 of liquidity, or a position worth more than its pool holds, since none of those can be sold at the quoted price; and a token held without any buy, which has no cost."},"status":{"type":"string","enum":["ready"],"description":"Always `ready` when present."},"updatedAt":{"type":"integer","description":"Epoch ms when the positions were read."}},"description":"Profit on what the wallets hold now. It has no window. Null until the positions have been read at least once."},"pumpBoard":{"type":"object","required":["daily","weekly","monthly"],"description":"The Solana wallet's standing on the latest pump.fun PnL boards, as pump.fun shows it, for reference. pump.fun computes these itself and they need not match the windows above. Null for a board the wallet is not on.","properties":{"daily":{"type":["null","object"],"required":["rank","pnlUsd","realizedPnlUsd","unrealizedPnlUsd","asOf"],"properties":{"rank":{"type":"integer"},"pnlUsd":{"type":["null","number"]},"realizedPnlUsd":{"type":["null","number"]},"unrealizedPnlUsd":{"type":["null","number"]},"asOf":{"type":"integer","description":"Epoch ms of the board this standing is from."}}},"weekly":{"type":["null","object"],"required":["rank","pnlUsd","realizedPnlUsd","unrealizedPnlUsd","asOf"],"properties":{"rank":{"type":"integer"},"pnlUsd":{"type":["null","number"]},"realizedPnlUsd":{"type":["null","number"]},"unrealizedPnlUsd":{"type":["null","number"]},"asOf":{"type":"integer","description":"Epoch ms of the board this standing is from."}}},"monthly":{"type":["null","object"],"required":["rank","pnlUsd","realizedPnlUsd","unrealizedPnlUsd","asOf"],"properties":{"rank":{"type":"integer"},"pnlUsd":{"type":["null","number"]},"realizedPnlUsd":{"type":["null","number"]},"unrealizedPnlUsd":{"type":["null","number"]},"asOf":{"type":"integer","description":"Epoch ms of the board this standing is from."}}}}}}}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/def-0"}}}}}}},"/v2/pump/user/wallets/pnl":{"post":{"summary":"Realized and unrealized profit for up to 100 pump.fun wallets in one call","tags":["Pump"],"description":"GET /v2/pump/user/wallet/{wallet}/pnl for up to 100 wallets at once.\n\n- Each entry is the object the single endpoint returns.\n- Entries come back in the order requested, and a repeated wallet counts once.\n- A wallet with no pump.fun user goes into `missing` and the call still succeeds.\n- A batch is charged as one call: it is served in full or refused as a whole\n  with **402**, before any entry comes back.\n- Wallets are read live, several at a time, for up to 8 seconds. A wallet or window\n  that does not finish in time comes back `pending` and is ready on the next call.\n  Only `ready` entries are charged the hit price.\n\n**Price:** 500 CU per entry answered ready, 200 CU per entry not ready and per wallet in `missing`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["wallets"],"properties":{"wallets":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"string","minLength":1,"maxLength":128},"description":"Up to 100 pump.fun wallets, Solana or EVM."}}}}}},"security":[{"b2bApiKey":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["count","missing","entries"],"properties":{"count":{"type":"integer","description":"Entries returned: the wallets we hold."},"missing":{"type":"array","items":{"type":"string"},"description":"Requested wallets with no pump.fun user, EVM addresses lowercased. Each is still charged."},"entries":{"type":"array","items":{"type":"object","required":["wallet","username","wallets","status","retryAfterSeconds","updatedAt","nextUpdateAt","stale","windows","unrealized","pumpBoard"],"properties":{"wallet":{"type":"string","description":"The wallet asked for."},"username":{"type":["null","string"]},"wallets":{"type":"object","required":["solana","evm"],"description":"The wallets read for this pump.fun account: the one asked for, and the wallet on the other chain that pump.fun links to the same account. Every figure covers both.","properties":{"solana":{"type":["null","string"]},"evm":{"type":["null","string"]}}},"status":{"type":"string","enum":["ready","pending","failed","unavailable"],"description":"`ready`: figures are served; each window carries its own status. `pending`: nothing could be read within the wait; ask again after retryAfterSeconds. `failed`: the last reading failed and nothing is held yet. `unavailable`: whole-wallet reading is switched off or out of capacity. Only `ready` is charged the hit price."},"retryAfterSeconds":{"type":["null","integer"],"description":"Set only when status is pending or failed."},"updatedAt":{"type":["null","integer"],"description":"Epoch ms of the oldest figure served. Null unless status is ready."},"nextUpdateAt":{"type":["null","integer"],"description":"Epoch ms when the oldest figure served falls due to be read again; the first call after that moment reads it. Earlier than now when stale is true. Null unless status is ready."},"stale":{"type":"boolean","description":"True when at least one figure served is past its refresh age and could not be read again on this call, because reading is out of capacity or the read is still running. A later call can carry newer figures; updatedAt says how old the oldest one is."},"windows":{"type":"object","required":["24h","7d","30d","all"],"description":"One formula on every window: realized profit on average cost plus the unrealized profit of positions last traded in the window. 24h, 7d and 30d are UTC calendar days ending today.","properties":{"24h":{"type":"object","required":["realizedPnlUsd","unrealizedPnlUsd","totalPnlUsd","returnPct","volumeUsd","buyVolumeUsd","sellVolumeUsd","trades","buys","sells","tokensTraded","winningTokens","status","updatedAt","approximate"],"properties":{"realizedPnlUsd":{"type":["null","number"],"description":"Realized profit in the window across the account's wallets, every venue, USD: what sells received minus the average cost of the tokens sold. On all, every trade since 1 January 2025. Null while pending, and when the figure is one no real wallet reaches or a realized profit larger than sellVolumeUsd."},"unrealizedPnlUsd":{"type":["null","number"],"description":"What the tokens held now are worth minus what they cost, USD, for the positions last traded in the window. On all, every position counted in unrealized. Null until the positions have been read."},"totalPnlUsd":{"type":["null","number"],"description":"realizedPnlUsd plus unrealizedPnlUsd, USD. Null when either part is null."},"returnPct":{"type":["null","number"],"description":"Realized profit as a percentage of what the sold tokens cost."},"volumeUsd":{"type":["null","number"],"description":"Bought plus sold in the window, USD."},"buyVolumeUsd":{"type":["null","number"],"description":"Paid on buys in the window, USD."},"sellVolumeUsd":{"type":["null","number"],"description":"Received on sells in the window, USD."},"trades":{"type":["null","integer"],"description":"Trades in the window."},"buys":{"type":["null","integer"]},"sells":{"type":["null","integer"]},"tokensTraded":{"type":["null","integer"],"description":"Distinct tokens bought or sold in the window."},"winningTokens":{"type":["null","integer"],"description":"Tokens that closed the window with positive realized profit."},"status":{"type":"string","enum":["ready","pending"],"description":"`ready`: the figures are filled. `pending`: this window is still being read for the first time; its figures are null and a call a few seconds later carries them."},"updatedAt":{"type":["null","integer"],"description":"Epoch ms when this window's figures were read. Null while pending."},"approximate":{"type":"boolean","description":"True when the whole-wallet figures of this window were counted from per-token totals, because the window itself could not be read. Each token's whole realized profit, volume and trade count lands in the window of its last trade, so 24h, 7d and 30d can show more than happened inside them. The next reading of the window replaces these figures. False otherwise, and while pending."}}},"7d":{"type":"object","required":["realizedPnlUsd","unrealizedPnlUsd","totalPnlUsd","returnPct","volumeUsd","buyVolumeUsd","sellVolumeUsd","trades","buys","sells","tokensTraded","winningTokens","status","updatedAt","approximate"],"properties":{"realizedPnlUsd":{"type":["null","number"],"description":"Realized profit in the window across the account's wallets, every venue, USD: what sells received minus the average cost of the tokens sold. On all, every trade since 1 January 2025. Null while pending, and when the figure is one no real wallet reaches or a realized profit larger than sellVolumeUsd."},"unrealizedPnlUsd":{"type":["null","number"],"description":"What the tokens held now are worth minus what they cost, USD, for the positions last traded in the window. On all, every position counted in unrealized. Null until the positions have been read."},"totalPnlUsd":{"type":["null","number"],"description":"realizedPnlUsd plus unrealizedPnlUsd, USD. Null when either part is null."},"returnPct":{"type":["null","number"],"description":"Realized profit as a percentage of what the sold tokens cost."},"volumeUsd":{"type":["null","number"],"description":"Bought plus sold in the window, USD."},"buyVolumeUsd":{"type":["null","number"],"description":"Paid on buys in the window, USD."},"sellVolumeUsd":{"type":["null","number"],"description":"Received on sells in the window, USD."},"trades":{"type":["null","integer"],"description":"Trades in the window."},"buys":{"type":["null","integer"]},"sells":{"type":["null","integer"]},"tokensTraded":{"type":["null","integer"],"description":"Distinct tokens bought or sold in the window."},"winningTokens":{"type":["null","integer"],"description":"Tokens that closed the window with positive realized profit."},"status":{"type":"string","enum":["ready","pending"],"description":"`ready`: the figures are filled. `pending`: this window is still being read for the first time; its figures are null and a call a few seconds later carries them."},"updatedAt":{"type":["null","integer"],"description":"Epoch ms when this window's figures were read. Null while pending."},"approximate":{"type":"boolean","description":"True when the whole-wallet figures of this window were counted from per-token totals, because the window itself could not be read. Each token's whole realized profit, volume and trade count lands in the window of its last trade, so 24h, 7d and 30d can show more than happened inside them. The next reading of the window replaces these figures. False otherwise, and while pending."}}},"30d":{"type":"object","required":["realizedPnlUsd","unrealizedPnlUsd","totalPnlUsd","returnPct","volumeUsd","buyVolumeUsd","sellVolumeUsd","trades","buys","sells","tokensTraded","winningTokens","status","updatedAt","approximate"],"properties":{"realizedPnlUsd":{"type":["null","number"],"description":"Realized profit in the window across the account's wallets, every venue, USD: what sells received minus the average cost of the tokens sold. On all, every trade since 1 January 2025. Null while pending, and when the figure is one no real wallet reaches or a realized profit larger than sellVolumeUsd."},"unrealizedPnlUsd":{"type":["null","number"],"description":"What the tokens held now are worth minus what they cost, USD, for the positions last traded in the window. On all, every position counted in unrealized. Null until the positions have been read."},"totalPnlUsd":{"type":["null","number"],"description":"realizedPnlUsd plus unrealizedPnlUsd, USD. Null when either part is null."},"returnPct":{"type":["null","number"],"description":"Realized profit as a percentage of what the sold tokens cost."},"volumeUsd":{"type":["null","number"],"description":"Bought plus sold in the window, USD."},"buyVolumeUsd":{"type":["null","number"],"description":"Paid on buys in the window, USD."},"sellVolumeUsd":{"type":["null","number"],"description":"Received on sells in the window, USD."},"trades":{"type":["null","integer"],"description":"Trades in the window."},"buys":{"type":["null","integer"]},"sells":{"type":["null","integer"]},"tokensTraded":{"type":["null","integer"],"description":"Distinct tokens bought or sold in the window."},"winningTokens":{"type":["null","integer"],"description":"Tokens that closed the window with positive realized profit."},"status":{"type":"string","enum":["ready","pending"],"description":"`ready`: the figures are filled. `pending`: this window is still being read for the first time; its figures are null and a call a few seconds later carries them."},"updatedAt":{"type":["null","integer"],"description":"Epoch ms when this window's figures were read. Null while pending."},"approximate":{"type":"boolean","description":"True when the whole-wallet figures of this window were counted from per-token totals, because the window itself could not be read. Each token's whole realized profit, volume and trade count lands in the window of its last trade, so 24h, 7d and 30d can show more than happened inside them. The next reading of the window replaces these figures. False otherwise, and while pending."}}},"all":{"type":"object","required":["realizedPnlUsd","unrealizedPnlUsd","totalPnlUsd","returnPct","volumeUsd","buyVolumeUsd","sellVolumeUsd","trades","buys","sells","tokensTraded","winningTokens","status","updatedAt","approximate"],"properties":{"realizedPnlUsd":{"type":["null","number"],"description":"Realized profit in the window across the account's wallets, every venue, USD: what sells received minus the average cost of the tokens sold. On all, every trade since 1 January 2025. Null while pending, and when the figure is one no real wallet reaches or a realized profit larger than sellVolumeUsd."},"unrealizedPnlUsd":{"type":["null","number"],"description":"What the tokens held now are worth minus what they cost, USD, for the positions last traded in the window. On all, every position counted in unrealized. Null until the positions have been read."},"totalPnlUsd":{"type":["null","number"],"description":"realizedPnlUsd plus unrealizedPnlUsd, USD. Null when either part is null."},"returnPct":{"type":["null","number"],"description":"Realized profit as a percentage of what the sold tokens cost."},"volumeUsd":{"type":["null","number"],"description":"Bought plus sold in the window, USD."},"buyVolumeUsd":{"type":["null","number"],"description":"Paid on buys in the window, USD."},"sellVolumeUsd":{"type":["null","number"],"description":"Received on sells in the window, USD."},"trades":{"type":["null","integer"],"description":"Trades in the window."},"buys":{"type":["null","integer"]},"sells":{"type":["null","integer"]},"tokensTraded":{"type":["null","integer"],"description":"Distinct tokens bought or sold in the window."},"winningTokens":{"type":["null","integer"],"description":"Tokens that closed the window with positive realized profit."},"status":{"type":"string","enum":["ready","pending"],"description":"`ready`: the figures are filled. `pending`: this window is still being read for the first time; its figures are null and a call a few seconds later carries them."},"updatedAt":{"type":["null","integer"],"description":"Epoch ms when this window's figures were read. Null while pending."},"approximate":{"type":"boolean","description":"True when the whole-wallet figures of this window were counted from per-token totals, because the window itself could not be read. Each token's whole realized profit, volume and trade count lands in the window of its last trade, so 24h, 7d and 30d can show more than happened inside them. The next reading of the window replaces these figures. False otherwise, and while pending."}}}}},"unrealized":{"type":["null","object"],"required":["unrealizedPnlUsd","holdingsUsd","positions","excludedPositions","status","updatedAt"],"properties":{"unrealizedPnlUsd":{"type":"number","description":"What the tokens held now are worth minus what they cost, USD. A token held without any buy, such as a transfer in or an airdrop, has no cost to measure against and is left out."},"holdingsUsd":{"type":"number","description":"Current value of the positions counted, USD."},"positions":{"type":"integer","description":"Open positions counted."},"excludedPositions":{"type":"integer","description":"Open positions left out: flagged as spam, a pool under $10,000 of liquidity, or a position worth more than its pool holds, since none of those can be sold at the quoted price; and a token held without any buy, which has no cost."},"status":{"type":"string","enum":["ready"],"description":"Always `ready` when present."},"updatedAt":{"type":"integer","description":"Epoch ms when the positions were read."}},"description":"Profit on what the wallets hold now. It has no window. Null until the positions have been read at least once."},"pumpBoard":{"type":"object","required":["daily","weekly","monthly"],"description":"The Solana wallet's standing on the latest pump.fun PnL boards, as pump.fun shows it, for reference. pump.fun computes these itself and they need not match the windows above. Null for a board the wallet is not on.","properties":{"daily":{"type":["null","object"],"required":["rank","pnlUsd","realizedPnlUsd","unrealizedPnlUsd","asOf"],"properties":{"rank":{"type":"integer"},"pnlUsd":{"type":["null","number"]},"realizedPnlUsd":{"type":["null","number"]},"unrealizedPnlUsd":{"type":["null","number"]},"asOf":{"type":"integer","description":"Epoch ms of the board this standing is from."}}},"weekly":{"type":["null","object"],"required":["rank","pnlUsd","realizedPnlUsd","unrealizedPnlUsd","asOf"],"properties":{"rank":{"type":"integer"},"pnlUsd":{"type":["null","number"]},"realizedPnlUsd":{"type":["null","number"]},"unrealizedPnlUsd":{"type":["null","number"]},"asOf":{"type":"integer","description":"Epoch ms of the board this standing is from."}}},"monthly":{"type":["null","object"],"required":["rank","pnlUsd","realizedPnlUsd","unrealizedPnlUsd","asOf"],"properties":{"rank":{"type":"integer"},"pnlUsd":{"type":["null","number"]},"realizedPnlUsd":{"type":["null","number"]},"unrealizedPnlUsd":{"type":["null","number"]},"asOf":{"type":"integer","description":"Epoch ms of the board this standing is from."}}}}}}},"description":"One entry per wallet we hold, in the order requested."}}}}}}}}},"/v2/ws":{"get":{"tags":["WebSocket"],"summary":"Live theses, every token or a token list (WebSocket)","description":"The live thesis feed. pump.fun callouts have their own socket at\n`/v2/ws/pump`, described below. Attach\nonce, then declare what you want, every token or a list of tokens, and\nchange it at any time without reconnecting.\n\n**This path is an upgrade, not a request.** A plain `GET` returns `404`;\nonly a request carrying the WebSocket handshake headers is served.\n\n**The key cannot come from a browser.** Authentication is the same\n`authorization: Bearer <key>` header as every other endpoint, and the\nbrowser `WebSocket` constructor cannot set headers. Hold the socket in your\nbackend and relay to your front end from there.\n\n**The socket is included from Growth ($899).** Growth, Scale and Enterprise\ncan connect. Keys on legacy plans keep the websocket access they already\nhave. Self-serve free keys, Starter and Builder are refused during the\nhandshake with `403 WEBSOCKET_PLAN_REQUIRED`.\n\nA key that lacks the scope for this path is refused during the handshake\nwith a `403`, before the upgrade, so you read it as an HTTP status rather\nthan a dropped socket.\n\n### Subscribing\n\nA connection holds **one** subscription. It is one of two shapes:\n\n```json\n{ \"type\": \"subscribe\", \"subscription\": { \"type\": \"all\" } }\n{ \"type\": \"subscribe\", \"subscription\": { \"type\": \"tokens\", \"tokens\": [\"So1111…\", \"0xabc…\"] } }\n```\n\nA `subscribe` **replaces** whatever you had before — it does not add to it.\nTo change your watchlist, send the new list in full. To stop receiving:\n\n```json\n{ \"type\": \"unsubscribe\" }\n```\n\nThat is the one thing here likely to catch you out, so we say it out loud\non the wire too — see the `replaced` frame below.\n\nYou attach unsubscribed and receive nothing until you ask. A `tokens`\nsubscription may name up to **50** addresses. Past that, use `all`: it is\none subscription and it already carries every token.\n\n### Frames you receive\n\nOn attach:\n\n```json\n{ \"type\": \"ready\", \"connectionId\": \"4f9c…\" }\n```\n\nAfter every accepted frame, your current subscription — the whole of it, so\nthere is nothing to reconcile (`null` once you unsubscribe):\n\n```json\n{ \"type\": \"subscription\", \"subscription\": { \"type\": \"tokens\", \"tokens\": [\"So1111…\"] } }\n```\n\nAnd, when a `subscribe` tore down an earlier subscription, one frame ahead\nof it saying what stopped:\n\n```json\n{ \"type\": \"replaced\", \"previous\": { \"type\": \"tokens\", \"tokens\": [\"EPjF…\"] } }\n```\n\nThe two always arrive in that order, so a client applying frames as they\nland never ends up holding the dead subscription. A rejected `subscribe`\nproduces neither — nothing was torn down.\n\nThen one frame per matching thesis:\n\n```json\n{ \"type\": \"thesis\", \"data\": { \"id\": \"…\", \"tokenAddress\": \"…\", \"tokenNetwork\": \"sol\", … } }\n```\n\n`data` is the **same object** `GET /v2/thesis/token/{tokenAddress}` returns\nin `items` — same field names (including `authorAvatarUrl` and\n`tokenImageUrl`), same `id`, same epoch-millisecond timestamps. It is not a\nsecond shape to code against. Read `data.tokenAddress` to route a frame back\nto its token.\n\n`authorAvatarUrl` points at our image host, at a path of the form\n`/a/<key>.webp`. A new picture gets a new URL. A picture added in the last\nfew minutes can show a neutral placeholder until it is ready.\n\n`tokenImageUrl` points at our image host, at a path of the form\n`/a/<key>.webp`. A new logo gets a new URL. A logo first seen in the last\nfew minutes can show a neutral placeholder until it is ready.\n\n### The pump feed\n\npump.fun callouts are on `wss://api.fomoscan.sh/v2/ws/pump`. Same\nhandshake, same plan rule, same subscribe messages and the same\nper-minute price as this path. The path picks the feed, so the messages\nare identical:\n\n```json\n{ \"type\": \"subscribe\", \"subscription\": { \"type\": \"all\" } }\n{ \"type\": \"subscribe\", \"subscription\": { \"type\": \"tokens\", \"tokens\": [\"So1111…\"] } }\n```\n\nTo receive theses and callouts at once, open one socket on each path. Each\nsocket is metered on its own.\n\nA subscription on `/v2/ws/pump` receives one frame per new callout:\n\n```json\n{ \"type\": \"pump_callout\", \"callout\": { \"id\": \"…\", \"wallet\": \"…\", \"coinMint\": \"…\", \"thesis\": \"…\", \"createdAt\": … } }\n```\n\n`callout` is the **same object** `GET /v2/pump/thesis` returns in `items` —\nsame field names, same `id`, same epoch-millisecond `createdAt`. Read\n`callout.coinMint` to route a frame back to its token.\n\nThere is no replay on this feed either. Take a snapshot from\n`GET /v2/pump/thesis` and reconcile on `callout.id`, the same `id` that\nendpoint returns. A callout is sent once per socket, and only while it is\nrecent. Anything older is on `GET /v2/pump/thesis`.\n\nA rejected frame is answered, does not close the socket, and does **not**\nchange what you are subscribed to — so a typo costs you nothing:\n\n```json\n{ \"type\": \"error\", \"error\": \"too many addresses: 91 named, 50 is the cap; subscribe to \\\"all\\\" to receive every token\" }\n```\n\n### What you have to know before you build on it\n\n- **There is no replay.** You hear what arrives after you subscribe,\n  nothing before it. Take a snapshot from the REST endpoint\n  (`GET /v2/thesis/token/{tokenAddress}`, or `GET /v2/pump/thesis` on the\n  pump socket) and reconcile on `id`, which is stable and is the same id\n  the REST endpoint returns. If the socket drops, fetch the newest page\n  from the REST endpoint to close the gap, then reattach and resubscribe.\n- **Subscriptions do not survive a reconnect.** A new socket starts empty.\n- **A thesis is sent once.** It is never re-sent on the same socket.\n- **The socket carries recent theses.** Anything outside that window is on\n  the REST endpoint instead.\n- **Frames are not ordered by `fomoCreatedAt`.** Sort client-side if order\n  matters.\n- **`null` means the value was not observed.** An absent `likeCount` is not\n  a zero.\n- **The pong is mandatory.** The server pings on a fixed interval and\n  closes with `1011` a socket it has not heard from for three ping\n  intervals. A pong or any frame you send counts. Browser and Node `ws` clients\n  answer pings automatically; a hand-rolled client must reply itself. A\n  socket killed mid-path by a proxy stays open and silent at both ends,\n  and the pong is the only thing that detects it.\n\nBefore initial billing completes, the server queues at most 32 frames or 64 KiB\nof application frames. Exceeding either limit sends an error frame with\n`initialization queue limit exceeded` and closes with `1009`. A single frame\nlarger than 64 KiB also closes with `1009`.\n\n### Close codes\n\n| code | meaning |\n|---|---|\n| `1001` | the server is going away; reconnect and resubscribe |\n| `1008` | the key is out of quota |\n| `1009` | a frame exceeds 64 KiB or the initialization queue exceeds its limits |\n| `1011` | no pong or frame from you for three ping intervals |\n| `1013` | frames are queueing faster than you read them |\n\n### Billing\n\nThis path is metered by the minute held open rather than by the call, from\nthe same credits as your REST calls. A minute starts when the socket opens,\nand the meter stops when it closes. See `GET /v2/me` for your remaining\nbalance.\n\nThe price is **per socket, not per token**: one address, fifty, or every\ntoken all read the same on the meter.\n\n**Price:** 20,000 CU per minute held open.","security":[{"b2bApiKey":[]}],"responses":{"101":{"description":"Switching Protocols — the socket is open."},"401":{"description":"Missing or invalid API key."},"403":{"description":"The key’s plan has no WebSocket (`WEBSOCKET_PLAN_REQUIRED`), or the key lacks the scope (`FORBIDDEN_SCOPE`)."},"404":{"description":"The request carried no WebSocket upgrade."}}}},"/v2/ws/pump":{"get":{"tags":["WebSocket"],"summary":"Live pump.fun callouts, every token or a token list (WebSocket)","description":"The pump.fun callout feed on its own socket. Everything on `GET /v2/ws`\napplies here: the handshake, the plan rule, one subscription per\nconnection, the frames, the close codes and the per-minute meter. The\nsection **The pump feed** there describes the `pump_callout` frame.\n\nThe subscribe messages are the same as on `GET /v2/ws`. The path picks\nthe feed:\n\n```json\n{ \"type\": \"subscribe\", \"subscription\": { \"type\": \"all\" } }\n{ \"type\": \"subscribe\", \"subscription\": { \"type\": \"tokens\", \"tokens\": [\"So1111…\"] } }\n```\n\nTheses are on `GET /v2/ws`.\n\nThere is no replay. Take a snapshot from `GET /v2/pump/thesis` and\nreconcile on `callout.id`.\n\nThis socket is metered by the minute held open, on its own and apart\nfrom any `/v2/ws` socket on the same key, from the same credits as your\nREST calls. See `GET /v2/me` for your remaining balance.\n\n**Price:** 20,000 CU per minute held open.","security":[{"b2bApiKey":[]}],"responses":{"101":{"description":"Switching Protocols — the socket is open."},"401":{"description":"Missing or invalid API key."},"403":{"description":"The key’s plan has no WebSocket (`WEBSOCKET_PLAN_REQUIRED`), or the key lacks the scope (`FORBIDDEN_SCOPE`)."},"404":{"description":"The request carried no WebSocket upgrade."}}}}},"components":{"securitySchemes":{"b2bApiKey":{"type":"http","scheme":"bearer","description":"B2B API key (`fsk_live_…` / `fsk_test_…`), issued by FomoScan. Also accepted via `X-Api-Key`."}},"schemas":{"ErrorBody":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Stable, lower-snake-case error code.","enum":["BAD_REQUEST","B2B_DISABLED","CONFLICT","FORBIDDEN","FORBIDDEN_SCOPE","FREE_TIER_DISABLED","INTERNAL_ERROR","NOT_FOUND","OVERLOADED","QUOTA_EXCEEDED","RATE_LIMITED","REVEAL_LIMIT_REACHED","SAMPLE_SET_ONLY","TIMEOUT","UNAUTHORIZED","VALIDATION_ERROR","WEBSOCKET_PLAN_REQUIRED"]},"message":{"type":"string"},"retryAfter":{"type":"integer","description":"Seconds; only on RATE_LIMITED."},"addUrl":{"type":"string","description":"Hint URL, present on some NOT_FOUND responses."}}}}},"def-0":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Stable, lower-snake-case error code.","enum":["BAD_REQUEST","B2B_DISABLED","CONFLICT","FORBIDDEN","FORBIDDEN_SCOPE","FREE_TIER_DISABLED","INTERNAL_ERROR","NOT_FOUND","OVERLOADED","QUOTA_EXCEEDED","RATE_LIMITED","REVEAL_LIMIT_REACHED","SAMPLE_SET_ONLY","TIMEOUT","UNAUTHORIZED","VALIDATION_ERROR","WEBSOCKET_PLAN_REQUIRED"]},"message":{"type":"string"},"retryAfter":{"type":"integer","description":"Seconds; only on RATE_LIMITED."},"addUrl":{"type":"string","description":"Hint URL, present on some NOT_FOUND responses."}}}},"title":"ErrorBody"}}}}