The book websocket stream updates once every 250ms
Field
Type
Description
'l'
array
[Bids, Asks]
'a'
decimal string
Total amount in aggregation level.
'n'
integer
Number of orders in aggregation level.
'p'
decimal string
In bids array, this is highest price in aggregation level.
In asks array, this is lowest price in aggregation level.
's'
string
Symbol
't'
number
Timestamp in milliseconds
'li'
number
Last ID — sequence number for this symbol. Monotonically increasing; use it to order updates and detect gaps.
⌘I
{"docsConfig":{"theme":"luma","$schema":"https://mintlify.com/docs.json","name":"Pacifica","colors":{"primary":"#0EA5E9","light":"#38BDF8","dark":"#0369A1"},"logo":{"light":"https://mintcdn.com/pacifica-fi-docs-migrate-92/g3zlaiQhnLQgGHk6/logo/light.svg?fit=max\u0026auto=format\u0026n=g3zlaiQhnLQgGHk6\u0026q=85\u0026s=90adf738a8b2852101abdc8fff82d09b","dark":"https://mintcdn.com/pacifica-fi-docs-migrate-92/g3zlaiQhnLQgGHk6/logo/dark.svg?fit=max\u0026auto=format\u0026n=g3zlaiQhnLQgGHk6\u0026q=85\u0026s=344a6753fc16b97535fc70218fa53dc2","href":"/"},"favicon":"https://mintcdn.com/pacifica-fi-docs-migrate-92/g3zlaiQhnLQgGHk6/favicon.png?fit=max\u0026auto=format\u0026n=g3zlaiQhnLQgGHk6\u0026q=85\u0026s=9024abb6f1d267b6932b148286c08ee4","appearance":{"default":"dark"},"background":{"decoration":"gradient","color":{"light":"#FFFFFF","dark":"#060E1A"}},"navbar":{"links":[{"href":"https://github.com/pacifica-fi/mintlify-docs","type":"github"}]},"footer":{"socials":{"github":"https://github.com/pacifica-fi/mintlify-docs"}},"fonts":{"family":"Inter"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"pacifica-fi-docs-migrate-92","hasAudioNarration":false,"actualSubdomain":"pacifica-fi-docs-migrate-92","customDomains":["docs.pacifica.fi"],"gitSource":{"type":"github","owner":"pacifica-fi","repo":"mintlify-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6aed4df8adc8722d75ec4903","clientVersion":"0.0.4094","searchFilterCounts":[{"language":"default","tag":"API Reference","count":140},{"language":"default","tag":"API Documentation","count":140},{"language":"default","tag":"REST API","count":100},{"language":"default","tag":"Documentation","count":56},{"language":"default","tag":"Trading on Pacifica","count":42},{"language":"default","tag":"Websocket","count":23},{"language":"default","tag":"Account","count":20},{"language":"default","tag":"Trading\nSpecifications","count":20},{"language":"default","tag":"Subscriptions","count":17},{"language":"default","tag":"Order Types","count":15}]},"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":"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":"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":"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":"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":"editor-metadata","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},{"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":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"styles.css","content":"#content-area h1{font-size:2.25rem!important;line-height:1.25!important;font-weight:700!important;letter-spacing:-0.9px!important}#content-area h2{font-size:1.875rem!important;line-height:1.2!important;font-weight:600!important;letter-spacing:-0.375px!important}#content-area h3{font-size:1.5rem!important;line-height:1.33!important;font-weight:600!important;letter-spacing:-0.3px!important}#content-area h4{font-size:1.25rem!important;line-height:1.4!important;font-weight:600!important}.sidebar-title,.eyebrow{text-transform:uppercase!important;letter-spacing:0.3px!important}#navbar{height:4rem!important;display:flex!important;align-items:center!important}#navbar>div:last-child{flex:1 1 auto!important;min-width:0!important}a:has(>img.nav-logo){display:inline-flex!important;align-items:center!important;gap:12px!important}#navbar img.nav-logo,a:has(>img.nav-logo) img.nav-logo{height:32px!important;width:32px!important}a:has(>img.nav-logo)::after{content:\"Pacifica\";font-family:Inter, \"Inter Fallback\", system-ui, sans-serif;font-size:18px;font-weight:600;letter-spacing:-0.45px;line-height:1;color:#0B1220;-webkit-font-smoothing:antialiased}.dark a:has(>img.nav-logo)::after{color:#FFFFFF}div:has(>#search-bar-entry){width:16rem!important;flex:0 0 auto!important}#search-bar-entry{width:100%!important;justify-content:space-between!important;padding-left:0.875rem!important;padding-right:0.75rem!important}#search-bar-entry .truncate{display:block!important}#search-bar-entry>span{display:flex!important}#navbar a[href*=\"github.com\"] span{display:none!important}@media (min-width: 1024px){#content-side-layout{display:flex!important}}#sidebar-content{top:4rem!important;padding-top:2.5rem!important}#content-side-layout{top:4rem!important;padding-top:3.5rem!important}#content-area{padding-top:3.5rem!important}#sidebar-content button[aria-expanded] span{white-space:pre-line}.order-type-card [data-component-part=\"card-icon\"],.order-type-card [data-component-part=\"card-icon\"]>svg{width:2.5rem;height:2.5rem}"}],"page":{"pagePath":"api-documentation/api/websocket/subscriptions/orderbook","slug":"/api-documentation/api/websocket/subscriptions/orderbook","pageMetadata":{"title":"Orderbook","description":"Streams book data for given symbol at a set aggregation level as they update","href":"/api-documentation/api/websocket/subscriptions/orderbook"},"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: \"Streams book data for given symbol at a set aggregation level as they update\"\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`,p:`p`,pre:`pre`,span:`span`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Refer to `,_jsx(_components.a,{href:`/api-documentation/api/websocket`,children:`Websocket`}),` for establishing the websocket connection.`]}),`\n`,_jsx(Heading,{level:`3`,id:`params`,children:`Params`}),`\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:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"method\"`}),_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:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"params\"`}),_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:` \"source\"`}),_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:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"symbol\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"SOL\"`}),_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:` \"agg_level\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Aggregation level`})]}),`\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:[`where `,_jsx(_components.code,{children:`agg_level`}),` can be one of `,_jsx(_components.code,{children:`1, 2, 5, 10, 100, 1000`}),`.`]}),`\n`,_jsx(Heading,{level:`3`,id:`stream`,children:`Stream`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`31`,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:`31`,children:[_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:` \"channel\"`}),_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:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_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:` \"l\"`}),_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`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"a\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"37.86\"`}),_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:` \"n\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`4`}),_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:` \"p\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"157.47\"`})]}),`\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:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // ... other aggegated bid levels`})}),`\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`,_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:` \"a\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"12.7\"`}),_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:` \"n\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`2`}),_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:` \"p\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"157.49\"`})]}),`\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`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"a\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"44.45\"`}),_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:` \"n\"`}),_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:` \"p\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"157.5\"`})]}),`\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:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // ... other aggregated ask levels`})}),`\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`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"s\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"SOL\"`}),_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:` \"t\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1749051881187`}),_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:` \"li\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1559885104`})]}),`\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:[`The `,_jsx(_components.code,{children:`book`}),` websocket stream updates once every 250ms`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`'l'`})}),_jsx(_components.td,{children:`array`}),_jsx(_components.td,{children:`[Bids, Asks]`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`'a'`})}),_jsx(_components.td,{children:`decimal string`}),_jsx(_components.td,{children:`Total amount in aggregation level.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`'n'`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{children:`Number of orders in aggregation level.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`'p'`})}),_jsx(_components.td,{children:`decimal string`}),_jsx(_components.td,{children:_jsxs(`ul`,{children:[_jsx(`li`,{children:`In bids array, this is highest price in aggregation level.`}),_jsx(`li`,{children:`In asks array, this is lowest price in aggregation level.`})]})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`'s'`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Symbol`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`'t'`})}),_jsx(_components.td,{children:`number`}),_jsx(_components.td,{children:`Timestamp in milliseconds`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`'li'`})}),_jsx(_components.td,{children:`number`}),_jsxs(_components.td,{children:[_jsx(_components.a,{href:`/api-documentation/api/last-id`,children:`Last ID`}),` — sequence number for this symbol. Monotonically increasing; use it to order updates and detect gaps.`]})]})]})]})]})}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":"Orderbook","description":"Streams book data for given symbol at a set aggregation level as they update","href":"/api-documentation/api/websocket/subscriptions/orderbook"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Params","slug":"params","depth":3,"children":[]},{"title":"Stream","slug":"stream","depth":3,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"pacifica-fi-docs-migrate-92","siteName":"Pacifica","title":"Orderbook - Pacifica","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-06T03:48:13.033Z","originalFileLocation":"api-documentation/api/websocket/subscriptions/orderbook.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=\"dark\"}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=\"Streams book data for given symbol at a set aggregation level as they update\">\u003cmeta data-mint-head name=\"application-name\" content=\"Pacifica\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/pacifica-fi-docs-migrate-92/_hvnb__A1AWsweS4/_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/pacifica-fi-docs-migrate-92/_hvnb__A1AWsweS4/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/pacifica-fi-docs-migrate-92/_hvnb__A1AWsweS4/_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/pacifica-fi-docs-migrate-92/_hvnb__A1AWsweS4/_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/pacifica-fi-docs-migrate-92/_hvnb__A1AWsweS4/_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/pacifica-fi-docs-migrate-92/_hvnb__A1AWsweS4/_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/pacifica-fi-docs-migrate-92/_hvnb__A1AWsweS4/_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/pacifica-fi-docs-migrate-92/_hvnb__A1AWsweS4/_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/pacifica-fi-docs-migrate-92/_hvnb__A1AWsweS4/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Orderbook - Pacifica\">\u003cmeta data-mint-head property=\"og:description\" content=\"Streams book data for given symbol at a set aggregation level as they update\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Pacifica\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.pacifica.fi/api-documentation/api/websocket/subscriptions/orderbook\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://pacifica-fi-docs-migrate-92.mintlify.site/_mintlify/api/og/v2?division=Subscriptions\u0026amp;title=Orderbook\u0026amp;description=Streams+book+data+for+given+symbol+at+a+set+aggregation+level+as+they+update\u0026amp;theme=820cbd2d0d3e52726baebba0\u0026amp;signature=6c2820f68210322d1244482331c97c5b2454c2b658208d09fb76eb30fe71ceee\">\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=\"Orderbook - Pacifica\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Streams book data for given symbol at a set aggregation level as they update\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://pacifica-fi-docs-migrate-92.mintlify.site/_mintlify/api/og/v2?division=Subscriptions\u0026amp;title=Orderbook\u0026amp;description=Streams+book+data+for+given+symbol+at+a+set+aggregation+level+as+they+update\u0026amp;theme=820cbd2d0d3e52726baebba0\u0026amp;signature=6c2820f68210322d1244482331c97c5b2454c2b658208d09fb76eb30fe71ceee\">\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/pacifica-fi-docs-migrate-92/_hvnb__A1AWsweS4/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Pacifica\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0EA5E9\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.pacifica.fi/api-documentation/api/websocket/subscriptions/orderbook\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-documentation/api/websocket/subscriptions/orderbook.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.pacifica.fi/#organization\",\"name\":\"Pacifica\",\"url\":\"https://docs.pacifica.fi\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/pacifica-fi-docs-migrate-92/g3zlaiQhnLQgGHk6/logo/light.svg?fit=max\u0026auto=format\u0026n=g3zlaiQhnLQgGHk6\u0026q=85\u0026s=90adf738a8b2852101abdc8fff82d09b\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.pacifica.fi#website\",\"name\":\"Pacifica\",\"url\":\"https://docs.pacifica.fi\",\"publisher\":{\"@id\":\"https://docs.pacifica.fi/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.pacifica.fi/api-documentation/api/websocket/subscriptions/orderbook#webpage\",\"url\":\"https://docs.pacifica.fi/api-documentation/api/websocket/subscriptions/orderbook\",\"name\":\"Orderbook\",\"description\":\"Streams book data for given symbol at a set aggregation level as they update\",\"dateModified\":\"2026-11-06T03:48:13.033Z\",\"isPartOf\":{\"@id\":\"https://docs.pacifica.fi#website\"},\"breadcrumb\":{\"@id\":\"https://docs.pacifica.fi/api-documentation/api/websocket/subscriptions/orderbook#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.pacifica.fi/api-documentation/api/websocket/subscriptions/orderbook#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"API Documentation\",\"item\":\"https://docs.pacifica.fi/api-documentation/api\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Websocket\",\"item\":\"https://docs.pacifica.fi/api-documentation/api/websocket\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Subscriptions\",\"item\":\"https://docs.pacifica.fi/api-documentation/api/websocket/subscriptions\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Orderbook\",\"item\":\"https://docs.pacifica.fi/api-documentation/api/websocket/subscriptions/orderbook\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.pacifica.fi/api-documentation/api/websocket/subscriptions/orderbook#article\",\"headline\":\"Orderbook\",\"name\":\"Orderbook\",\"description\":\"Streams book data for given symbol at a set aggregation level as they update\",\"url\":\"https://docs.pacifica.fi/api-documentation/api/websocket/subscriptions/orderbook\",\"mainEntityOfPage\":{\"@id\":\"https://docs.pacifica.fi/api-documentation/api/websocket/subscriptions/orderbook#webpage\"},\"dateModified\":\"2026-11-06T03:48:13.033Z\",\"publisher\":{\"@id\":\"https://docs.pacifica.fi/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.pacifica.fi#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Pacifica\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Pacifica","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/pacifica/readme"}]},{"tab":"API Reference","groups":[{"group":"API Documentation","pages":[{"title":"Overview","href":"/api-documentation/api"},{"group":"REST API","root":{"title":"REST API","href":"/api-documentation/api/rest-api"},"pages":[{"group":"Markets","root":{"title":"Markets","href":"/api-documentation/api/rest-api/markets"},"pages":[{"title":"Get Market Info","href":"/api-documentation/api/rest-api/markets/get-market-info"},{"title":"Get Prices","href":"/api-documentation/api/rest-api/markets/get-prices"},{"title":"Get Candle Data","href":"/api-documentation/api/rest-api/markets/get-candle-data"},{"title":"Get Mark Price Candle Data","href":"/api-documentation/api/rest-api/markets/get-mark-price-candle-data"},{"title":"Get Orderbook","href":"/api-documentation/api/rest-api/markets/get-orderbook"},{"title":"Get Recent Trades","href":"/api-documentation/api/rest-api/markets/get-recent-trades"},{"title":"Get Historical Funding","href":"/api-documentation/api/rest-api/markets/get-historical-funding"},{"title":"Get Fee Levels","href":"/api-documentation/api/rest-api/markets/get-fee-levels"},{"title":"Get Loan Pool","href":"/api-documentation/api/rest-api/markets/get-loan-pool"}]},{"group":"Account","root":{"title":"Account","href":"/api-documentation/api/rest-api/account"},"pages":[{"title":"Get Account Info","href":"/api-documentation/api/rest-api/account/get-account-info"},{"title":"Get Account Settings","href":"/api-documentation/api/rest-api/account/get-account-settings"},{"title":"Update Account Settings","href":"/api-documentation/api/rest-api/account/update-account-settings"},{"title":"Update Leverage","href":"/api-documentation/api/rest-api/account/update-leverage"},{"title":"Update Margin Mode","href":"/api-documentation/api/rest-api/account/update-margin-mode"},{"title":"Get Positions","href":"/api-documentation/api/rest-api/account/get-positions"},{"title":"Get Trade History","href":"/api-documentation/api/rest-api/account/get-trade-history"},{"title":"Get Funding History","href":"/api-documentation/api/rest-api/account/get-funding-history"},{"title":"Get Account Equity History","href":"/api-documentation/api/rest-api/account/get-account-equity-history"},{"title":"Get Account Balance History","href":"/api-documentation/api/rest-api/account/get-account-balance-history"},{"title":"Request Withdrawal","href":"/api-documentation/api/rest-api/account/request-withdrawal"},{"title":"Get Account Loan Info","href":"/api-documentation/api/rest-api/account/get-account-loan-info"},{"title":"Add Isolated Margin","href":"/api-documentation/api/rest-api/account/add-isolated-margin"},{"title":"Update Spot Settings","href":"/api-documentation/api/rest-api/account/update-spot-settings"},{"title":"Toggle Auto-Lending","href":"/api-documentation/api/rest-api/account/toggle-auto-lending"},{"title":"Get Spot Balance History","href":"/api-documentation/api/rest-api/account/get-spot-balance-history"},{"title":"Withdraw Spot Asset","href":"/api-documentation/api/rest-api/account/withdraw-spot-asset"},{"title":"Get Pending Spot Withdrawals","href":"/api-documentation/api/rest-api/account/get-pending-spot-withdrawals"},{"title":"Get Spot Deposit History","href":"/api-documentation/api/rest-api/account/get-spot-deposit-history"},{"title":"Get Spot Withdrawal History","href":"/api-documentation/api/rest-api/account/get-spot-withdrawal-history"}]},{"group":"Two-Factor Authentication","root":{"title":"Two-Factor Authentication","href":"/api-documentation/api/rest-api/two-factor"},"pages":[{"title":"Get Two-Factor Status","href":"/api-documentation/api/rest-api/two-factor/get-two-factor-status"},{"title":"Begin TOTP Enrollment","href":"/api-documentation/api/rest-api/two-factor/begin-totp-enrollment"},{"title":"Finish TOTP Enrollment","href":"/api-documentation/api/rest-api/two-factor/finish-totp-enrollment"},{"title":"Begin WebAuthn Registration","href":"/api-documentation/api/rest-api/two-factor/begin-webauthn-registration"},{"title":"Finish WebAuthn Registration","href":"/api-documentation/api/rest-api/two-factor/finish-webauthn-registration"},{"title":"Begin WebAuthn Authentication","href":"/api-documentation/api/rest-api/two-factor/begin-webauthn-authentication"},{"title":"Disable Two-Factor Authentication","href":"/api-documentation/api/rest-api/two-factor/disable-two-factor"},{"title":"Remove Factor","href":"/api-documentation/api/rest-api/two-factor/remove-factor"},{"title":"Rename Factor","href":"/api-documentation/api/rest-api/two-factor/rename-factor"},{"title":"Regenerate Recovery Keys","href":"/api-documentation/api/rest-api/two-factor/regenerate-recovery-keys"}]},{"group":"Notifications","root":{"title":"Notifications","href":"/api-documentation/api/rest-api/notifications"},"pages":[{"title":"Register Expo Device","href":"/api-documentation/api/rest-api/notifications/register-expo-device"},{"title":"Unregister Expo Device","href":"/api-documentation/api/rest-api/notifications/unregister-expo-device"},{"title":"Get Web Push Config","href":"/api-documentation/api/rest-api/notifications/get-web-push-config"},{"title":"Register Web Push Subscription","href":"/api-documentation/api/rest-api/notifications/register-web-push-subscription"},{"title":"Get Web Push Subscription Status","href":"/api-documentation/api/rest-api/notifications/get-web-push-subscription-status"},{"title":"Unregister Web Push Subscription","href":"/api-documentation/api/rest-api/notifications/unregister-web-push-subscription"},{"title":"List Notification Preferences","href":"/api-documentation/api/rest-api/notifications/list-notification-preferences"},{"title":"Set Notification Preference","href":"/api-documentation/api/rest-api/notifications/set-notification-preference"},{"title":"Set Notification Master Preference","href":"/api-documentation/api/rest-api/notifications/set-notification-master-preference"},{"title":"Send Test Notification","href":"/api-documentation/api/rest-api/notifications/send-test-notification"},{"title":"Get Notification History","href":"/api-documentation/api/rest-api/notifications/get-notification-history"},{"title":"Mark Notifications Seen","href":"/api-documentation/api/rest-api/notifications/mark-notifications-seen"}]},{"group":"Vaults","root":{"title":"Vaults","href":"/api-documentation/api/rest-api/vaults"},"pages":[{"title":"Create Vault","href":"/api-documentation/api/rest-api/vaults/create-vault"},{"title":"Claim Vault Referral Code","href":"/api-documentation/api/rest-api/vaults/claim-vault-referral-code"},{"title":"Deposit to Vault","href":"/api-documentation/api/rest-api/vaults/deposit-to-vault"},{"title":"Claim Vault Manager","href":"/api-documentation/api/rest-api/vaults/claim-vault-manager"},{"title":"Withdraw From Vault","href":"/api-documentation/api/rest-api/vaults/withdraw-from-vault"},{"title":"Update Vault Deposit Cap","href":"/api-documentation/api/rest-api/vaults/update-vault-deposit-cap"},{"title":"Add Vault Whitelist","href":"/api-documentation/api/rest-api/vaults/add-vault-whitelist"},{"title":"Remove Vault Whitelist","href":"/api-documentation/api/rest-api/vaults/remove-vault-whitelist"},{"title":"Add Vault Blacklist","href":"/api-documentation/api/rest-api/vaults/add-vault-blacklist"},{"title":"Remove Vault Blacklist","href":"/api-documentation/api/rest-api/vaults/remove-vault-blacklist"},{"title":"Add Vault Max Leverage","href":"/api-documentation/api/rest-api/vaults/add-vault-max-leverage"},{"title":"Remove Vault Max Leverage","href":"/api-documentation/api/rest-api/vaults/remove-vault-max-leverage"},{"title":"List Vaults","href":"/api-documentation/api/rest-api/vaults/list-vaults"}]},{"group":"Subaccounts","root":{"title":"Subaccounts","href":"/api-documentation/api/rest-api/subaccounts"},"pages":[{"title":"Create Subaccount","href":"/api-documentation/api/rest-api/subaccounts/create-subaccount"},{"title":"List Subaccounts","href":"/api-documentation/api/rest-api/subaccounts/list-subaccounts"},{"title":"Subaccount Fund Transfer","href":"/api-documentation/api/rest-api/subaccounts/subaccount-fund-transfer"},{"title":"Subaccount Spot Transfer","href":"/api-documentation/api/rest-api/subaccounts/subaccount-spot-transfer"}]},{"group":"Spot","root":{"title":"Spot","href":"/api-documentation/api/rest-api/spot"},"pages":[{"title":"Get Spot Assets","href":"/api-documentation/api/rest-api/spot/get-spot-assets"},{"title":"Get Bridge Info","href":"/api-documentation/api/rest-api/spot/get-bridge-info"},{"title":"Get Bridge Parameters","href":"/api-documentation/api/rest-api/spot/get-bridge-parameters"}]},{"group":"Orders","root":{"title":"Orders","href":"/api-documentation/api/rest-api/orders"},"pages":[{"title":"Create Market Order","href":"/api-documentation/api/rest-api/orders/create-market-order"},{"title":"Create Limit Order","href":"/api-documentation/api/rest-api/orders/create-limit-order"},{"title":"Create Stop Order","href":"/api-documentation/api/rest-api/orders/create-stop-order"},{"title":"Create Position TP/SL","href":"/api-documentation/api/rest-api/orders/create-position-tp-sl"},{"title":"Cancel Order","href":"/api-documentation/api/rest-api/orders/cancel-order"},{"title":"Cancel All Orders","href":"/api-documentation/api/rest-api/orders/cancel-all-orders"},{"title":"Cancel Stop Order","href":"/api-documentation/api/rest-api/orders/cancel-stop-order"},{"title":"Edit Order","href":"/api-documentation/api/rest-api/orders/edit-order"},{"title":"Batch Order","href":"/api-documentation/api/rest-api/orders/batch-order"},{"title":"Get Open Orders","href":"/api-documentation/api/rest-api/orders/get-open-orders"},{"title":"Get Order History","href":"/api-documentation/api/rest-api/orders/get-order-history"},{"title":"Get Order History by ID","href":"/api-documentation/api/rest-api/orders/get-order-history-by-id"},{"title":"Get Order History Records","href":"/api-documentation/api/rest-api/orders/get-order-history-records"}]},{"group":"Order Strategies","root":{"title":"Order Strategies","href":"/api-documentation/api/rest-api/order-strategies"},"pages":[{"title":"Create Order Strategy","href":"/api-documentation/api/rest-api/order-strategies/create-order-strategy"},{"title":"Edit Order Strategy","href":"/api-documentation/api/rest-api/order-strategies/edit-order-strategy"},{"title":"Cancel Order Strategy","href":"/api-documentation/api/rest-api/order-strategies/cancel-order-strategy"},{"title":"Get Open Order Strategies","href":"/api-documentation/api/rest-api/order-strategies/get-open-order-strategies"},{"title":"Get Order Strategy History","href":"/api-documentation/api/rest-api/order-strategies/get-order-strategy-history"},{"title":"Get Order Strategy","href":"/api-documentation/api/rest-api/order-strategies/get-order-strategy"},{"title":"Get Order Strategy Timeline","href":"/api-documentation/api/rest-api/order-strategies/get-order-strategy-timeline"},{"title":"Strategy Parameters","href":"/api-documentation/api/rest-api/order-strategies/strategy-parameters"}]},{"group":"TWAP","root":{"title":"TWAP","href":"/api-documentation/api/rest-api/twap"},"pages":[{"title":"Create TWAP Order","href":"/api-documentation/api/rest-api/twap/create-twap-order"},{"title":"Cancel TWAP Order","href":"/api-documentation/api/rest-api/twap/cancel-twap-order"},{"title":"Get Open TWAP Orders","href":"/api-documentation/api/rest-api/twap/get-open-twap-orders"},{"title":"Get TWAP Order History","href":"/api-documentation/api/rest-api/twap/get-twap-order-history"},{"title":"Get TWAP Order History by ID","href":"/api-documentation/api/rest-api/twap/get-twap-order-history-by-id"},{"title":"Get TWAP Records","href":"/api-documentation/api/rest-api/twap/get-twap-records"},{"title":"Get TWAP Record History","href":"/api-documentation/api/rest-api/twap/get-twap-record-history"}]},{"group":"Print","root":{"title":"Print","href":"/api-documentation/api/rest-api/print"},"pages":[{"title":"Create Print Order","href":"/api-documentation/api/rest-api/print/create-print-order"}]}]},{"group":"Websocket","root":{"title":"Websocket","href":"/api-documentation/api/websocket"},"pages":[{"group":"Subscriptions","root":{"title":"Subscriptions","href":"/api-documentation/api/websocket/subscriptions"},"pages":[{"title":"Prices","description":"Streams all symbols' price information on Pacifica as they update","href":"/api-documentation/api/websocket/subscriptions/prices"},{"title":"Orderbook","href":"/api-documentation/api/websocket/subscriptions/orderbook"},{"title":"Best Bid Offer (BBO)","description":"Real-time updates of the best bid and ask prices and amounts for a specific symbol. Updates are sent whenever the top of book changes.","href":"/api-documentation/api/websocket/subscriptions/best-bid-offer-bbo"},{"title":"Trades","href":"/api-documentation/api/websocket/subscriptions/trades"},{"title":"Candle","href":"/api-documentation/api/websocket/subscriptions/candle"},{"title":"Mark Price Candle","href":"/api-documentation/api/websocket/subscriptions/mark-price-candle"},{"title":"Account Margin","href":"/api-documentation/api/websocket/subscriptions/account-margin"},{"title":"Account Leverage","href":"/api-documentation/api/websocket/subscriptions/account-leverage"},{"title":"Account Info","href":"/api-documentation/api/websocket/subscriptions/account-info"},{"title":"Account Positions","href":"/api-documentation/api/websocket/subscriptions/account-positions"},{"title":"Account Order Updates","href":"/api-documentation/api/websocket/subscriptions/account-order-updates"},{"title":"Account Order Strategy Updates","href":"/api-documentation/api/websocket/subscriptions/account-order-strategy-updates"},{"title":"Account TWAP Orders","href":"/api-documentation/api/websocket/subscriptions/account-twap-orders"},{"title":"Account TWAP Order Updates","href":"/api-documentation/api/websocket/subscriptions/account-twap-order-updates"},{"title":"Account Trades","href":"/api-documentation/api/websocket/subscriptions/account-trades"},{"title":"Account Transfers","href":"/api-documentation/api/websocket/subscriptions/account-transfers"},{"title":"Account Liquidations","href":"/api-documentation/api/websocket/subscriptions/account-liquidations"}]},{"group":"Trading operations","root":{"title":"Trading Operations","href":"/api-documentation/api/websocket/trading-operations"},"pages":[{"title":"Create Market Order","href":"/api-documentation/api/websocket/trading-operations/create-market-order"},{"title":"Create Limit Order","href":"/api-documentation/api/websocket/trading-operations/create-limit-order"},{"title":"Edit Order","href":"/api-documentation/api/websocket/trading-operations/edit-order"},{"title":"Batch Order","href":"/api-documentation/api/websocket/trading-operations/batch-order"},{"title":"Cancel Order","href":"/api-documentation/api/websocket/trading-operations/cancel-order"},{"title":"Cancel All Orders","href":"/api-documentation/api/websocket/trading-operations/cancel-all-orders"}]}]},{"group":"MCP","root":{"title":"MCP Server","href":"/api-documentation/api/mcp"},"pages":[{"title":"Configuration","href":"/api-documentation/api/mcp/configuration"},{"title":"Client Setup","href":"/api-documentation/api/mcp/clients"},{"title":"Tools","href":"/api-documentation/api/mcp/tools"}]},{"group":"Signing","root":{"title":"Signing","href":"/api-documentation/api/signing"},"pages":[{"title":"Implementation","href":"/api-documentation/api/signing/implementation"},{"title":"Operation Types","href":"/api-documentation/api/signing/operation-types"},{"title":"Error Handling","href":"/api-documentation/api/signing/error-handling"},{"title":"Hardware Wallet","href":"/api-documentation/api/signing/hardware-wallet"},{"title":"API Agent Keys","href":"/api-documentation/api/signing/api-agent-keys"}]},{"group":"Rate limits","root":{"title":"Rate Limits","href":"/api-documentation/api/rate-limits"},"pages":[{"title":"API Config Keys","href":"/api-documentation/api/rate-limits/api-config-keys"}]},{"title":"Market Symbols","href":"/api-documentation/api/market-symbols"},{"title":"Tick and Lot Size","href":"/api-documentation/api/tick-and-lot-size"},{"title":"Last ID","href":"/api-documentation/api/last-id"},{"title":"Error Codes","href":"/api-documentation/api/error-codes"},{"group":"API FAQ","root":{"title":"API FAQ","href":"/api-documentation/api/api-faq"},"pages":[{"title":"403 CloudFront","href":"/api-documentation/api/api-faq/403-cloudfront"},{"title":"Delayed account\\_positions","href":"/api-documentation/api/api-faq/delayed-account_positions"}]},{"title":"Changelog","href":"/api-documentation/changelog"}]}]},{"tab":"Support","pages":[{"title":"Support","href":"/support/trade-outcomes"}]}]},"basePath":"","title":"Orderbook - Pacifica","buildId":"dpl_42LwxxU1kGN114H4XzwGYXa9ZDah","deploymentId":"dpl_42LwxxU1kGN114H4XzwGYXa9ZDah","dynamics":[],"chunks":[]}