Server-Sent Events: every fill at the chain head, one event per block, about a second after the block.
GET https://codex-api.nomos.trade/v1/stream/fills
Every fill at the chain head, one fills event per block (empty blocks included), about a second after the block: the live trade tape.
Head blocks are not final. A reorged block can come again, so deduplicate fills by (tx, logIndex) and link blocks by parentHash. Some block numbers never arrive (a fetch that failed); the finalized routes have every fill.
Only the V2 exchanges are on the tape (no V1, no combos). Fee, role and counterparty are on Market Trades. A heartbeat comment arrives every 15 s; at most 2 streams per key.
The Event
event
Show data
integer
The block.
string
Its hash.
string
Its parent’s hash: a mismatch with the block you hold means a reorg.
integer
Block time, unix seconds.
integer
When the block was first announced, unix ms.
integer
When Codex published it, unix ms.
string
Internal; ignore it.
object[]
Show fill
string
Transaction hash.
integer
The log’s index in the block.
string
The order’s owner.
string
The order: one order can fill across several logs.
string
BUY or SELL, from the owner’s side.
string
The token, decimal.
number
USD a share, rounded to 6 decimals.
number
Shares.
number
Paid or received, before the fee.
string | null
Its market, when known.
integer | null
Its outcome.
integer
The wallet’s first Polymarket activity, unix seconds. Absent when unknown.
object | null
The wallet’s Polymarket profile { name, pseudonym, image }; null when it has none. Absent when not known in time.
import json, os, requestswith requests.get( "https://codex-api.nomos.trade/v1/stream/fills", headers={"Authorization": f"Bearer {os.environ['CODEX_KEY']}"}, stream=True, timeout=(10, 60),) as r: r.raise_for_status() for line in r.iter_lines(decode_unicode=True): if line.startswith("data: "): block = json.loads(line[6:]) for f in block["fills"]: print(block["block"], f["side"], f["size"], f["price"], f["conditionId"])
// Node 18+const res = await fetch("https://codex-api.nomos.trade/v1/stream/fills", { headers: { Authorization: `Bearer ${process.env.CODEX_KEY}` },});const decoder = new TextDecoder();let buffer = "";for await (const chunk of res.body) { buffer += decoder.decode(chunk, { stream: true }); let end; while ((end = buffer.indexOf("\n\n")) >= 0) { const raw = buffer.slice(0, end); buffer = buffer.slice(end + 2); const data = raw.match(/^data: (.*)$/m)?.[1]; if (data) for (const f of JSON.parse(data).fills) console.log(f.side, f.size, f.price, f.conditionId); }}
Market Trades: the finalized fills, with fee, role and counterparty.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Codex API","description":"Polymarket holders, positions, PnL, trades, leaderboards and live fills, rebuilt from Polygon by Nomos.","colors":{"primary":"#2A6FD0","light":"#6EA6F2","dark":"#1D5BB3"},"logo":{"light":"https://mintcdn.com/nomos-6d162bba/shW8tfZ_EQ5tNlZT/logo/light.svg?fit=max\u0026auto=format\u0026n=shW8tfZ_EQ5tNlZT\u0026q=85\u0026s=4f51144410d6bfa9bd09370d9e23bd63","dark":"https://mintcdn.com/nomos-6d162bba/shW8tfZ_EQ5tNlZT/logo/dark.svg?fit=max\u0026auto=format\u0026n=shW8tfZ_EQ5tNlZT\u0026q=85\u0026s=53ccd0c83132f013750bb4b26c6f68ee","href":"https://nomos.trade"},"favicon":"https://mintcdn.com/nomos-6d162bba/08BPj0583LiUh69A/favicon.svg?fit=max\u0026auto=format\u0026n=08BPj0583LiUh69A\u0026q=85\u0026s=19bd160358796841b6fa3afd68bc50f1","api":{"openapi":"openapi.json","playground":{"display":"interactive","proxy":true},"examples":{"languages":["bash","python","javascript"],"prefill":true}},"appearance":{"default":"system"},"fonts":{"family":"Geist"},"contextual":{"options":["copy","view","claude","chatgpt","cursor"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"nomos-6d162bba","hasAudioNarration":false,"actualSubdomain":"nomos-6d162bba","customDomains":["dash-docs.nomos.trade"],"gitSource":{"type":"github","owner":"nomos-trade","repo":"codex-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"},"WEB_MCP":{"status":"DISABLED"},"NARRATION":{"status":"DISABLED"}},"buildId":"6ac4193cc9bde3152b668459","clientVersion":"0.0.4347","searchFilterCounts":[{"language":"default","tag":"API Reference","count":32},{"language":"default","tag":"Guides","count":13},{"language":"default","tag":"Wallets","count":12},{"language":"default","tag":"Markets","count":10},{"language":"default","tag":"Concepts","count":5},{"language":"default","tag":"Getting Started","count":4},{"language":"default","tag":"Recipes","count":4},{"language":"default","tag":"Fills","count":3},{"language":"default","tag":"Streams","count":2},{"language":"default","tag":"Leaderboard","count":2}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","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":"rbac-expansion","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":"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":"site-roles","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":"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":"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":"turbopuffer-dual-write","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":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":true},"customCss":[]}
{"page":{"pagePath":"streams/live-tape","slug":"/streams/live-tape","pageMetadata":{"title":"Live Tape","description":"Server-Sent Events: every fill at the chain head, one event per block, about a second after the block.","icon":"bolt","href":"/streams/live-tape"},"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: \"Server-Sent Events: every fill at the chain head, one event per block, about a second after the block.\"\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`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,CodeGroup,Expandable,Heading,ResponseField,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(CodeBlock,{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:`GET https://codex-api.nomos.trade/v1/stream/fills`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.p,{children:[`Every fill at the chain head, one `,_jsx(_components.code,{children:`fills`}),` event per block (empty blocks included), about a second after the block: the live trade tape.`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Head blocks are not final. A reorged block can come again, so deduplicate fills by `,_jsx(_components.code,{children:`(tx, logIndex)`}),` and link blocks by `,_jsx(_components.code,{children:`parentHash`}),`. Some block numbers never arrive (a fetch that failed); the finalized routes have every fill.`]})}),`\n`,_jsxs(_components.p,{children:[`Only the V2 exchanges are on the tape (no V1, no combos). Fee, role and counterparty are on `,_jsx(_components.a,{href:`/api-reference/markets/market-trades`,children:`Market Trades`}),`. A heartbeat comment arrives every 15 s; at most 2 streams per key.`]}),`\n`,_jsx(Heading,{level:`2`,id:`the-event`,children:`The Event`}),`\n`,_jsx(ResponseField,{name:`fills`,type:`event`,id:`param-fills`,children:_jsxs(Expandable,{title:`data`,children:[_jsx(ResponseField,{name:`block`,type:`integer`,id:`param-block`,children:`The block.`}),_jsx(ResponseField,{name:`hash`,type:`string`,id:`param-hash`,children:`Its hash.`}),_jsx(ResponseField,{name:`parentHash`,type:`string`,id:`param-parent-hash`,children:`Its parent’s hash: a mismatch with the block you hold means a reorg.`}),_jsx(ResponseField,{name:`ts`,type:`integer`,id:`param-ts`,children:`Block time, unix seconds.`}),_jsx(ResponseField,{name:`seenAt`,type:`integer`,id:`param-seen-at`,children:`When the block was first announced, unix ms.`}),_jsx(ResponseField,{name:`publishedAt`,type:`integer`,id:`param-published-at`,children:`When Codex published it, unix ms.`}),_jsx(ResponseField,{name:`source`,type:`string`,id:`param-source`,children:`Internal; ignore it.`}),_jsx(ResponseField,{name:`fills`,type:`object[]`,id:`param-fills-1`,children:_jsxs(Expandable,{title:`fill`,children:[_jsx(ResponseField,{name:`tx`,type:`string`,id:`param-tx`,children:`Transaction hash.`}),_jsx(ResponseField,{name:`logIndex`,type:`integer`,id:`param-log-index`,children:`The log’s index in the block.`}),_jsx(ResponseField,{name:`wallet`,type:`string`,id:`param-wallet`,children:`The order’s owner.`}),_jsx(ResponseField,{name:`orderHash`,type:`string`,id:`param-order-hash`,children:`The order: one order can fill across several logs.`}),_jsx(ResponseField,{name:`side`,type:`string`,id:`param-side`,children:`BUY or SELL, from the owner’s side.`}),_jsx(ResponseField,{name:`asset`,type:`string`,id:`param-asset`,children:`The token, decimal.`}),_jsx(ResponseField,{name:`price`,type:`number`,id:`param-price`,children:`USD a share, rounded to 6 decimals.`}),_jsx(ResponseField,{name:`size`,type:`number`,id:`param-size`,children:`Shares.`}),_jsx(ResponseField,{name:`usd`,type:`number`,id:`param-usd`,children:`Paid or received, before the fee.`}),_jsx(ResponseField,{name:`conditionId`,type:`string | null`,id:`param-condition-id`,children:`Its market, when known.`}),_jsx(ResponseField,{name:`outcomeIndex`,type:`integer | null`,id:`param-outcome-index`,children:`Its outcome.`}),_jsx(ResponseField,{name:`firstSeen`,type:`integer`,id:`param-first-seen`,children:`The wallet’s first Polymarket activity, unix seconds. Absent when unknown.`}),_jsxs(ResponseField,{name:`profile`,type:`object | null`,id:`param-profile`,children:[`The wallet’s Polymarket profile `,_jsx(_components.code,{children:`{ name, pseudonym, image }`}),`; null when it has none. Absent when not known in time.`]})]})})]})}),`\n`,_jsx(Heading,{level:`2`,id:`the-stream`,children:`The Stream`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,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:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`retry: 2000`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`event: fills`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`data: {\"block\":94812431,\"hash\":\"0x6c1f…\",\"parentHash\":\"0x09ab…\",\"ts\":1790862168,\"seenAt\":1790862168912,\"publishedAt\":1790862169140,\"source\":\"…\",\"fills\":[{\"tx\":\"0x3f6a…7e9a\",\"logIndex\":88,\"wallet\":\"0x56687bf447db6ffa42ffe2204a05edaa20f55839\",\"orderHash\":\"0x7e30…\",\"side\":\"BUY\",\"asset\":\"85254962656314962064648492774584063365849461315753521676016468731069088672\",\"price\":0.241,\"size\":500,\"usd\":120.5,\"conditionId\":\"0x8db33416a2d1ebde7438c80129e898f89a5deb3852ca64b37c4bf46513204409\",\"outcomeIndex\":0,\"firstSeen\":1783987320,\"profile\":{\"name\":\"alpha-desk\",\"pseudonym\":\"Brisk-Harbor\",\"image\":null}}]}`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`2`,id:`read-it`,children:`Read It`}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`2`,language:`shellscript`,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:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` -N `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://codex-api.nomos.trade/v1/stream/fills\"`}),_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:` -H `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Authorization: Bearer $CODEX_KEY\"`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Python`,numberOfLines:`14`,language:`python`,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:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`14`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` json, os, requests`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`with`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests.get(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://codex-api.nomos.trade/v1/stream/fills\"`}),_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:` headers={`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Authorization\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: f`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Bearer {os.environ['CODEX_KEY']}\"`}),_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:` stream=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`True`}),_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:` timeout=(10, 60),`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`as`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` r:`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` r.raise_for_status()`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` for`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` line `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`in`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` r.iter_lines(decode_unicode=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`True`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`):`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` line.startswith(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"data: \"`}),_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:` block = json.loads(line[6:])`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` for`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` f `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`in`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` block[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"fills\"`}),_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:` print(block[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"block\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`], f[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"side\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`], f[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"size\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`], f[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"price\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`], f[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"conditionId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`])`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`JavaScript`,numberOfLines:`16`,language:`javascript`,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:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`16`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Node 18+`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`const`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` res = `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` fetch(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://codex-api.nomos.trade/v1/stream/fills\"`}),_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:` headers: { Authorization: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`Bearer ${process.env.CODEX_KEY}`\"}),_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`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`const`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` decoder = `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`new`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` TextDecoder();`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`let`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` buffer = `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`for`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`const`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` chunk `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`of`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` res.body) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` buffer += decoder.decode(chunk, { stream: `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` });`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` let`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` end;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` while`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ((end = buffer.indexOf(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\\\\n\\\\n\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)) >= 0) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` const`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` raw = buffer.slice(0, end);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` buffer = buffer.slice(end + 2);`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` const`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` data = raw.match(/^data: (.*)$/m)?.[1];`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (data) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`for`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`const`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` f `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`of`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` JSON.parse(data).fills) console.log(f.side, f.size, f.price, f.conditionId);`})]}),`\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(Heading,{level:`2`,id:`see-also`,children:`See Also`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/recipes/big-trades`,children:`Big-trade alerts`}),`: a complete listener with deduplication.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/api-reference/markets/market-trades`,children:`Market Trades`}),`: the finalized fills, with fee, role and counterparty.`]}),`\n`]})]})}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":"Live Tape","description":"Server-Sent Events: every fill at the chain head, one event per block, about a second after the block.","icon":"bolt","href":"/streams/live-tape"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"The Event","slug":"the-event","depth":2,"children":[]},{"title":"The Stream","slug":"the-stream","depth":2,"children":[]},{"title":"Read It","slug":"read-it","depth":2,"children":[]},{"title":"See Also","slug":"see-also","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"nomos-6d162bba","siteName":"Codex API","title":"Live Tape - Codex API","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-02T06:14:26.341Z","originalFileLocation":"streams/live-tape.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=\"Server-Sent Events: every fill at the chain head, one event per block, about a second after the block.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Codex 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/nomos-6d162bba/aco6TRFbLGz-FbAz/_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/nomos-6d162bba/aco6TRFbLGz-FbAz/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/nomos-6d162bba/aco6TRFbLGz-FbAz/_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/nomos-6d162bba/aco6TRFbLGz-FbAz/_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/nomos-6d162bba/aco6TRFbLGz-FbAz/_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/nomos-6d162bba/aco6TRFbLGz-FbAz/_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/nomos-6d162bba/aco6TRFbLGz-FbAz/_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/nomos-6d162bba/aco6TRFbLGz-FbAz/_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/nomos-6d162bba/aco6TRFbLGz-FbAz/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Live Tape - Codex API\">\u003cmeta data-mint-head property=\"og:description\" content=\"Server-Sent Events: every fill at the chain head, one event per block, about a second after the block.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Codex API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://dash-docs.nomos.trade/streams/live-tape\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://nomos-6d162bba.mintlify.site/_mintlify/api/og/v2?division=Streams\u0026amp;title=Live+Tape\u0026amp;description=Server-Sent+Events%3A+every+fill+at+the+chain+head%2C+one+event+per+block%2C+about+a+second+after+the+block.\u0026amp;theme=11e0c6cac70093af1c59a5c3\u0026amp;signature=b2d5050d01ae2e394ee3f34c817f0d7c3461cd3899944d445928b9baf0c36860\">\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=\"Live Tape - Codex API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Server-Sent Events: every fill at the chain head, one event per block, about a second after the block.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://nomos-6d162bba.mintlify.site/_mintlify/api/og/v2?division=Streams\u0026amp;title=Live+Tape\u0026amp;description=Server-Sent+Events%3A+every+fill+at+the+chain+head%2C+one+event+per+block%2C+about+a+second+after+the+block.\u0026amp;theme=11e0c6cac70093af1c59a5c3\u0026amp;signature=b2d5050d01ae2e394ee3f34c817f0d7c3461cd3899944d445928b9baf0c36860\">\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/nomos-6d162bba/aco6TRFbLGz-FbAz/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Codex API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#2A6FD0\">\u003clink data-mint-head rel=\"canonical\" href=\"https://dash-docs.nomos.trade/streams/live-tape\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/streams/live-tape.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://dash-docs.nomos.trade/#organization\",\"name\":\"Codex API\",\"url\":\"https://dash-docs.nomos.trade\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/nomos-6d162bba/shW8tfZ_EQ5tNlZT/logo/light.svg?fit=max\u0026auto=format\u0026n=shW8tfZ_EQ5tNlZT\u0026q=85\u0026s=4f51144410d6bfa9bd09370d9e23bd63\"}},{\"@type\":\"WebSite\",\"@id\":\"https://dash-docs.nomos.trade#website\",\"name\":\"Codex API\",\"url\":\"https://dash-docs.nomos.trade\",\"publisher\":{\"@id\":\"https://dash-docs.nomos.trade/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://dash-docs.nomos.trade/streams/live-tape#webpage\",\"url\":\"https://dash-docs.nomos.trade/streams/live-tape\",\"name\":\"Live Tape\",\"description\":\"Server-Sent Events: every fill at the chain head, one event per block, about a second after the block.\",\"dateModified\":\"2026-10-02T06:14:26.341Z\",\"isPartOf\":{\"@id\":\"https://dash-docs.nomos.trade#website\"},\"breadcrumb\":{\"@id\":\"https://dash-docs.nomos.trade/streams/live-tape#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://dash-docs.nomos.trade/streams/live-tape#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Streams\",\"item\":\"https://dash-docs.nomos.trade/streams/market-changes\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Live Tape\",\"item\":\"https://dash-docs.nomos.trade/streams/live-tape\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://dash-docs.nomos.trade/streams/live-tape#article\",\"headline\":\"Live Tape\",\"name\":\"Live Tape\",\"description\":\"Server-Sent Events: every fill at the chain head, one event per block, about a second after the block.\",\"url\":\"https://dash-docs.nomos.trade/streams/live-tape\",\"mainEntityOfPage\":{\"@id\":\"https://dash-docs.nomos.trade/streams/live-tape#webpage\"},\"dateModified\":\"2026-10-02T06:14:26.341Z\",\"publisher\":{\"@id\":\"https://dash-docs.nomos.trade/#organization\"},\"isPartOf\":{\"@id\":\"https://dash-docs.nomos.trade#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Codex API\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Codex API\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/streams/live-tape.md","siteName":"Codex API","nav":{"global":null,"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":""}]},{"tab":"API Reference","groups":[{"group":"Markets","pages":[{"title":"Markets","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/markets","href":"/api-reference/markets/markets"},{"title":"Market","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/markets/{conditionId}","href":"/api-reference/markets/market"},{"title":"Holders","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/markets/{conditionId}/holders","href":"/api-reference/markets/holders"},{"title":"Holder Count","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/markets/{conditionId}/holder-count","href":"/api-reference/markets/holder-count"},{"title":"Top Traders","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/markets/{conditionId}/top-traders","href":"/api-reference/markets/top-traders"},{"title":"Holder Lines","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/markets/{conditionId}/holder-lines","href":"/api-reference/markets/holder-lines"},{"title":"Traders","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/markets/{conditionId}/traders","href":"/api-reference/markets/traders"},{"title":"Trade Counts","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/markets/{conditionId}/trade-counts","href":"/api-reference/markets/trade-counts"},{"title":"Market Trades","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/markets/{conditionId}/trades","href":"/api-reference/markets/market-trades"},{"title":"Market Activity","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/markets/{conditionId}/activity","href":"/api-reference/markets/market-activity"}]},{"group":"Wallets","pages":[{"title":"Summary","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/wallets/{wallet}/summary","href":"/api-reference/wallets/summary"},{"title":"Positions","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/wallets/{wallet}/positions","href":"/api-reference/wallets/positions"},{"title":"Closed Positions","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/wallets/{wallet}/exits","href":"/api-reference/wallets/closed-positions"},{"title":"Wallet Trades","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/wallets/{wallet}/trades","href":"/api-reference/wallets/wallet-trades"},{"title":"Wallet Activity","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/wallets/{wallet}/activity","href":"/api-reference/wallets/wallet-activity"},{"title":"Wallet Stats","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/wallets/{wallet}/stats","href":"/api-reference/wallets/wallet-stats"},{"title":"Wallet Categories","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/wallets/{wallet}/categories","href":"/api-reference/wallets/wallet-categories"},{"title":"PnL Series","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/wallets/{wallet}/series","href":"/api-reference/wallets/pnl-series"},{"title":"Daily PnL","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/wallets/{wallet}/daily","href":"/api-reference/wallets/daily-pnl"},{"title":"First Seen","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/wallets/first-seen","href":"/api-reference/wallets/first-seen"},{"title":"Profiles","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/wallets/profiles","href":"/api-reference/wallets/profiles"},{"title":"Wallet Tags","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/wallets/tags","href":"/api-reference/wallets/wallet-tags"}]},{"group":"Leaderboard","pages":[{"title":"Board","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/leaderboard","href":"/api-reference/leaderboard/board"},{"title":"Wallets on the Board","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/leaderboard/wallets","href":"/api-reference/leaderboard/wallets-on-the-board"}]},{"group":"Events","pages":[{"title":"Event Heat","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/events/heat","href":"/api-reference/events/event-heat"}]},{"group":"Fills","pages":[{"title":"Fills by Market","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/fills","href":"/api-reference/fills/fills-by-market"},{"title":"All Fills","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/fills/all","href":"/api-reference/fills/all-fills"},{"title":"Fills State","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/fills/state","href":"/api-reference/fills/fills-state"}]},{"group":"Crypto Strikes","pages":[{"title":"Strike Round","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/strikes","href":"/api-reference/crypto-strikes/strike-round"}]},{"group":"Streams","pages":[{"title":"Market Changes","description":"Server-Sent Events: the markets whose positions changed in each finalized batch, and crypto strike updates.","icon":"tower-broadcast","href":"/streams/market-changes"},{"title":"Live Tape","icon":"bolt","href":"/streams/live-tape"}]},{"group":"Health","pages":[{"title":"Health","description":"Whether Codex is keeping up with the chain: 200 when within 100 blocks of the finalized head and committed in the last minute, 503 with the same body when not.","deprecated":null,"version":null,"openapi":"/openapi.json get /healthz","href":"/api-reference/health/health"}]}]}]},"basePath":"","title":"Live Tape - Codex API","deploymentId":"dpl_6UE2cqB47X6P7P3F2hD3UphW6ijc","buildId":"dpl_6UE2cqB47X6P7P3F2hD3UphW6ijc","dynamics":[],"chunks":[]}