Calculates the mark-to-market value and initial/maintenance margin for a given subaccount, with per-position and per-collateral breakdowns, computed from live feed data at request time. Margins use the subaccount’s manager’s params. Set is_delayed_liquidation to get them under the subaccount’s delayed-liquidation override instead; the request is rejected for a subaccount without one. has_delayed_liquidation reports whether the subaccount has one. A maintenance margin below zero means the subaccount is flagged for liquidation.
true returns margins under the subaccount's delayed-liquidation override. Rejected for a subaccount without one.
Response
Success
Result of public/margin_watch: the margin state a liquidation watcher needs, under the subaccount's manager's params, or its delayed-liquidation override when the request asks for it.
Unix seconds at which a subaccount with a delayed-liquidation override was first seen below its manager's maintenance margin. Its grace period before liquidation counts from here. Null otherwise.
{"docsConfig":{"theme":"sequoia","$schema":"https://mintlify.com/docs.json","name":"Derive API","colors":{"primary":"#F63E58","light":"#F8657A","dark":"#F10B2C"},"logo":{"light":"https://mintcdn.com/derive-a0490cef/Bt06Ji3mw21_R7pR/logo/derive.png?fit=max\u0026auto=format\u0026n=Bt06Ji3mw21_R7pR\u0026q=85\u0026s=f6216ec72bc35bec084a22d0032062c7","dark":"https://mintcdn.com/derive-a0490cef/Bt06Ji3mw21_R7pR/logo/derive.png?fit=max\u0026auto=format\u0026n=Bt06Ji3mw21_R7pR\u0026q=85\u0026s=f6216ec72bc35bec084a22d0032062c7"},"favicon":"https://mintcdn.com/derive-a0490cef/BhszcT-bQHpTuFnc/favicon.png?fit=max\u0026auto=format\u0026n=BhszcT-bQHpTuFnc\u0026q=85\u0026s=954fe2ecc60f0919aecd71b09abd2371","background":{"color":{"dark":"#000000"}},"fonts":{"heading":{"family":"GT Standard","weight":650,"source":"fonts/GTStandard-Medium.woff2","format":"woff2"},"body":{"family":"GT Standard","weight":400,"source":"fonts/GTStandard-Regular.woff2","format":"woff2"}},"contextual":{"options":["copy","view","claude","chatgpt","grok","devin","cursor","download-pdf","mcp","add-mcp"],"display":"header"},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"derive-a0490cef","hasAudioNarration":false,"actualSubdomain":"derive-a0490cef","customDomains":["docs.derive.xyz"],"gitSource":{"type":"github","owner":"derivexyz","repo":"orderbook","deployBranch":"v3","contentDirectory":"docs/api","isPrivate":true,"mountPath":"","label":""},"chroma":{"collectionId":"2dc616ab-17e2-499a-a02f-1c602ab10d25","liveDeploymentHistoryId":"6aeb66f5f336619b5f520e84","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6aeb66f5f336619b5f520e84"},"feedback":{"agentFeedback":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6aee3c9b20ab8e4ffa061416","clientVersion":"0.0.4076","searchFilterCounts":[{"language":"default","tag":"API Reference","count":153},{"language":"default","tag":"HTTP \u0026 WS Methods","count":134},{"language":"default","tag":"Guides","count":30},{"language":"default","tag":"Orderbook","count":18},{"language":"default","tag":"Mechanism","count":17},{"language":"default","tag":"Market Data","count":16},{"language":"default","tag":"RFQ","count":16},{"language":"default","tag":"WS Subscriptions","count":15},{"language":"default","tag":"Channels","count":15},{"language":"default","tag":"Subaccounts","count":11}],"searchSettings":{"showContentSnippets":true,"maxResults":6}},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true,"deflection":{"enabled":true,"email":"support@derive.xyz"}},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"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":"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":"style.css","content":".frame{background-color:transparent!important}.frame>.absolute{display:none!important}.frame{border-radius:0.333rem!important}.frame>.relative{border-radius:0.25rem!important}@font-face{font-family:'GT Standard Mono';src:url('/fonts/GTStandardMono-Regular.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}.derive-accent{color:#f63e58}.derive-mono{font-family:'GT Standard Mono', ui-monospace, 'SF Mono', Menlo, monospace}.derive-eyebrow{font-size:0.8125rem;font-weight:600;letter-spacing:0.14em;text-transform:uppercase}.derive-h1{font-size:clamp(2.25rem, 5.5vw, 3.75rem);line-height:1.04;letter-spacing:-0.025em;font-weight:650}.derive-hero::before{content:'';position:absolute;inset:-20% 0 auto 0;height:60%;background:radial-gradient(50% 60% at 50% 0%, rgba(246, 62, 88, 0.1), transparent 72%);pointer-events:none;z-index:0}.dark .derive-hero::before{background:radial-gradient(50% 60% at 50% 0%, rgba(246, 62, 88, 0.18), transparent 72%)}.derive-btn{display:inline-flex;align-items:center;gap:0.5rem;border-radius:0.5rem;padding:0.6875rem 1.25rem;font-weight:550;font-size:0.9375rem;line-height:1;text-decoration:none;transition:background-color 0.15s ease,\n border-color 0.15s ease,\n transform 0.15s ease}.derive-btn:hover{transform:translateY(-1px)}.derive-btn-primary{background:#f63e58;color:#ffffff}.derive-btn-primary:hover{background:#f10b2c}.derive-btn-secondary{border:1px solid rgba(0, 0, 0, 0.14);color:inherit}.dark .derive-btn-secondary{border-color:rgba(255, 255, 255, 0.16)}.derive-btn-secondary:hover{border-color:#f63e58}.derive-endpoints{width:fit-content;max-width:100%;overflow:hidden;border:1px solid rgba(0, 0, 0, 0.1);border-radius:0.5rem;font-size:0.8125rem}.derive-endpoints-network{padding:0.4375rem 0.875rem;background:rgba(0, 0, 0, 0.035);border-bottom:1px solid rgba(0, 0, 0, 0.08);font-size:0.75rem;font-weight:600}.derive-endpoints-rows+.derive-endpoints-network{border-top:1px solid rgba(0, 0, 0, 0.08)}.derive-endpoints-rows{display:grid;grid-template-columns:2.5rem auto;align-items:baseline;gap:0.375rem 0.75rem;padding:0.625rem 0.875rem}.derive-endpoints-protocol{font-size:0.6875rem;font-weight:600;letter-spacing:0.06em;color:#6b7280}.derive-endpoints .derive-mono{overflow-wrap:anywhere}.derive-endpoints-url{position:relative;padding:0;border:0;background:none;color:inherit;font-size:inherit;text-align:left;cursor:pointer;transition:color 0.15s ease}.derive-endpoints-url:hover{color:#f63e58}.derive-endpoints-url[data-copied]{color:transparent}.derive-endpoints-url[data-copied]::after{content:'Copied';position:absolute;top:0;left:0;color:#f63e58}.derive-pixel{position:relative}.derive-pixel>span{opacity:0;animation:derive-pixel-fallback 0.5s ease 2s forwards}.derive-pixel[data-pixel]>span{animation:none;transition:opacity 0.5s ease}.derive-pixel[data-pixel=\"done\"]>span{opacity:1}.derive-pixel-canvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;transition:opacity 0.5s ease}.derive-pixel[data-pixel=\"done\"] .derive-pixel-canvas{opacity:0}@keyframes derive-pixel-fallback{to{opacity:1}}@media (prefers-reduced-motion: reduce){.derive-pixel>span{opacity:1;animation:none}}.dark .derive-endpoints{border-color:rgba(255, 255, 255, 0.12);background:rgba(255, 255, 255, 0.02)}.dark .derive-endpoints-network{background:rgba(255, 255, 255, 0.05);border-color:rgba(255, 255, 255, 0.08)}.dark .derive-endpoints-protocol{color:#9ca3af}.derive-fit-table table{width:max-content;min-width:0}.derive-fit-table table th,.derive-fit-table table td,.derive-fit-table table code{min-width:0;white-space:nowrap}.derive-code{filter:drop-shadow(0 24px 70px rgba(246, 62, 88, 0.18))}.derive-code pre{margin:0}.derive-code .code-group{margin-top:1rem}.derive-code [data-component-part=\"code-block-root\"]{height:27.5rem;transition:none}.derive-feature-icon{display:inline-flex;align-items:center;justify-content:center;width:2.25rem;height:2.25rem;border-radius:0.5rem;background:rgba(246, 62, 88, 0.1);color:#f63e58}.derive-persona{display:flex;flex-direction:column;height:100%;border:1px solid rgba(0, 0, 0, 0.1);border-radius:0.875rem;padding:1.5rem;text-decoration:none;color:inherit;transition:border-color 0.15s ease,\n transform 0.15s ease,\n box-shadow 0.15s ease}.dark .derive-persona{border-color:rgba(255, 255, 255, 0.1)}.derive-persona:hover{border-color:#f63e58;transform:translateY(-2px);box-shadow:0 22px 55px -32px rgba(246, 62, 88, 0.55)}.derive-persona-cta{margin-top:auto;padding-top:1rem;color:#f63e58;font-weight:550;font-size:0.875rem}.derive-sdk{display:flex;flex:none;width:9.5rem;align-items:center;justify-content:flex-start;gap:0.5rem;border:1px solid rgba(0, 0, 0, 0.1);border-radius:0.625rem;padding:0.5rem 0.75rem;text-decoration:none;color:inherit;transition:border-color 0.15s ease,\n transform 0.15s ease,\n box-shadow 0.15s ease}.dark .derive-sdk{border-color:rgba(255, 255, 255, 0.1)}a.derive-sdk:hover{border-color:#f63e58;transform:translateY(-2px);box-shadow:0 22px 55px -32px rgba(246, 62, 88, 0.55)}.derive-flow{--derive-flow-bg: oklch(100% 0 0);--derive-flow-fg: oklch(14.5% 0 0);--derive-flow-card: oklch(100% 0 0);--derive-flow-popover: oklch(100% 0 0);--derive-flow-secondary: oklch(97% 0 0);--derive-flow-accent: oklch(97% 0 0);--derive-flow-muted: oklch(55.6% 0 0);--derive-flow-border: oklch(92.2% 0 0);--derive-flow-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);--derive-flow-funds: oklch(69.913% 0.15878 159);--derive-flow-call: oklch(62.3% 0.214 259.815);--derive-flow-signal: oklch(76.9% 0.188 70.08);color:var(--derive-flow-fg)}.dark .derive-flow{--derive-flow-bg: oklch(14.5% 0 0);--derive-flow-fg: oklch(98.5% 0 0);--derive-flow-card: oklch(20.5% 0 0);--derive-flow-popover: oklch(20.5% 0 0);--derive-flow-secondary: oklch(26.9% 0 0);--derive-flow-accent: oklch(26.9% 0 0);--derive-flow-muted: oklch(70.8% 0 0);--derive-flow-border: oklch(100% 0 0 / 0.1);--derive-flow-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);--derive-flow-funds: oklch(83.745% 0.1914 158.67)}.derive-flow-hit:hover{background:var(--derive-flow-accent)!important}.derive-flow-dash{animation:derive-flow-dash 1.2s linear infinite}@keyframes derive-flow-dash{to{stroke-dashoffset:-24}}@media (prefers-reduced-motion: reduce){.derive-flow-dash{animation:none}}"}],"page":{"pagePath":"api-reference/liquidations/publicmargin_watch","slug":"/api-reference/liquidations/publicmargin_watch","pageMetadata":{"title":"public/margin_watch","description":"Calculates the mark-to-market value and initial/maintenance margin for a given subaccount, with per-position and per-collateral breakdowns, computed from live feed data at request time. Margins use the subaccount's manager's params. Set is_delayed_liquidation to get them under the subaccount's delayed-liquidation override instead; the request is rejected for a subaccount without one. has_delayed_liquidation reports whether the subaccount has one. A maintenance margin below zero means the subaccount is flagged for liquidation.","deprecated":null,"version":null,"openapi":"/openapi.json post /public/margin_watch","href":"/api-reference/liquidations/publicmargin_watch","autogeneratedByOpenApi":true},"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: \"Calculates the mark-to-market value and initial/maintenance margin for a given subaccount, with per-position and per-collateral breakdowns, computed from live feed data at request time. Margins use the subaccount’s manager’s params. Set is_delayed_liquidation to get them under the subaccount’s delayed-liquidation override instead; the request is rejected for a subaccount without one. has_delayed_liquidation reports whether the subaccount has one. A maintenance margin below zero means the subaccount is flagged for liquidation.\"\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}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"public/margin_watch","description":"Calculates the mark-to-market value and initial/maintenance margin for a given subaccount, with per-position and per-collateral breakdowns, computed from live feed data at request time. Margins use the subaccount's manager's params. Set is_delayed_liquidation to get them under the subaccount's delayed-liquidation override instead; the request is rejected for a subaccount without one. has_delayed_liquidation reports whether the subaccount has one. A maintenance margin below zero means the subaccount is flagged for liquidation.","deprecated":null,"version":null,"openapi":"/openapi.json post /public/margin_watch","href":"/api-reference/liquidations/publicmargin_watch","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["Liquidations"],"summary":"public/margin_watch","operationId":"public_margin_watch","responses":{"200":"d5cedd0d-2b9d-4e25-ae12-2192b09ffad8","default":"f042ccd2-b668-4656-9b4a-addd6b1a3d79"},"description":"Calculates the mark-to-market value and initial/maintenance margin for a given subaccount, with per-position and per-collateral breakdowns, computed from live feed data at request time. Margins use the subaccount's manager's params. Set is_delayed_liquidation to get them under the subaccount's delayed-liquidation override instead; the request is rejected for a subaccount without one. has_delayed_liquidation reports whether the subaccount has one. A maintenance margin below zero means the subaccount is flagged for liquidation.","x-rate-limit-class":"non_matching","requestBody":"f46bac49-07fb-475e-a511-90baaefc17e3","method":"post","type":"path","servers":["e7522bc3-d136-4ad3-89e2-010066dbe028","d9f128e9-d64e-4de8-bff0-18fd81207b2f"],"security":[],"path":"/public/margin_watch","baseUrlOptions":["https://api.derive.xyz/v3","https://testnet.api.derive.xyz/v3"],"title":"public/margin_watch","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["subaccount_id"],"properties":{"subaccount_id":{"type":"integer","format":"uint64","minimum":0,"isRequired":true,"uniqueKey":"subaccount_id","typeLabel":"integer\u003cuint64>"},"is_delayed_liquidation":{"description":"`true` returns margins under the subaccount's delayed-liquidation override. Rejected for a subaccount without one.","default":false,"type":"boolean","uniqueKey":"is_delayed_liquidation","typeLabel":"boolean"}},"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"subaccount_id":1,"is_delayed_liquidation":false}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"d5cedd0d-2b9d-4e25-ae12-2192b09ffad8":{"description":"Success","content":{"application/json":{"schema":{"description":"Result of `public/margin_watch`: the margin state a liquidation watcher needs, under the subaccount's manager's params, or its delayed-liquidation override when the request asks for it.","type":"object","required":["collaterals","currency","has_delayed_liquidation","initial_margin","is_delayed_liquidation","maintenance_margin","margin_type","positions","risk_universe_id","subaccount_id","subaccount_value","valuation_timestamp"],"properties":{"collaterals":{"type":"array","items":{"type":"object","required":["amount","amount_step","asset_name","asset_type","average_price","average_price_excl_fees","creation_timestamp","cumulative_interest","currency","delta","delta_currency","initial_margin","maintenance_margin","mark_price","mark_value","open_orders_margin","pending_interest","realized_pnl","realized_pnl_excl_fees","total_fees","unrealized_pnl","unrealized_pnl_excl_fees"],"properties":{"amount":{"type":"string","isRequired":true,"uniqueKey":"collaterals.items.[INDEX].amount","typeLabel":"string"},"amount_step":{"type":"string","isRequired":true,"uniqueKey":"collaterals.items.[INDEX].amount_step","typeLabel":"string"},"asset_name":{"type":"string","isRequired":true,"uniqueKey":"collaterals.items.[INDEX].asset_name","typeLabel":"string"},"asset_type":{"type":"string","isRequired":true,"uniqueKey":"collaterals.items.[INDEX].asset_type","typeLabel":"string"},"average_price":{"type":"string","isRequired":true,"uniqueKey":"collaterals.items.[INDEX].average_price","typeLabel":"string"},"average_price_excl_fees":{"type":"string","isRequired":true,"uniqueKey":"collaterals.items.[INDEX].average_price_excl_fees","typeLabel":"string"},"creation_timestamp":{"type":"integer","format":"int64","isRequired":true,"uniqueKey":"collaterals.items.[INDEX].creation_timestamp","typeLabel":"integer\u003cint64>"},"cumulative_interest":{"type":"string","isRequired":true,"uniqueKey":"collaterals.items.[INDEX].cumulative_interest","typeLabel":"string"},"currency":{"type":"string","isRequired":true,"uniqueKey":"collaterals.items.[INDEX].currency","typeLabel":"string"},"delta":{"type":"string","isRequired":true,"uniqueKey":"collaterals.items.[INDEX].delta","typeLabel":"string"},"delta_currency":{"type":"string","isRequired":true,"uniqueKey":"collaterals.items.[INDEX].delta_currency","typeLabel":"string"},"initial_margin":{"type":"string","isRequired":true,"uniqueKey":"collaterals.items.[INDEX].initial_margin","typeLabel":"string"},"maintenance_margin":{"type":"string","isRequired":true,"uniqueKey":"collaterals.items.[INDEX].maintenance_margin","typeLabel":"string"},"mark_price":{"type":"string","isRequired":true,"uniqueKey":"collaterals.items.[INDEX].mark_price","typeLabel":"string"},"mark_value":{"type":"string","isRequired":true,"uniqueKey":"collaterals.items.[INDEX].mark_value","typeLabel":"string"},"open_orders_margin":{"type":"string","isRequired":true,"uniqueKey":"collaterals.items.[INDEX].open_orders_margin","typeLabel":"string"},"pending_interest":{"type":"string","isRequired":true,"uniqueKey":"collaterals.items.[INDEX].pending_interest","typeLabel":"string"},"realized_pnl":{"type":"string","isRequired":true,"uniqueKey":"collaterals.items.[INDEX].realized_pnl","typeLabel":"string"},"realized_pnl_excl_fees":{"type":"string","isRequired":true,"uniqueKey":"collaterals.items.[INDEX].realized_pnl_excl_fees","typeLabel":"string"},"total_fees":{"type":"string","isRequired":true,"uniqueKey":"collaterals.items.[INDEX].total_fees","typeLabel":"string"},"unrealized_pnl":{"type":"string","isRequired":true,"uniqueKey":"collaterals.items.[INDEX].unrealized_pnl","typeLabel":"string"},"unrealized_pnl_excl_fees":{"type":"string","isRequired":true,"uniqueKey":"collaterals.items.[INDEX].unrealized_pnl_excl_fees","typeLabel":"string"}},"uniqueKey":"collaterals.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"collaterals","typeLabel":"object[]"},"currency":{"type":"array","items":{"type":"string","uniqueKey":"currency.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"currency","typeLabel":"string[]"},"has_delayed_liquidation":{"description":"`true` when the subaccount has a delayed-liquidation override.","type":"boolean","isRequired":true,"uniqueKey":"has_delayed_liquidation","typeLabel":"boolean"},"initial_margin":{"type":"string","isRequired":true,"uniqueKey":"initial_margin","typeLabel":"string"},"is_delayed_liquidation":{"description":"`true` when the margins above use the delayed-liquidation override.","type":"boolean","isRequired":true,"uniqueKey":"is_delayed_liquidation","typeLabel":"boolean"},"maintenance_margin":{"description":"Below zero the subaccount is flagged for liquidation.","type":"string","isRequired":true,"uniqueKey":"maintenance_margin","typeLabel":"string"},"margin_type":{"type":"string","isRequired":true,"uniqueKey":"margin_type","typeLabel":"string"},"positions":{"type":"array","items":{"type":"object","required":["amount","amount_step","average_price","average_price_excl_fees","creation_timestamp","cumulative_funding","delta","gamma","index_price","initial_margin","instrument_name","instrument_type","maintenance_margin","mark_price","mark_value","net_settlements","open_orders_margin","pending_funding","realized_pnl","realized_pnl_excl_fees","theta","total_fees","unrealized_pnl","unrealized_pnl_excl_fees","vega"],"properties":{"amount":{"type":"string","isRequired":true,"uniqueKey":"positions.items.[INDEX].amount","typeLabel":"string"},"amount_step":{"type":"string","isRequired":true,"uniqueKey":"positions.items.[INDEX].amount_step","typeLabel":"string"},"average_price":{"type":"string","isRequired":true,"uniqueKey":"positions.items.[INDEX].average_price","typeLabel":"string"},"average_price_excl_fees":{"type":"string","isRequired":true,"uniqueKey":"positions.items.[INDEX].average_price_excl_fees","typeLabel":"string"},"creation_timestamp":{"type":"integer","format":"int64","isRequired":true,"uniqueKey":"positions.items.[INDEX].creation_timestamp","typeLabel":"integer\u003cint64>"},"cumulative_funding":{"type":"string","isRequired":true,"uniqueKey":"positions.items.[INDEX].cumulative_funding","typeLabel":"string"},"delta":{"type":"string","isRequired":true,"uniqueKey":"positions.items.[INDEX].delta","typeLabel":"string"},"gamma":{"type":"string","isRequired":true,"uniqueKey":"positions.items.[INDEX].gamma","typeLabel":"string"},"index_price":{"type":"string","isRequired":true,"uniqueKey":"positions.items.[INDEX].index_price","typeLabel":"string"},"initial_margin":{"type":"string","isRequired":true,"uniqueKey":"positions.items.[INDEX].initial_margin","typeLabel":"string"},"instrument_name":{"type":"string","isRequired":true,"uniqueKey":"positions.items.[INDEX].instrument_name","typeLabel":"string"},"instrument_type":{"description":"Asset type of the instrument: `\"option\"`, `\"perp\"`, or `\"erc20\"`.","type":"string","enum":["option","perp","erc20"],"isRequired":true,"uniqueKey":"positions.items.[INDEX].instrument_type","typeLabel":"enum\u003cstring>"},"maintenance_margin":{"type":"string","isRequired":true,"uniqueKey":"positions.items.[INDEX].maintenance_margin","typeLabel":"string"},"mark_price":{"type":"string","isRequired":true,"uniqueKey":"positions.items.[INDEX].mark_price","typeLabel":"string"},"mark_value":{"type":"string","isRequired":true,"uniqueKey":"positions.items.[INDEX].mark_value","typeLabel":"string"},"net_settlements":{"type":"string","isRequired":true,"uniqueKey":"positions.items.[INDEX].net_settlements","typeLabel":"string"},"open_orders_margin":{"description":"Uses the same params as `initial_margin`: the manager's, even for a subaccount with a delayed-liquidation override, unless `public/margin_watch` asks for the override.","type":"string","isRequired":true,"uniqueKey":"positions.items.[INDEX].open_orders_margin","typeLabel":"string"},"pending_funding":{"type":"string","isRequired":true,"uniqueKey":"positions.items.[INDEX].pending_funding","typeLabel":"string"},"realized_pnl":{"type":"string","isRequired":true,"uniqueKey":"positions.items.[INDEX].realized_pnl","typeLabel":"string"},"realized_pnl_excl_fees":{"type":"string","isRequired":true,"uniqueKey":"positions.items.[INDEX].realized_pnl_excl_fees","typeLabel":"string"},"theta":{"type":"string","isRequired":true,"uniqueKey":"positions.items.[INDEX].theta","typeLabel":"string"},"total_fees":{"type":"string","isRequired":true,"uniqueKey":"positions.items.[INDEX].total_fees","typeLabel":"string"},"unrealized_pnl":{"type":"string","isRequired":true,"uniqueKey":"positions.items.[INDEX].unrealized_pnl","typeLabel":"string"},"unrealized_pnl_excl_fees":{"type":"string","isRequired":true,"uniqueKey":"positions.items.[INDEX].unrealized_pnl_excl_fees","typeLabel":"string"},"vega":{"type":"string","isRequired":true,"uniqueKey":"positions.items.[INDEX].vega","typeLabel":"string"},"leverage":{"oneOf":[{"type":"string","uniqueKey":"positions.items.[INDEX].leverage.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"positions.items.[INDEX].leverage.oneOf.1","typeLabel":"null"}],"uniqueKey":"positions.items.[INDEX].leverage","typeLabel":"string | null"},"liquidation_price":{"oneOf":[{"type":"string","uniqueKey":"positions.items.[INDEX].liquidation_price.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"positions.items.[INDEX].liquidation_price.oneOf.1","typeLabel":"null"}],"uniqueKey":"positions.items.[INDEX].liquidation_price","typeLabel":"string | null"}},"uniqueKey":"positions.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"positions","typeLabel":"object[]"},"risk_universe_id":{"type":"integer","format":"uint32","minimum":0,"isRequired":true,"uniqueKey":"risk_universe_id","typeLabel":"integer\u003cuint32>"},"subaccount_id":{"type":"integer","format":"uint64","minimum":0,"isRequired":true,"uniqueKey":"subaccount_id","typeLabel":"integer\u003cuint64>"},"subaccount_value":{"type":"string","isRequired":true,"uniqueKey":"subaccount_value","typeLabel":"string"},"valuation_timestamp":{"description":"Unix seconds at which margin and MtM were computed.","type":"integer","format":"int64","isRequired":true,"uniqueKey":"valuation_timestamp","typeLabel":"integer\u003cint64>"},"regular_margin_flagged_sec":{"oneOf":[{"description":"Unix seconds at which a subaccount with a delayed-liquidation override was first seen below its manager's maintenance margin. Its grace period before liquidation counts from here. Null otherwise.","type":"integer","format":"uint64","minimum":0,"uniqueKey":"regular_margin_flagged_sec.oneOf.0","typeLabel":"integer\u003cuint64>"},{"description":"Unix seconds at which a subaccount with a delayed-liquidation override was first seen below its manager's maintenance margin. Its grace period before liquidation counts from here. Null otherwise.","type":"null","format":"uint64","minimum":0,"uniqueKey":"regular_margin_flagged_sec.oneOf.1","typeLabel":"null"}],"uniqueKey":"regular_margin_flagged_sec","typeLabel":"integer\u003cuint64> | null"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"collaterals":[{"amount":"\u003cstring>","amount_step":"\u003cstring>","asset_name":"\u003cstring>","asset_type":"\u003cstring>","average_price":"\u003cstring>","average_price_excl_fees":"\u003cstring>","creation_timestamp":123,"cumulative_interest":"\u003cstring>","currency":"\u003cstring>","delta":"\u003cstring>","delta_currency":"\u003cstring>","initial_margin":"\u003cstring>","maintenance_margin":"\u003cstring>","mark_price":"\u003cstring>","mark_value":"\u003cstring>","open_orders_margin":"\u003cstring>","pending_interest":"\u003cstring>","realized_pnl":"\u003cstring>","realized_pnl_excl_fees":"\u003cstring>","total_fees":"\u003cstring>","unrealized_pnl":"\u003cstring>","unrealized_pnl_excl_fees":"\u003cstring>"}],"currency":["\u003cstring>"],"has_delayed_liquidation":true,"initial_margin":"\u003cstring>","is_delayed_liquidation":true,"maintenance_margin":"\u003cstring>","margin_type":"\u003cstring>","positions":[{"amount":"\u003cstring>","amount_step":"\u003cstring>","average_price":"\u003cstring>","average_price_excl_fees":"\u003cstring>","creation_timestamp":123,"cumulative_funding":"\u003cstring>","delta":"\u003cstring>","gamma":"\u003cstring>","index_price":"\u003cstring>","initial_margin":"\u003cstring>","instrument_name":"\u003cstring>","instrument_type":"option","maintenance_margin":"\u003cstring>","mark_price":"\u003cstring>","mark_value":"\u003cstring>","net_settlements":"\u003cstring>","open_orders_margin":"\u003cstring>","pending_funding":"\u003cstring>","realized_pnl":"\u003cstring>","realized_pnl_excl_fees":"\u003cstring>","theta":"\u003cstring>","total_fees":"\u003cstring>","unrealized_pnl":"\u003cstring>","unrealized_pnl_excl_fees":"\u003cstring>","vega":"\u003cstring>","leverage":"\u003cstring>","liquidation_price":"\u003cstring>"}],"risk_universe_id":1,"subaccount_id":1,"subaccount_value":"\u003cstring>","valuation_timestamp":123,"regular_margin_flagged_sec":1}}},"exampleType":"generated"}},"exampleType":"generated"},"f042ccd2-b668-4656-9b4a-addd6b1a3d79":{"description":"JSON-RPC error (see Error Codes)","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"integer","format":"int64","isRequired":true,"uniqueKey":"error.code","typeLabel":"integer\u003cint64>"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"data":{"oneOf":[{"type":"string","uniqueKey":"error.data.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"error.data.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.data","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":123,"message":"\u003cstring>","data":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{},"servers":{"e7522bc3-d136-4ad3-89e2-010066dbe028":{"url":"https://api.derive.xyz/v3","description":"Production (HTTP POST base)"},"d9f128e9-d64e-4de8-bff0-18fd81207b2f":{"url":"https://testnet.api.derive.xyz/v3","description":"Testnet (HTTP POST base)"}}},"originalFileLocation":"openapi.json"},"subdomain":"derive-a0490cef","siteName":"Derive API","title":"public/margin_watch - Derive API","relatedPagesConfig":{"enabled":true,"limit":3,"mode":"automatic"},"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-06T20:46:57.978Z","originalFileLocation":"api-reference/liquidations/publicmargin_watch.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=\"Calculates the mark-to-market value and initial/maintenance margin for a given subaccount, with per-position and per-collateral breakdowns, computed from live feed data at request time. Margins use the subaccount\u0026#x27;s manager\u0026#x27;s params. Set is_delayed_liquidation to get them under the subaccount\u0026#x27;s delayed-liquidation override instead; the request is rejected for a subaccount without one. has_delayed_liquidation reports whether the subaccount has one. A maintenance margin below zero means the subaccount is flagged for liquidation.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Derive 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/derive-a0490cef/XfAhjgqOqjMLwFQW/_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/derive-a0490cef/XfAhjgqOqjMLwFQW/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/derive-a0490cef/XfAhjgqOqjMLwFQW/_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/derive-a0490cef/XfAhjgqOqjMLwFQW/_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/derive-a0490cef/XfAhjgqOqjMLwFQW/_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/derive-a0490cef/XfAhjgqOqjMLwFQW/_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/derive-a0490cef/XfAhjgqOqjMLwFQW/_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/derive-a0490cef/XfAhjgqOqjMLwFQW/_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/derive-a0490cef/XfAhjgqOqjMLwFQW/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"public/margin_watch - Derive API\">\u003cmeta data-mint-head property=\"og:description\" content=\"Calculates the mark-to-market value and initial/maintenance margin for a given subaccount, with per-position and per-collateral breakdowns, computed from live feed data at request time. Margins use the subaccount\u0026#x27;s manager\u0026#x27;s params. Set is_delayed_liquidation to get them under the subaccount\u0026#x27;s delayed-liquidation override instead; the request is rejected for a subaccount without one. has_delayed_liquidation reports whether the subaccount has one. A maintenance margin below zero means the subaccount is flagged for liquidation.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Derive API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.derive.xyz/api-reference/liquidations/publicmargin_watch\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://derive-a0490cef.mintlify.site/_mintlify/api/og/v2?division=Liquidations\u0026amp;title=public%2Fmargin_watch\u0026amp;description=Calculates+the+mark-to-market+value+and+initial%2Fmaintenance+margin+for+a+given+subaccount%2C+with+per-position+and+per-collateral+breakdowns%2C+computed+from+live+f\u0026amp;theme=7536140435923e4893661595\u0026amp;signature=a2746e65ddeb95006cc71bc9eaaf13edb09abe8110fa64af4ede5ae1f9441858\">\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=\"public/margin_watch - Derive API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Calculates the mark-to-market value and initial/maintenance margin for a given subaccount, with per-position and per-collateral breakdowns, computed from live feed data at request time. Margins use the subaccount\u0026#x27;s manager\u0026#x27;s params. Set is_delayed_liquidation to get them under the subaccount\u0026#x27;s delayed-liquidation override instead; the request is rejected for a subaccount without one. has_delayed_liquidation reports whether the subaccount has one. A maintenance margin below zero means the subaccount is flagged for liquidation.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://derive-a0490cef.mintlify.site/_mintlify/api/og/v2?division=Liquidations\u0026amp;title=public%2Fmargin_watch\u0026amp;description=Calculates+the+mark-to-market+value+and+initial%2Fmaintenance+margin+for+a+given+subaccount%2C+with+per-position+and+per-collateral+breakdowns%2C+computed+from+live+f\u0026amp;theme=7536140435923e4893661595\u0026amp;signature=a2746e65ddeb95006cc71bc9eaaf13edb09abe8110fa64af4ede5ae1f9441858\">\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/derive-a0490cef/XfAhjgqOqjMLwFQW/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Derive API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#F63E58\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.derive.xyz/api-reference/liquidations/publicmargin_watch\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/liquidations/publicmargin_watch.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.derive.xyz/#organization\",\"name\":\"Derive API\",\"url\":\"https://docs.derive.xyz\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/derive-a0490cef/Bt06Ji3mw21_R7pR/logo/derive.png?fit=max\u0026auto=format\u0026n=Bt06Ji3mw21_R7pR\u0026q=85\u0026s=f6216ec72bc35bec084a22d0032062c7\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.derive.xyz#website\",\"name\":\"Derive API\",\"url\":\"https://docs.derive.xyz\",\"publisher\":{\"@id\":\"https://docs.derive.xyz/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.derive.xyz/api-reference/liquidations/publicmargin_watch#webpage\",\"url\":\"https://docs.derive.xyz/api-reference/liquidations/publicmargin_watch\",\"name\":\"public/margin_watch\",\"description\":\"Calculates the mark-to-market value and initial/maintenance margin for a given subaccount, with per-position and per-collateral breakdowns, computed from live feed data at request time. Margins use the subaccount's manager's params. Set is_delayed_liquidation to get them under the subaccount's delayed-liquidation override instead; the request is rejected for a subaccount without one. has_delayed_liquidation reports whether the subaccount has one. A maintenance margin below zero means the subaccount is flagged for liquidation.\",\"dateModified\":\"2026-11-06T20:46:57.978Z\",\"isPartOf\":{\"@id\":\"https://docs.derive.xyz#website\"},\"breadcrumb\":{\"@id\":\"https://docs.derive.xyz/api-reference/liquidations/publicmargin_watch#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.derive.xyz/api-reference/liquidations/publicmargin_watch#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"HTTP \u0026 WS Methods\",\"item\":\"https://docs.derive.xyz/api-reference/subaccounts/privatechange_subaccount_label\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Liquidations\",\"item\":\"https://docs.derive.xyz/api-reference/liquidations/privateliquidate\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"public/margin_watch\",\"item\":\"https://docs.derive.xyz/api-reference/liquidations/publicmargin_watch\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.derive.xyz/api-reference/liquidations/publicmargin_watch#apireference\",\"headline\":\"public/margin_watch\",\"name\":\"public/margin_watch\",\"description\":\"Calculates the mark-to-market value and initial/maintenance margin for a given subaccount, with per-position and per-collateral breakdowns, computed from live feed data at request time. Margins use the subaccount's manager's params. Set is_delayed_liquidation to get them under the subaccount's delayed-liquidation override instead; the request is rejected for a subaccount without one. has_delayed_liquidation reports whether the subaccount has one. A maintenance margin below zero means the subaccount is flagged for liquidation.\",\"url\":\"https://docs.derive.xyz/api-reference/liquidations/publicmargin_watch\",\"mainEntityOfPage\":{\"@id\":\"https://docs.derive.xyz/api-reference/liquidations/publicmargin_watch#webpage\"},\"dateModified\":\"2026-11-06T20:46:57.978Z\",\"publisher\":{\"@id\":\"https://docs.derive.xyz/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.derive.xyz#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Derive API\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Derive API","nav":{"global":null,"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":"/getting-started/introduction"}]},{"tab":"API Reference","groups":[{"group":"HTTP \u0026 WS Methods","pages":[{"group":"Subaccounts","pages":[{"title":"private/change_subaccount_label","deprecated":null,"version":null,"openapi":"/openapi.json post /private/change_subaccount_label","href":"/api-reference/subaccounts/privatechange_subaccount_label"},{"title":"private/delete_subaccount","deprecated":null,"version":null,"openapi":"/openapi.json post /private/delete_subaccount","href":"/api-reference/subaccounts/privatedelete_subaccount"},{"title":"private/get_all_portfolios","deprecated":null,"version":null,"openapi":"/openapi.json post /private/get_all_portfolios","href":"/api-reference/subaccounts/privateget_all_portfolios"},{"title":"private/get_collaterals","deprecated":null,"version":null,"openapi":"/openapi.json post /private/get_collaterals","href":"/api-reference/subaccounts/privateget_collaterals"},{"title":"private/get_margin","deprecated":null,"version":null,"openapi":"/openapi.json post /private/get_margin","href":"/api-reference/subaccounts/privateget_margin"},{"title":"private/get_positions","deprecated":null,"version":null,"openapi":"/openapi.json post /private/get_positions","href":"/api-reference/subaccounts/privateget_positions"},{"title":"private/get_subaccount","deprecated":null,"version":null,"openapi":"/openapi.json post /private/get_subaccount","href":"/api-reference/subaccounts/privateget_subaccount"},{"title":"private/get_subaccounts","deprecated":null,"version":null,"openapi":"/openapi.json post /private/get_subaccounts","href":"/api-reference/subaccounts/privateget_subaccounts"},{"title":"public/get_margin","deprecated":null,"version":null,"openapi":"/openapi.json post /public/get_margin","href":"/api-reference/subaccounts/publicget_margin"},{"title":"public/get_subaccounts","deprecated":null,"version":null,"openapi":"/openapi.json post /public/get_subaccounts","href":"/api-reference/subaccounts/publicget_subaccounts"},{"title":"public/get_wallet","deprecated":null,"version":null,"openapi":"/openapi.json post /public/get_wallet","href":"/api-reference/subaccounts/publicget_wallet"}]},{"group":"Session Keys","pages":[{"title":"private/edit_session_key","deprecated":null,"version":null,"openapi":"/openapi.json post /private/edit_session_key","href":"/api-reference/session-keys/privateedit_session_key"},{"title":"private/session_keys","deprecated":null,"version":null,"openapi":"/openapi.json post /private/session_keys","href":"/api-reference/session-keys/privatesession_keys"},{"title":"private/set_session_key","deprecated":null,"version":null,"openapi":"/openapi.json post /private/set_session_key","href":"/api-reference/session-keys/privateset_session_key"},{"title":"private/set_session_key_debug","deprecated":null,"version":null,"openapi":"/openapi.json post /private/set_session_key_debug","href":"/api-reference/session-keys/privateset_session_key_debug"},{"title":"public/get_wallets_from_session_key","deprecated":null,"version":null,"openapi":"/openapi.json post /public/get_wallets_from_session_key","href":"/api-reference/session-keys/publicget_wallets_from_session_key"}]},{"group":"Account","pages":[{"title":"private/get_account","deprecated":null,"version":null,"openapi":"/openapi.json post /private/get_account","href":"/api-reference/account/privateget_account"}]},{"group":"Orderbook","pages":[{"title":"private/cancel","deprecated":null,"version":null,"openapi":"/openapi.json post /private/cancel","href":"/api-reference/orderbook/privatecancel"},{"title":"private/cancel_algo_order","deprecated":null,"version":null,"openapi":"/openapi.json post /private/cancel_algo_order","href":"/api-reference/orderbook/privatecancel_algo_order"},{"title":"private/cancel_all","deprecated":null,"version":null,"openapi":"/openapi.json post /private/cancel_all","href":"/api-reference/orderbook/privatecancel_all"},{"title":"private/cancel_all_algo_orders","deprecated":null,"version":null,"openapi":"/openapi.json post /private/cancel_all_algo_orders","href":"/api-reference/orderbook/privatecancel_all_algo_orders"},{"title":"private/cancel_all_trigger_orders","deprecated":null,"version":null,"openapi":"/openapi.json post /private/cancel_all_trigger_orders","href":"/api-reference/orderbook/privatecancel_all_trigger_orders"},{"title":"private/cancel_by_instrument","deprecated":null,"version":null,"openapi":"/openapi.json post /private/cancel_by_instrument","href":"/api-reference/orderbook/privatecancel_by_instrument"},{"title":"private/cancel_by_label","deprecated":null,"version":null,"openapi":"/openapi.json post /private/cancel_by_label","href":"/api-reference/orderbook/privatecancel_by_label"},{"title":"private/cancel_by_nonce","deprecated":null,"version":null,"openapi":"/openapi.json post /private/cancel_by_nonce","href":"/api-reference/orderbook/privatecancel_by_nonce"},{"title":"private/cancel_trigger_order","deprecated":null,"version":null,"openapi":"/openapi.json post /private/cancel_trigger_order","href":"/api-reference/orderbook/privatecancel_trigger_order"},{"title":"private/get_algo_orders","deprecated":null,"version":null,"openapi":"/openapi.json post /private/get_algo_orders","href":"/api-reference/orderbook/privateget_algo_orders"},{"title":"private/get_open_orders","deprecated":null,"version":null,"openapi":"/openapi.json post /private/get_open_orders","href":"/api-reference/orderbook/privateget_open_orders"},{"title":"private/get_order","deprecated":null,"version":null,"openapi":"/openapi.json post /private/get_order","href":"/api-reference/orderbook/privateget_order"},{"title":"private/get_trigger_orders","deprecated":null,"version":null,"openapi":"/openapi.json post /private/get_trigger_orders","href":"/api-reference/orderbook/privateget_trigger_orders"},{"title":"private/order","deprecated":null,"version":null,"openapi":"/openapi.json post /private/order","href":"/api-reference/orderbook/privateorder"},{"title":"private/order_debug","deprecated":null,"version":null,"openapi":"/openapi.json post /private/order_debug","href":"/api-reference/orderbook/privateorder_debug"},{"title":"private/order_quote","deprecated":null,"version":null,"openapi":"/openapi.json post /private/order_quote","href":"/api-reference/orderbook/privateorder_quote"},{"title":"private/replace","deprecated":null,"version":null,"openapi":"/openapi.json post /private/replace","href":"/api-reference/orderbook/privatereplace"},{"title":"public/order_quote","deprecated":null,"version":null,"openapi":"/openapi.json post /public/order_quote","href":"/api-reference/orderbook/publicorder_quote"}]},{"group":"RFQ","pages":[{"title":"private/cancel_batch_quotes","deprecated":null,"version":null,"openapi":"/openapi.json post /private/cancel_batch_quotes","href":"/api-reference/rfq/privatecancel_batch_quotes"},{"title":"private/cancel_batch_rfqs","deprecated":null,"version":null,"openapi":"/openapi.json post /private/cancel_batch_rfqs","href":"/api-reference/rfq/privatecancel_batch_rfqs"},{"title":"private/cancel_quote","deprecated":null,"version":null,"openapi":"/openapi.json post /private/cancel_quote","href":"/api-reference/rfq/privatecancel_quote"},{"title":"private/cancel_rfq","deprecated":null,"version":null,"openapi":"/openapi.json post /private/cancel_rfq","href":"/api-reference/rfq/privatecancel_rfq"},{"title":"private/execute_quote","deprecated":null,"version":null,"openapi":"/openapi.json post /private/execute_quote","href":"/api-reference/rfq/privateexecute_quote"},{"title":"private/get_maker_rfq_history","deprecated":null,"version":null,"openapi":"/openapi.json post /private/get_maker_rfq_history","href":"/api-reference/rfq/privateget_maker_rfq_history"},{"title":"private/get_quotes","deprecated":null,"version":null,"openapi":"/openapi.json post /private/get_quotes","href":"/api-reference/rfq/privateget_quotes"},{"title":"private/get_rfqs","deprecated":null,"version":null,"openapi":"/openapi.json post /private/get_rfqs","href":"/api-reference/rfq/privateget_rfqs"},{"title":"private/poll_quotes","deprecated":null,"version":null,"openapi":"/openapi.json post /private/poll_quotes","href":"/api-reference/rfq/privatepoll_quotes"},{"title":"private/poll_rfqs","deprecated":null,"version":null,"openapi":"/openapi.json post /private/poll_rfqs","href":"/api-reference/rfq/privatepoll_rfqs"},{"title":"private/replace_quote","deprecated":null,"version":null,"openapi":"/openapi.json post /private/replace_quote","href":"/api-reference/rfq/privatereplace_quote"},{"title":"private/rfq_get_best_quote","deprecated":null,"version":null,"openapi":"/openapi.json post /private/rfq_get_best_quote","href":"/api-reference/rfq/privaterfq_get_best_quote"},{"title":"private/send_quote","deprecated":null,"version":null,"openapi":"/openapi.json post /private/send_quote","href":"/api-reference/rfq/privatesend_quote"},{"title":"private/send_rfq","deprecated":null,"version":null,"openapi":"/openapi.json post /private/send_rfq","href":"/api-reference/rfq/privatesend_rfq"},{"title":"public/execute_quote_debug","deprecated":null,"version":null,"openapi":"/openapi.json post /public/execute_quote_debug","href":"/api-reference/rfq/publicexecute_quote_debug"},{"title":"public/send_quote_debug","deprecated":null,"version":null,"openapi":"/openapi.json post /public/send_quote_debug","href":"/api-reference/rfq/publicsend_quote_debug"}]},{"group":"Liquidations","pages":[{"title":"private/liquidate","deprecated":null,"version":null,"openapi":"/openapi.json post /private/liquidate","href":"/api-reference/liquidations/privateliquidate"},{"title":"public/get_liquidation_history","deprecated":null,"version":null,"openapi":"/openapi.json post /public/get_liquidation_history","href":"/api-reference/liquidations/publicget_liquidation_history"},{"title":"public/get_live_auctions","description":"Returns every liquidation auction open right now, each priced for a maximal bid at the moment of the response: the cash a bid would cost, the largest fraction of the account it could take, the account's mark-to-market value, the expected discount profit, and the balances on offer. Takes no parameters. This is the polling counterpart to the auctions.watch channel and carries the same values; both a solvent auction's price and the fraction on offer move with wall-clock and with the account's mark, so a quote is only good for the instant it was taken.","deprecated":null,"version":null,"openapi":"/openapi.json post /public/get_live_auctions","href":"/api-reference/liquidations/publicget_live_auctions"},{"title":"public/margin_watch","deprecated":null,"version":null,"openapi":"/openapi.json post /public/margin_watch","href":"/api-reference/liquidations/publicmargin_watch"}]},{"group":"Vault Shareholders","pages":[{"title":"private/cancel_all_vault_requests","description":"Submits a signed cancel action that drains all of the caller's pending deposit and withdraw requests for a given vault and posts the corresponding on-chain operation. Input is the vault subaccount; any subaccount the caller owns may sign. Requires the user-cancel permission.","deprecated":null,"version":null,"openapi":"/openapi.json post /private/cancel_all_vault_requests","href":"/api-reference/vault-shareholders/privatecancel_all_vault_requests"},{"title":"private/get_live_vault_requests","deprecated":null,"version":null,"openapi":"/openapi.json post /private/get_live_vault_requests","href":"/api-reference/vault-shareholders/privateget_live_vault_requests"},{"title":"private/get_shareholder_vaults","deprecated":null,"version":null,"openapi":"/openapi.json post /private/get_shareholder_vaults","href":"/api-reference/vault-shareholders/privateget_shareholder_vaults"},{"title":"private/get_vault_request_history","deprecated":null,"version":null,"openapi":"/openapi.json post /private/get_vault_request_history","href":"/api-reference/vault-shareholders/privateget_vault_request_history"},{"title":"private/get_vault_shares","deprecated":null,"version":null,"openapi":"/openapi.json post /private/get_vault_shares","href":"/api-reference/vault-shareholders/privateget_vault_shares"},{"title":"private/request_vault_deposit","deprecated":null,"version":null,"openapi":"/openapi.json post /private/request_vault_deposit","href":"/api-reference/vault-shareholders/privaterequest_vault_deposit"},{"title":"private/request_vault_withdraw","deprecated":null,"version":null,"openapi":"/openapi.json post /private/request_vault_withdraw","href":"/api-reference/vault-shareholders/privaterequest_vault_withdraw"},{"title":"public/get_vault","deprecated":null,"version":null,"openapi":"/openapi.json post /public/get_vault","href":"/api-reference/vault-shareholders/publicget_vault"},{"title":"public/get_vault_action_history","deprecated":null,"version":null,"openapi":"/openapi.json post /public/get_vault_action_history","href":"/api-reference/vault-shareholders/publicget_vault_action_history"},{"title":"public/get_vault_performance_history","deprecated":null,"version":null,"openapi":"/openapi.json post /public/get_vault_performance_history","href":"/api-reference/vault-shareholders/publicget_vault_performance_history"},{"title":"public/get_vaults","deprecated":null,"version":null,"openapi":"/openapi.json post /public/get_vaults","href":"/api-reference/vault-shareholders/publicget_vaults"}]},{"group":"Vault Curators","pages":[{"title":"private/burn_vault_shares","deprecated":null,"version":null,"openapi":"/openapi.json post /private/burn_vault_shares","href":"/api-reference/vault-curators/privateburn_vault_shares"},{"title":"private/create_vault","deprecated":null,"version":null,"openapi":"/openapi.json post /private/create_vault","href":"/api-reference/vault-curators/privatecreate_vault"},{"title":"private/force_burn","deprecated":null,"version":null,"openapi":"/openapi.json post /private/force_burn","href":"/api-reference/vault-curators/privateforce_burn"},{"title":"private/get_curated_vaults","deprecated":null,"version":null,"openapi":"/openapi.json post /private/get_curated_vaults","href":"/api-reference/vault-curators/privateget_curated_vaults"},{"title":"private/get_live_burn_requests","deprecated":null,"version":null,"openapi":"/openapi.json post /private/get_live_burn_requests","href":"/api-reference/vault-curators/privateget_live_burn_requests"},{"title":"private/get_live_mint_requests","deprecated":null,"version":null,"openapi":"/openapi.json post /private/get_live_mint_requests","href":"/api-reference/vault-curators/privateget_live_mint_requests"},{"title":"private/mint_vault_shares","deprecated":null,"version":null,"openapi":"/openapi.json post /private/mint_vault_shares","href":"/api-reference/vault-curators/privatemint_vault_shares"},{"title":"private/reject_deposit_request","deprecated":null,"version":null,"openapi":"/openapi.json post /private/reject_deposit_request","href":"/api-reference/vault-curators/privatereject_deposit_request"},{"title":"private/update_vault_info","deprecated":null,"version":null,"openapi":"/openapi.json post /private/update_vault_info","href":"/api-reference/vault-curators/privateupdate_vault_info"}]},{"group":"History","pages":[{"title":"private/get_deposit_history","deprecated":null,"version":null,"openapi":"/openapi.json post /private/get_deposit_history","href":"/api-reference/history/privateget_deposit_history"},{"title":"private/get_erc20_transfer_history","deprecated":null,"version":null,"openapi":"/openapi.json post /private/get_erc20_transfer_history","href":"/api-reference/history/privateget_erc20_transfer_history"},{"title":"private/get_funding_history","deprecated":null,"version":null,"openapi":"/openapi.json post /private/get_funding_history","href":"/api-reference/history/privateget_funding_history"},{"title":"private/get_interest_history","deprecated":null,"version":null,"openapi":"/openapi.json post /private/get_interest_history","href":"/api-reference/history/privateget_interest_history"},{"title":"private/get_option_settlement_history","deprecated":null,"version":null,"openapi":"/openapi.json post /private/get_option_settlement_history","href":"/api-reference/history/privateget_option_settlement_history"},{"title":"private/get_order_history","deprecated":null,"version":null,"openapi":"/openapi.json post /private/get_order_history","href":"/api-reference/history/privateget_order_history"},{"title":"private/get_trade_history","deprecated":null,"version":null,"openapi":"/openapi.json post /private/get_trade_history","href":"/api-reference/history/privateget_trade_history"},{"title":"private/get_withdrawal_history","deprecated":null,"version":null,"openapi":"/openapi.json post /private/get_withdrawal_history","href":"/api-reference/history/privateget_withdrawal_history"}]},{"group":"Market Maker Protection","pages":[{"title":"private/get_mmp_config","deprecated":null,"version":null,"openapi":"/openapi.json post /private/get_mmp_config","href":"/api-reference/market-maker-protection/privateget_mmp_config"},{"title":"private/reset_mmp","deprecated":null,"version":null,"openapi":"/openapi.json post /private/reset_mmp","href":"/api-reference/market-maker-protection/privatereset_mmp"},{"title":"private/set_mmp_config","deprecated":null,"version":null,"openapi":"/openapi.json post /private/set_mmp_config","href":"/api-reference/market-maker-protection/privateset_mmp_config"}]},{"group":"Transfers \u0026 Withdrawals","pages":[{"title":"private/transfer_positions","deprecated":null,"version":null,"openapi":"/openapi.json post /private/transfer_positions","href":"/api-reference/transfers-\u0026-withdrawals/privatetransfer_positions"},{"title":"private/transfer_positions_debug","deprecated":null,"version":null,"openapi":"/openapi.json post /private/transfer_positions_debug","href":"/api-reference/transfers-\u0026-withdrawals/privatetransfer_positions_debug"},{"title":"private/transfer_spot","deprecated":null,"version":null,"openapi":"/openapi.json post /private/transfer_spot","href":"/api-reference/transfers-\u0026-withdrawals/privatetransfer_spot"},{"title":"private/transfer_spot_debug","deprecated":null,"version":null,"openapi":"/openapi.json post /private/transfer_spot_debug","href":"/api-reference/transfers-\u0026-withdrawals/privatetransfer_spot_debug"},{"title":"private/transfer_spot_external","deprecated":null,"version":null,"openapi":"/openapi.json post /private/transfer_spot_external","href":"/api-reference/transfers-\u0026-withdrawals/privatetransfer_spot_external"},{"title":"private/transfer_spot_external_debug","deprecated":null,"version":null,"openapi":"/openapi.json post /private/transfer_spot_external_debug","href":"/api-reference/transfers-\u0026-withdrawals/privatetransfer_spot_external_debug"},{"title":"private/update_whitelisted_recipients","deprecated":null,"version":null,"openapi":"/openapi.json post /private/update_whitelisted_recipients","href":"/api-reference/transfers-\u0026-withdrawals/privateupdate_whitelisted_recipients"},{"title":"private/update_whitelisted_recipients_debug","deprecated":null,"version":null,"openapi":"/openapi.json post /private/update_whitelisted_recipients_debug","href":"/api-reference/transfers-\u0026-withdrawals/privateupdate_whitelisted_recipients_debug"},{"title":"private/withdraw","deprecated":null,"version":null,"openapi":"/openapi.json post /private/withdraw","href":"/api-reference/transfers-\u0026-withdrawals/privatewithdraw"},{"title":"public/withdraw_debug","deprecated":null,"version":null,"openapi":"/openapi.json post /public/withdraw_debug","href":"/api-reference/transfers-\u0026-withdrawals/publicwithdraw_debug"}]},{"group":"Onchain Actions","pages":[{"title":"private/get_withdraw_addresses","deprecated":null,"version":null,"openapi":"/openapi.json post /private/get_withdraw_addresses","href":"/api-reference/onchain-actions/privateget_withdraw_addresses"},{"title":"private/register_bridge_deposit","deprecated":null,"version":null,"openapi":"/openapi.json post /private/register_bridge_deposit","href":"/api-reference/onchain-actions/privateregister_bridge_deposit"},{"title":"private/register_withdraw_address","deprecated":null,"version":null,"openapi":"/openapi.json post /private/register_withdraw_address","href":"/api-reference/onchain-actions/privateregister_withdraw_address"},{"title":"public/get_onchain_action_history","deprecated":null,"version":null,"openapi":"/openapi.json post /public/get_onchain_action_history","href":"/api-reference/onchain-actions/publicget_onchain_action_history"},{"title":"public/get_pending_deposits","deprecated":null,"version":null,"openapi":"/openapi.json post /public/get_pending_deposits","href":"/api-reference/onchain-actions/publicget_pending_deposits"},{"title":"public/register_deposit_address","deprecated":null,"version":null,"openapi":"/openapi.json post /public/register_deposit_address","href":"/api-reference/onchain-actions/publicregister_deposit_address"}]},{"group":"System","pages":[{"title":"public/decode_action","deprecated":null,"version":null,"openapi":"/openapi.json post /public/decode_action","href":"/api-reference/system/publicdecode_action"},{"title":"public/getRateLimits","deprecated":null,"version":null,"openapi":"/openapi.json post /public/getRateLimits","href":"/api-reference/system/publicgetratelimits"},{"title":"public/get_live_incidents","deprecated":null,"version":null,"openapi":"/openapi.json post /public/get_live_incidents","href":"/api-reference/system/publicget_live_incidents"},{"title":"public/get_time","deprecated":null,"version":null,"openapi":"/openapi.json post /public/get_time","href":"/api-reference/system/publicget_time"},{"title":"public/get_transaction","deprecated":null,"version":null,"openapi":"/openapi.json post /public/get_transaction","href":"/api-reference/system/publicget_transaction"}]},{"group":"Market Data","pages":[{"title":"public/get_all_currencies","deprecated":null,"version":null,"openapi":"/openapi.json post /public/get_all_currencies","href":"/api-reference/market-data/publicget_all_currencies"},{"title":"public/get_all_instruments","deprecated":null,"version":null,"openapi":"/openapi.json post /public/get_all_instruments","href":"/api-reference/market-data/publicget_all_instruments"},{"title":"public/get_all_live_instruments","deprecated":null,"version":null,"openapi":"/openapi.json post /public/get_all_live_instruments","href":"/api-reference/market-data/publicget_all_live_instruments"},{"title":"public/get_currency","deprecated":null,"version":null,"openapi":"/openapi.json post /public/get_currency","href":"/api-reference/market-data/publicget_currency"},{"title":"public/get_funding_rate_history","deprecated":null,"version":null,"openapi":"/openapi.json post /public/get_funding_rate_history","href":"/api-reference/market-data/publicget_funding_rate_history"},{"title":"public/get_index_chart_data","deprecated":null,"version":null,"openapi":"/openapi.json post /public/get_index_chart_data","href":"/api-reference/market-data/publicget_index_chart_data"},{"title":"public/get_instrument","deprecated":null,"version":null,"openapi":"/openapi.json post /public/get_instrument","href":"/api-reference/market-data/publicget_instrument"},{"title":"public/get_interest_rate_history","deprecated":null,"version":null,"openapi":"/openapi.json post /public/get_interest_rate_history","href":"/api-reference/market-data/publicget_interest_rate_history"},{"title":"public/get_latest_signed_feeds","deprecated":null,"version":null,"openapi":"/openapi.json post /public/get_latest_signed_feeds","href":"/api-reference/market-data/publicget_latest_signed_feeds"},{"title":"public/get_option_settlement_prices","deprecated":null,"version":null,"openapi":"/openapi.json post /public/get_option_settlement_prices","href":"/api-reference/market-data/publicget_option_settlement_prices"},{"title":"public/get_perp_impact_twap","deprecated":null,"version":null,"openapi":"/openapi.json post /public/get_perp_impact_twap","href":"/api-reference/market-data/publicget_perp_impact_twap"},{"title":"public/get_risk_universes","deprecated":null,"version":null,"openapi":"/openapi.json post /public/get_risk_universes","href":"/api-reference/market-data/publicget_risk_universes"},{"title":"public/get_ticker","deprecated":null,"version":null,"openapi":"/openapi.json post /public/get_ticker","href":"/api-reference/market-data/publicget_ticker"},{"title":"public/get_tickers","deprecated":null,"version":null,"openapi":"/openapi.json post /public/get_tickers","href":"/api-reference/market-data/publicget_tickers"},{"title":"public/get_trade_history","deprecated":null,"version":null,"openapi":"/openapi.json post /public/get_trade_history","href":"/api-reference/market-data/publicget_trade_history"},{"title":"public/get_tradingview_chart_data","deprecated":null,"version":null,"openapi":"/openapi.json post /public/get_tradingview_chart_data","href":"/api-reference/market-data/publicget_tradingview_chart_data"}]},{"group":"Maker Scoring","pages":[{"title":"public/get_maker_program_scores","deprecated":null,"version":null,"openapi":"/openapi.json post /public/get_maker_program_scores","href":"/api-reference/maker-scoring/publicget_maker_program_scores"},{"title":"public/get_maker_programs","deprecated":null,"version":null,"openapi":"/openapi.json post /public/get_maker_programs","href":"/api-reference/maker-scoring/publicget_maker_programs"}]},{"group":"Referrals","pages":[{"title":"public/get_all_referral_codes","deprecated":null,"version":null,"openapi":"/openapi.json post /public/get_all_referral_codes","href":"/api-reference/referrals/publicget_all_referral_codes"},{"title":"public/get_referral_performance","deprecated":null,"version":null,"openapi":"/openapi.json post /public/get_referral_performance","href":"/api-reference/referrals/publicget_referral_performance"}]},{"group":"Chat","pages":[{"title":"private/get_chat_rooms","deprecated":null,"version":null,"openapi":"/openapi.json post /private/get_chat_rooms","href":"/api-reference/chat/privateget_chat_rooms"},{"title":"private/get_concierge_messages","deprecated":null,"version":null,"openapi":"/openapi.json post /private/get_concierge_messages","href":"/api-reference/chat/privateget_concierge_messages"},{"title":"private/get_room_messages","deprecated":null,"version":null,"openapi":"/openapi.json post /private/get_room_messages","href":"/api-reference/chat/privateget_room_messages"},{"title":"private/mark_concierge_seen","deprecated":null,"version":null,"openapi":"/openapi.json post /private/mark_concierge_seen","href":"/api-reference/chat/privatemark_concierge_seen"},{"title":"private/send_concierge_message","deprecated":null,"version":null,"openapi":"/openapi.json post /private/send_concierge_message","href":"/api-reference/chat/privatesend_concierge_message"},{"title":"private/send_room_message","deprecated":null,"version":null,"openapi":"/openapi.json post /private/send_room_message","href":"/api-reference/chat/privatesend_room_message"}]},{"group":"Other","pages":[{"title":"private/get_subaccount_value_history","deprecated":null,"version":null,"openapi":"/openapi.json post /private/get_subaccount_value_history","href":"/api-reference/other/privateget_subaccount_value_history"}]}]},{"group":"WS-only Methods","pages":[{"group":"Methods","pages":[{"asyncapi":"websocket.asyncapi.json publicLogin","href":"/api-reference/methods/authenticate-a-websocket-connection","title":"Authenticate a WebSocket connection","version":null},{"asyncapi":"websocket.asyncapi.json subscribe","href":"/api-reference/methods/subscribe-to-notification-channels","title":"Subscribe to notification channels","version":null},{"asyncapi":"websocket.asyncapi.json unsubscribe","href":"/api-reference/methods/unsubscribe-from-notification-channels","title":"Unsubscribe from notification channels","version":null},{"asyncapi":"websocket.asyncapi.json privateSetCancelOnDisconnect","href":"/api-reference/methods/enable-or-disable-cancel-on-disconnect","title":"Enable or disable cancel on disconnect","version":null}]}]},{"group":"WS Subscriptions","pages":[{"group":"Channels","pages":[{"asyncapi":"subscriptions.asyncapi.json auctionsWatch","href":"/api-reference/channels/auctionswatch","title":"Auctions watch","version":null},{"asyncapi":"subscriptions.asyncapi.json chatRoom","href":"/api-reference/channels/chatroom","title":"Chat room","version":null},{"asyncapi":"subscriptions.asyncapi.json marginWatch","href":"/api-reference/channels/marginwatch","title":"Margin watch","version":null},{"asyncapi":"subscriptions.asyncapi.json orderbook","href":"/api-reference/channels/orderbook","title":"Orderbook","version":null},{"asyncapi":"subscriptions.asyncapi.json spotFeed","href":"/api-reference/channels/spotfeed","title":"Spot feed","version":null},{"asyncapi":"subscriptions.asyncapi.json subaccountBalances","href":"/api-reference/channels/subaccountbalances","title":"Subaccount balances","version":null},{"asyncapi":"subscriptions.asyncapi.json subaccountBestQuotes","href":"/api-reference/channels/subaccountbestquotes","title":"Subaccount best quotes","version":null},{"asyncapi":"subscriptions.asyncapi.json subaccountOrders","href":"/api-reference/channels/subaccountorders","title":"Subaccount orders","version":null},{"asyncapi":"subscriptions.asyncapi.json subaccountQuotes","href":"/api-reference/channels/subaccountquotes","title":"Subaccount quotes","version":null},{"asyncapi":"subscriptions.asyncapi.json subaccountTrades","href":"/api-reference/channels/subaccounttrades","title":"Subaccount trades","version":null},{"asyncapi":"subscriptions.asyncapi.json tickerSlim","href":"/api-reference/channels/tickerslim","title":"Ticker slim","version":null},{"asyncapi":"subscriptions.asyncapi.json tradesByInstrument","href":"/api-reference/channels/tradesbyinstrument","title":"Trades by instrument","version":null},{"asyncapi":"subscriptions.asyncapi.json tradesByInstrumentTypeCurrency","href":"/api-reference/channels/tradesbyinstrumenttypecurrency","title":"Trades by instrument type currency","version":null},{"asyncapi":"subscriptions.asyncapi.json walletConcierge","href":"/api-reference/channels/walletconcierge","title":"Wallet concierge","version":null},{"asyncapi":"subscriptions.asyncapi.json walletRfqs","href":"/api-reference/channels/walletrfqs","title":"Wallet rfqs","version":null}]}]}]},{"tab":"Migrating from V2","pages":[{"title":"Migrating from V2","href":"/migrating/v3-improvements"}]},{"tab":"Mechanism","pages":[{"title":"Mechanism","href":"/supported-products"}]},{"tab":"Integrators \u0026 Market Makers","pages":[{"title":"Integrators \u0026 Market Makers","href":"/integrators/introduction"}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog"}]}]},"basePath":"","title":"public/margin_watch - Derive API","buildId":"dpl_8LJbrAiZvr1K98WQNZXCyY5AvT34","deploymentId":"dpl_8LJbrAiZvr1K98WQNZXCyY5AvT34","dynamics":["c2aa737661","b0f84f53ff","a9bb46feb3","2b790eda92"],"chunks":["OpenApiReferenceProvider-i2a3QZ8E.js","utils-ChLwp8m0.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-DRktVTDc.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-CA2pEs4T.js","snippetPresets-ClQ6XrKD.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","Page-BUDYNlhG.js","ApiExamples-Ct_Lv36y.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-Cn2PYw9e.js","shallow-rkyymjXQ.js","getApiPlaygroundDisplay-BB9vkXtE.js","CodeSnippet-Bm5RU7m1.js","CodeSnippets-BgU9Deuz.js","getPastedJson-BD-6NNum.js","icon-8Z6tud2e.js","MethodPill-Tuzr4g3V.js","DuplicateIcon-0ceWFYhN.js","createIcon-FBXow_ST.js","DynamicMarkdown-CD8713Yy.js","SectionHeading-7zgzQbH-.js","axios-vUo_bRtp.js","Markdown-D7Ofw1oz.js","clsx-eKJ4rcii.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CwjSCXIK.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-9EK5IAXV.js"]}