Stream real-time prediction market data over a single WebSocket connection.
Stream real-time, normalized prediction market data over WebSocket. One connection gives you cross-venue orderbooks, trades, and probability distributions from both Kalshi and Polymarket — no venue-specific code needed.Data is addressed by what, not where. You subscribe to dist:fomc-2026-04-29 or dist:btc-5m-2026-03-24-0830-et, not a venue-specific ticker. Both venues arrive on the same channel, tagged by venue field.Two feeds are available:
channels lists the channels that were actually subscribed. If any submitted channel was dropped, the response also includes a rejected array — only present when there is at least one rejection. Each entry has a channel and a reason:
reason
When it fires
unknown_event_key
The event_key is not currently served. Use Catalog to find valid keys; venue-native IDs (Kalshi market tickers, Polymarket condition IDs) are not event keys.
unknown_channel_type
The prefix is not one of dist, book, trade, snapshot.
missing_event_key
The channel string has no event_key after the type prefix.
dist, book, and trade are change-driven — messages emit only when the underlying state changes, so an idle channel is normal during quiet windows. For current state on connect, also subscribe to snapshot:{event_key}, which delivers a full state message every 60 seconds.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Oddpool API","colors":{"primary":"#16A34A","light":"#07C983","dark":"#15803D"},"logo":{"light":"https://mintcdn.com/oddpool/M2-rNsZR4KTl_Jes/logo/light.svg?fit=max\u0026auto=format\u0026n=M2-rNsZR4KTl_Jes\u0026q=85\u0026s=39c75cbfbf9380743460406b00f27e23","dark":"https://mintcdn.com/oddpool/M2-rNsZR4KTl_Jes/logo/dark.svg?fit=max\u0026auto=format\u0026n=M2-rNsZR4KTl_Jes\u0026q=85\u0026s=2859bfb3f8afb1b39a25601a68c2f336"},"favicon":"https://mintcdn.com/oddpool/M2-rNsZR4KTl_Jes/favicon.svg?fit=max\u0026auto=format\u0026n=M2-rNsZR4KTl_Jes\u0026q=85\u0026s=206b081a6dbcec58f31769adc9937000","navbar":{"links":[{"href":"mailto:avi@oddpool.com","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://oddpool.com/account"}},"footer":{"socials":{"x":"https://x.com/oddpool_alerts","linkedin":"https://www.linkedin.com/company/oddpool"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":true},"navigation":{"global":{"anchors":[{"anchor":"Dashboard","icon":"chart-line","href":"https://oddpool.com/account"},{"anchor":"Pricing","icon":"credit-card","href":"https://oddpool.com/pricing"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"oddpool","hasAudioNarration":false,"actualSubdomain":"oddpool","customDomains":["docs.oddpool.com"],"gitSource":{"type":"github","owner":"oddpool","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6a4dd29d62c97ec5869c73fe","collectionId":"795db22f-8eb6-4963-a8c7-36eacfb4fe8c","schemaVersion":"v3"},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6a4dd29d62c97ec5869c73fe:success","clientVersion":"0.0.4044","searchFilterCounts":[{"language":"default","tag":"Documentation","count":42},{"language":"default","tag":"Whale tracking","count":12},{"language":"default","tag":"Institutions","count":11},{"language":"default","tag":"Search","count":7},{"language":"default","tag":"WebSocket feeds","count":6},{"language":"default","tag":"Reference Data API","count":5},{"language":"default","tag":"Getting started","count":4},{"language":"default","tag":"Kalshi","count":4},{"language":"default","tag":"Polymarket","count":4},{"language":"default","tag":"Arbitrage","count":3}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"websocket/overview","slug":"/websocket/overview","pageMetadata":{"title":"WebSocket overview","description":"Stream real-time prediction market data over a single WebSocket connection.","href":"/websocket/overview"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Stream real-time prediction market data over a single WebSocket connection.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Stream real-time, normalized prediction market data over WebSocket. One connection gives you cross-venue orderbooks, trades, and probability distributions from both Kalshi and Polymarket — no venue-specific code needed.`}),`\n`,_jsxs(_components.p,{children:[`Data is addressed by `,_jsx(_components.strong,{children:`what`}),`, not where. You subscribe to `,_jsx(_components.code,{children:`dist:fomc-2026-04-29`}),` or `,_jsx(_components.code,{children:`dist:btc-5m-2026-03-24-0830-et`}),`, not a venue-specific ticker. Both venues arrive on the same channel, tagged by `,_jsx(_components.code,{children:`venue`}),` field.`]}),`\n`,_jsx(_components.p,{children:`Two feeds are available:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/websocket/macro-feed`,children:_jsx(_components.strong,{children:`Macro feed`})}),` — FOMC, CPI, NFP, GDP, unemployment, equities, commodities`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/websocket/crypto-feed`,children:_jsx(_components.strong,{children:`Crypto feed`})}),` — BTC and ETH prediction markets enriched with real-time Binance spot/futures data`]}),`\n`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`wss://feeds.oddpool.com/ws`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`2`,id:`authentication`,children:`Authentication`}),`\n`,_jsx(_components.p,{children:`Send an auth message with your API key after connecting. The server responds with your tier and limits.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`15`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`15`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Send`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"action\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"auth\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"api_key\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"oddpool_abc123...\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Response`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"auth\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ok\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"user_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`42`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"tier\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"pro\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"limits\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"max_events\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`10`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"max_connections\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`3`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"channels\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"dist\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"book\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"trade\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"snapshot\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`max_events: 0`}),` means `,_jsx(_components.strong,{children:`unlimited`}),` (Premium tier and above). Any positive number is the cap.`]}),`\n`,_jsx(Heading,{level:`2`,id:`subscribe-and-unsubscribe`,children:`Subscribe and unsubscribe`}),`\n`,_jsx(_components.p,{children:`Subscribe to channels by event. Events count as concurrent subscriptions — unsubscribing frees up slots.`}),`\n`,_jsx(Heading,{level:`3`,id:`channel-format`,children:`Channel format`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Format`}),_jsx(_components.th,{children:`Example`}),_jsx(_components.th,{children:`Scope`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`{type}:{event_key}`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`dist:fomc-2026-04-29`})}),_jsx(_components.td,{children:`All outcomes for that event`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`{type}:{event_key}:{outcome}`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`book:fomc-2026-04-29:hold`})}),_jsx(_components.td,{children:`Single outcome`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`example`,children:`Example`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`8`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Subscribe to multiple channels at once`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"action\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"subscribe\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"channels\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"dist:fomc-2026-04-29\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"book:fomc-2026-04-29:hold\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]}`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Response`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"subscribed\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"channels\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"dist:fomc-2026-04-29\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"book:fomc-2026-04-29:hold\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]}`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Unsubscribe`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"action\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"unsubscribe\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"channels\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"book:fomc-2026-04-29:hold\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]}`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`subscribe-response-shape`,children:`Subscribe response shape`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`channels`}),` lists the channels that were actually subscribed. If any submitted channel was dropped, the response also includes a `,_jsx(_components.code,{children:`rejected`}),` array — only present when there is at least one rejection. Each entry has a `,_jsx(_components.code,{children:`channel`}),` and a `,_jsx(_components.code,{children:`reason`}),`:`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:_jsx(_components.code,{children:`reason`})}),_jsx(_components.th,{children:`When it fires`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`unknown_event_key`})}),_jsxs(_components.td,{children:[`The `,_jsx(_components.code,{children:`event_key`}),` is not currently served. Use `,_jsx(_components.a,{href:`/websocket/catalog`,children:`Catalog`}),` to find valid keys; venue-native IDs (Kalshi market tickers, Polymarket condition IDs) are not event keys.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`unknown_channel_type`})}),_jsxs(_components.td,{children:[`The prefix is not one of `,_jsx(_components.code,{children:`dist`}),`, `,_jsx(_components.code,{children:`book`}),`, `,_jsx(_components.code,{children:`trade`}),`, `,_jsx(_components.code,{children:`snapshot`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`missing_event_key`})}),_jsxs(_components.td,{children:[`The channel string has no `,_jsx(_components.code,{children:`event_key`}),` after the type prefix.`]})]})]})]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`11`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`11`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Mixed batch`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"action\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"subscribe\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"channels\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"dist:fomc-2026-04-29\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"dist:not-a-real-event\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]}`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Response`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"subscribed\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"channels\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"dist:fomc-2026-04-29\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"rejected\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"channel\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"dist:not-a-real-event\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"reason\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"unknown_event_key\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"event_key\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"not-a-real-event\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`dist`}),`, `,_jsx(_components.code,{children:`book`}),`, and `,_jsx(_components.code,{children:`trade`}),` are change-driven — messages emit only when the underlying state changes, so an idle channel is normal during quiet windows. For current state on connect, also subscribe to `,_jsx(_components.code,{children:`snapshot:{event_key}`}),`, which delivers a full state message every 60 seconds.`]})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"WebSocket overview","description":"Stream real-time prediction market data over a single WebSocket connection.","href":"/websocket/overview"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Authentication","slug":"authentication","depth":2,"children":[]},{"title":"Subscribe and unsubscribe","slug":"subscribe-and-unsubscribe","depth":2,"children":[{"title":"Channel format","slug":"channel-format","depth":3,"children":[]},{"title":"Example","slug":"example","depth":3,"children":[]},{"title":"Subscribe response shape","slug":"subscribe-response-shape","depth":3,"children":[]}]}],"codeExamples":{}},"jsLinks":[],"subdomain":"oddpool","siteName":"Oddpool API","title":"WebSocket overview - Oddpool API","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-05-04T05:10:07.877Z","originalFileLocation":"websocket/overview.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Stream real-time prediction market data over a single WebSocket connection.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Oddpool API\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/oddpool/gvtVHEvmRA3-UL6z/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/oddpool/gvtVHEvmRA3-UL6z/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/oddpool/gvtVHEvmRA3-UL6z/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/oddpool/gvtVHEvmRA3-UL6z/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/oddpool/gvtVHEvmRA3-UL6z/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/oddpool/gvtVHEvmRA3-UL6z/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/oddpool/gvtVHEvmRA3-UL6z/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/oddpool/gvtVHEvmRA3-UL6z/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/oddpool/gvtVHEvmRA3-UL6z/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"WebSocket overview - Oddpool API\">\u003cmeta data-mint-head property=\"og:description\" content=\"Stream real-time prediction market data over a single WebSocket connection.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Oddpool API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.oddpool.com/websocket/overview\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://oddpool.mintlify.app/_mintlify/api/og/v2?division=WebSocket+feeds\u0026amp;title=WebSocket+overview\u0026amp;description=Stream+real-time+prediction+market+data+over+a+single+WebSocket+connection.\u0026amp;theme=70cc65a9d73e9bbb1b7c9299\u0026amp;signature=25d6f78181df77d5cac9dbe1a68a40672a97eaa32ee78549a30061b9542c6aa0\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"WebSocket overview - Oddpool API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Stream real-time prediction market data over a single WebSocket connection.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://oddpool.mintlify.app/_mintlify/api/og/v2?division=WebSocket+feeds\u0026amp;title=WebSocket+overview\u0026amp;description=Stream+real-time+prediction+market+data+over+a+single+WebSocket+connection.\u0026amp;theme=70cc65a9d73e9bbb1b7c9299\u0026amp;signature=25d6f78181df77d5cac9dbe1a68a40672a97eaa32ee78549a30061b9542c6aa0\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/oddpool/gvtVHEvmRA3-UL6z/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Oddpool API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#16A34A\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.oddpool.com/websocket/overview\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/websocket/overview.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.oddpool.com/#organization\",\"name\":\"Oddpool API\",\"url\":\"https://docs.oddpool.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/oddpool/M2-rNsZR4KTl_Jes/logo/light.svg?fit=max\u0026auto=format\u0026n=M2-rNsZR4KTl_Jes\u0026q=85\u0026s=39c75cbfbf9380743460406b00f27e23\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.oddpool.com#website\",\"name\":\"Oddpool API\",\"url\":\"https://docs.oddpool.com\",\"publisher\":{\"@id\":\"https://docs.oddpool.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.oddpool.com/websocket/overview#webpage\",\"url\":\"https://docs.oddpool.com/websocket/overview\",\"name\":\"WebSocket overview\",\"description\":\"Stream real-time prediction market data over a single WebSocket connection.\",\"dateModified\":\"2026-05-04T05:10:07.877Z\",\"isPartOf\":{\"@id\":\"https://docs.oddpool.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.oddpool.com/websocket/overview#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.oddpool.com/websocket/overview#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Oddpool API\",\"item\":\"https://docs.oddpool.com\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"WebSocket overview\",\"item\":\"https://docs.oddpool.com/websocket/overview\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.oddpool.com/websocket/overview#article\",\"headline\":\"WebSocket overview\",\"name\":\"WebSocket overview\",\"description\":\"Stream real-time prediction market data over a single WebSocket connection.\",\"url\":\"https://docs.oddpool.com/websocket/overview\",\"mainEntityOfPage\":{\"@id\":\"https://docs.oddpool.com/websocket/overview#webpage\"},\"dateModified\":\"2026-05-04T05:10:07.877Z\",\"publisher\":{\"@id\":\"https://docs.oddpool.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.oddpool.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Oddpool API\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Oddpool API","nav":{"global":{"anchors":[{"anchor":"Dashboard","icon":"chart-line","href":"https://oddpool.com/account"},{"anchor":"Pricing","icon":"credit-card","href":"https://oddpool.com/pricing"}]},"tabs":[{"tab":"Documentation","groups":[{"group":"Getting started","pages":[{"title":"Oddpool API","href":""},{"title":"Authentication","href":"/authentication"},{"title":"Rate limits","href":"/rate-limits"},{"title":"Error handling","description":"HTTP status codes and error response format.","href":"/errors"}]},{"group":"WebSocket feeds","pages":[{"title":"WebSocket overview","href":"/websocket/overview"},{"title":"Macro feed","description":"Cross-venue matched macro economic events from Kalshi and Polymarket.","href":"/websocket/macro-feed"},{"title":"Crypto feed","href":"/websocket/crypto-feed"},{"title":"Message reference","href":"/websocket/messages"},{"title":"Feed catalog","api":"GET https://api.oddpool.com/feeds/catalog","href":"/websocket/catalog"},{"title":"Limits and errors","href":"/websocket/limits"}]},{"group":"Whale tracking","pages":[{"title":"Whale tracking","href":"/whales/overview"},{"title":"List events","api":"GET https://api.oddpool.com/whales/user/events","href":"/whales/list-events"},{"title":"Add event","api":"POST https://api.oddpool.com/whales/user/events/by-ticker","href":"/whales/add-event"},{"title":"Update event","api":"PATCH https://api.oddpool.com/whales/user/events/{event_id}","href":"/whales/update-event"},{"title":"Remove event","api":"DELETE https://api.oddpool.com/whales/user/events/by-ticker/{exchange}/{event_ticker}","href":"/whales/remove-event"},{"title":"Get feed","api":"GET https://api.oddpool.com/whales/user/feed","href":"/whales/get-feed"},{"title":"Get stats","api":"GET https://api.oddpool.com/whales/user/stats","href":"/whales/get-stats"},{"title":"Event trades","api":"GET https://api.oddpool.com/whales/user/event/{event_id}","href":"/whales/event-trades"},{"title":"Event stats","api":"GET https://api.oddpool.com/whales/user/event/{event_id}/stats","href":"/whales/event-stats"},{"title":"List markets","api":"GET https://api.oddpool.com/whales/user/markets","href":"/whales/list-markets"},{"title":"Market stats","api":"GET https://api.oddpool.com/whales/user/market/{market_id}/stats","href":"/whales/market-stats"},{"title":"Market trades","api":"GET https://api.oddpool.com/whales/user/market/{market_id}/trades","href":"/whales/market-trades"}]},{"group":"Arbitrage","pages":[{"title":"Arbitrage","href":"/arbitrage/overview"},{"title":"Cross-venue arbitrage","api":"GET https://api.oddpool.com/arbitrage/current","href":"/arbitrage/current"},{"title":"Price spreads","api":"GET https://api.oddpool.com/arbitrage/current/difference","href":"/arbitrage/differences"}]},{"group":"Search","pages":[{"title":"Search","href":"/search/overview"},{"title":"Search series","api":"GET https://api.oddpool.com/search/series","href":"/search/series"},{"title":"Search markets","api":"GET https://api.oddpool.com/search/markets","href":"/search/search-markets"},{"title":"Search events","api":"GET https://api.oddpool.com/search/events","href":"/search/search-events"},{"title":"Recent markets","api":"GET https://api.oddpool.com/search/recent/markets","href":"/search/recent-markets"},{"title":"Recent events","api":"GET https://api.oddpool.com/search/recent/events","href":"/search/recent-events"},{"title":"Event markets","api":"GET https://api.oddpool.com/search/events/{event_id}/markets","href":"/search/event-markets"}]},{"group":"Historical bars","pages":[{"title":"Market OHLCV","api":"GET https://api.oddpool.com/markets/ohlcv","href":"/markets/ohlcv"},{"title":"Event OHLCV","api":"GET https://api.oddpool.com/events/{event_id}/ohlcv","href":"/events/ohlcv"}]},{"group":"Kalshi","pages":[{"title":"Kalshi historical data","sidebarTitle":"Overview","href":"/kalshi/overview"},{"title":"Historical orderbook","api":"GET https://api.oddpool.com/historical/kalshi/orderbook","href":"/kalshi/orderbook"},{"title":"Historical top of book","api":"GET https://api.oddpool.com/historical/kalshi/top-of-book","href":"/kalshi/top-of-book"},{"title":"Historical trades","api":"GET https://api.oddpool.com/historical/kalshi/trades","href":"/kalshi/trades"}]},{"group":"Polymarket","pages":[{"title":"Polymarket historical data","sidebarTitle":"Overview","href":"/polymarket/overview"},{"title":"Historical orderbook","api":"GET https://api.oddpool.com/historical/polymarket/orderbook","href":"/polymarket/orderbook"},{"title":"Historical top of book","api":"GET https://api.oddpool.com/historical/polymarket/top-of-book","href":"/polymarket/top-of-book"},{"title":"Historical trades","api":"GET https://api.oddpool.com/historical/polymarket/trades","href":"/polymarket/trades"}]}]},{"tab":"Institutions","pages":[{"title":"Institutions","href":"/institutions/reference-data/overview"}]}]},"basePath":"","title":"WebSocket overview - Oddpool API","buildId":"dpl_DeHjVRGfFnhYQwHnfC2pjeXXv8h9","deploymentId":"dpl_DeHjVRGfFnhYQwHnfC2pjeXXv8h9","dynamics":[],"chunks":[]}