{"docsConfig":{"theme":"luma","$schema":"https://mintlify.com/docs.json","name":"Kraken Developers","colors":{"primary":"#101114","light":"#FFFFFF","dark":"#101114"},"logo":{"light":"https://mintcdn.com/kraken-sandbox/OwFMB_raM-oufD5t/logo/light.svg?fit=max\u0026auto=format\u0026n=OwFMB_raM-oufD5t\u0026q=85\u0026s=63580a7a28c41b4ae9da3224146a3376","dark":"https://mintcdn.com/kraken-sandbox/OwFMB_raM-oufD5t/logo/dark.svg?fit=max\u0026auto=format\u0026n=OwFMB_raM-oufD5t\u0026q=85\u0026s=bc35b28dff88500b38f00068cfed26e8"},"favicon":"https://mintcdn.com/kraken-sandbox/nYHydSZOb2biP8xC/favicon.svg?fit=max\u0026auto=format\u0026n=nYHydSZOb2biP8xC\u0026q=85\u0026s=550f86087d67c033e3b344c62a7df8d6","api":{"examples":{"languages":["curl","python","javascript","go"]}},"appearance":{"default":"dark","strict":false},"navbar":{"primary":{"type":"button","label":"Get API key","href":"https://pro.kraken.com/app/settings/api"}},"footer":{"socials":{"x":"https://x.com/krakenfx","github":"https://github.com/krakenfx","linkedin":"https://linkedin.com/company/kraken-exchange"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"kraken-sandbox","hasAudioNarration":false,"actualSubdomain":"kraken-sandbox","customDomains":[],"gitSource":{"type":"gitlab","owner":"eng-devs","repo":"kraken-api-docs","hostUrl":"https://roshi-korin.honeycrypt.com","projectId":28500,"deployBranch":"sandbox","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"REMOVE_BRANDING":{"status":"ENABLED"},"CONTEXTUAL_FEEDBACK":{"status":"ENABLED"},"CODE_SNIPPET_FEEDBACK":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6ae94af5b9c52538cea1ed0b:success","clientVersion":"0.0.4087","searchFilterCounts":[{"language":"default","tag":"API Reference","count":250},{"language":"default","tag":"Exchange","count":208},{"language":"default","tag":"Institutional","count":77},{"language":"default","tag":"Spot REST","count":58},{"language":"default","tag":"Derivatives REST","count":47},{"language":"default","tag":"Guides","count":33},{"language":"default","tag":"Trading","count":29},{"language":"default","tag":"Market Data","count":28},{"language":"default","tag":"Unified FIX","count":21},{"language":"default","tag":"Prime WebSocket","count":21}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"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":"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":"custom.css","content":"@import url('https://assets.kraken.com/fonts/kraken.css');@import url('https://assets.kraken.com/fonts/celias.css');html,body,body *{font-family:var(--kp-font-sans)!important;-webkit-font-smoothing:antialiased}h1,h2,h3,h4{font-family:var(--kp-font-brand)!important}.prose h1,.prose h2,.prose h3,.prose h4,.prose h5,.prose h6{font-family:var(--kp-font-brand)!important;font-weight:500!important}body code,body pre,body kbd,body samp,body code *,body pre *,body [class*=\"code\"],body [class*=\"Code\"],.kp-mono,.kp-mono *{font-family:var(--kp-font-mono)!important}:root{--kp-primary: #101114;--kp-brand: #7132f5;--kp-font-sans: 'Kraken-Product', system-ui, -apple-system, sans-serif;--kp-font-mono: 'Kraken-Mono', ui-monospace, monospace;--kp-font-brand: 'Kraken-Brand', 'Celias', system-ui, sans-serif;--kp-bg-page: #f6f5f9;--kp-bg-card: #ffffff;--kp-bg-subtle: rgba(104, 107, 130, 0.12);--kp-text-heading: #101114;--kp-text-body: #686b82;--kp-text-placeholder: #9497a9;--kp-text-accent: #101114;--kp-text-meta: #9497a9;--kp-border: rgba(104, 107, 130, 0.16);--kp-terminal-bg: transparent;--kp-terminal-text: var(--kp-text-body);--kp-terminal-heading: var(--kp-text-heading);--kp-terminal-muted: var(--kp-text-placeholder)}html.dark{--kp-primary: #ffffff;--kp-brand: #8a61ff;--kp-bg-page: #0b0611;--kp-bg-card: #16121f;--kp-bg-subtle: rgba(255, 255, 255, 0.07);--kp-text-heading: #ffffff;--kp-text-body: #c6c7d2;--kp-text-placeholder: #9497a9;--kp-text-accent: #ffffff;--kp-text-meta: rgba(255, 255, 255, 0.45);--kp-border: rgba(104, 107, 130, 0.16)}@media (prefers-reduced-motion: reduce){.kp-terminal *,.kp-welcome-hero *{animation-duration:0.01ms!important;animation-iteration-count:1!important;transition-duration:0.01ms!important}}body{background-color:var(--kp-bg-page)!important}body #almond-background-color{background-color:var(--kp-bg-page)!important}.prose{--tw-prose-body: var(--kp-text-body) !important;--tw-prose-headings: var(--kp-text-heading) !important;--tw-prose-links: var(--kp-text-accent) !important;--tw-prose-bold: var(--kp-text-heading) !important;--tw-prose-code: var(--kp-text-heading) !important;--tw-prose-counters: var(--kp-text-body) !important;--tw-prose-bullets: var(--kp-text-placeholder) !important;--tw-prose-hr: var(--kp-border) !important;--tw-prose-quotes: var(--kp-text-body) !important;--tw-prose-quote-borders: var(--kp-border) !important;--tw-prose-th-borders: var(--kp-border) !important;--tw-prose-td-borders: var(--kp-border) !important}.prose a.kp-product-link,.prose a.kp-product-link:hover{text-decoration:none!important;border:none!important}nav a,nav button{color:var(--kp-text-body)}nav a:hover,nav button:hover{color:var(--kp-text-heading)}[data-component-part=\"field-root\"]{border-color:var(--kp-border)!important}[role=\"tablist\"] button[data-state=\"active\"]{color:var(--kp-text-heading)!important;border-color:var(--kp-primary)!important}[role=\"tablist\"] button[data-state=\"inactive\"]{color:var(--kp-text-placeholder)!important}html:not([data-page-mode=\"custom\"]):not([data-page-mode=\"wide\"]) body:not(:has(.api-section)) #content-area{max-width:832px!important;margin-left:max(0px, calc(50vw - 416px - 14rem))!important}html[data-page-mode=\"wide\"] #content-area{max-width:1120px!important;margin-left:max(0px, calc(50vw - 560px - 14rem))!important}body:has(.kp-welcome-hero) #header{display:none!important}@media (min-width: 1024px){.kp-welcome-hero{display:grid;grid-template-columns:1fr 1fr;gap:2rem;align-items:start;margin-bottom:2.5rem}}.prose .kp-welcome-title{font-size:48px!important;line-height:1.05!important;letter-spacing:-0.01em;margin:0 0 1rem!important}.kp-welcome-hero-code .code-group{margin-top:0!important;margin-bottom:0!important}.prose a.kp-hero-btn{text-decoration:none!important;border:1px solid rgba(222, 223, 223, 0.7)!important}.prose a.kp-hero-btn:hover{border-color:rgba(16, 17, 20, 0.25)!important;background-color:var(--kp-bg-subtle)}html.dark .prose a.kp-hero-btn{border-color:rgba(255, 255, 255, 0.12)!important}html.dark .prose a.kp-hero-btn:hover{border-color:rgba(255, 255, 255, 0.3)!important}.kp-product-link:focus-visible{outline:2px solid var(--kp-brand);outline-offset:1px}.prose a.kp-product-tag,.prose a.kp-product-tag:hover{text-decoration:none!important;border:none!important}.prose a.kp-product-tag{background-color:var(--kp-bg-subtle);color:var(--kp-text-body)!important}.prose a.kp-product-tag:hover{color:var(--kp-text-heading)!important}.prose a.kp-product-tag:hover{background-color:rgba(104, 107, 130, 0.18)}html.dark .prose a.kp-product-tag:hover{background-color:rgba(255, 255, 255, 0.12)}.kp-product-tag:focus-visible{outline:2px solid var(--kp-brand);outline-offset:2px}.kp-product-icon{pointer-events:none;cursor:default}html.dark .kp-product-icon{filter:invert(1) brightness(1.8)}.kp-terminal{background:var(--kp-terminal-bg)!important;border-color:var(--kp-border)!important}.kp-terminal.kp-terminal-card{background:var(--kp-bg-card)!important}.kp-terminal .kp-term-output{color:var(--kp-terminal-text)}.kp-terminal .kp-term-prompt-text{color:var(--kp-terminal-heading)!important}.kp-terminal .kp-term-cursor{background:var(--kp-terminal-heading)!important}.kp-terminal span[aria-hidden=\"true\"]:first-child{color:var(--kp-terminal-muted)!important}.kp-term-output,pre code{scrollbar-width:none}.kp-term-output::-webkit-scrollbar,pre code::-webkit-scrollbar{display:none}@media (max-width: 480px){.kp-term-output{font-size:11px!important;padding:12px 14px!important}}.kp-cli-install{scrollbar-width:none}.kp-cli-install::-webkit-scrollbar{display:none}.kp-cli-copy-btn{transition:color 0.15s ease}.kp-cli-copy-btn:hover{color:var(--kp-text-heading)!important}.kp-cli-copy-btn:focus-visible{outline:2px solid var(--kp-brand);outline-offset:1px}.kp-cli-copy-btn svg{transition:transform 0.15s ease}.kp-cli-copy-btn:hover svg{transform:scale(1.15)}"},{"filePath":"global.css","content":"hr{margin-top:1rem!important;margin-bottom:1rem!important}[data-component-part=\"field-content\"]{margin-top:0.25rem!important}.api-banner{display:flex;align-items:center;gap:0.5rem;border:1px solid light-dark(#e5e6ec, #353746);box-shadow:0 0 0 5px light-dark(#ffffff, #0b0611), 0 0 0 6px light-dark(#e5e6ec, #353746);border-radius:1rem;padding:0.4rem;margin-bottom:0.8rem}.api-banner .api-protocol{color:white;font-weight:800;font-size:12px;padding:0.1rem 0.5rem;border-radius:1rem;text-transform:uppercase}.api-banner .api-protocol.ws{background:light-dark(#0079b4, #004e75)}.api-banner .api-protocol.fix{background:light-dark(#a67c1d, #6f5000)}.api-banner .api-detail{font-family:var(--kp-font-mono);font-size:14px;color:light-dark(#484b5e, #9497a9)}.api-banner .api-tag{margin-left:auto;font-family:var(--kp-font-mono);font-weight:600;font-size:12px;background:light-dark(#eeeff3, #292b38);color:light-dark(#484b5e, #c6c7d2);padding:0.1rem 1.5rem;border-radius:0.7rem}div:has(>.nav-tag-pill){order:-1;margin-left:0!important;margin-right:0.9rem!important}pre code{font-size:12px!important}[data-component-part=\"code-block-root\"],[data-component-part=\"code-group-tab-content\"]{line-height:1.25rem!important}#content-side-layout{position:relative!important;top:auto!important;height:auto!important;max-height:none!important}#header .prose{font-size:16px}.field-attr{font-weight:600;font-size:12px;line-height:16px;color:light-dark(#686b82, #9497a9)}"}],"page":{"pagePath":"api-reference/account-information/calculate-portfolio-margin-pnl-and-greeks","slug":"/api-reference/account-information/calculate-portfolio-margin-pnl-and-greeks","pageMetadata":{"title":"Calculate portfolio margin, pnl and greeks","description":"For a given portfolio of balances and positions (futures and options), calculate the\nmargin requirements, pnl and option greeks.\n\nNote: This is currently available exclusively in the Kraken Futures DEMO environment.","deprecated":null,"version":null,"openapi":"/openapi/futures-rest.yaml post /portfolio-margining/simulate","href":"/api-reference/account-information/calculate-portfolio-margin-pnl-and-greeks","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsx(_components.p, {\n children: \"For a given portfolio of balances and positions (futures and options), calculate the\\nmargin requirements, pnl and option greeks.\"\n }), \"\\n\", _jsx(_components.p, {\n children: \"Note: This is currently available exclusively in the Kraken Futures DEMO environment.\"\n })]\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":"Calculate portfolio margin, pnl and greeks","description":"For a given portfolio of balances and positions (futures and options), calculate the\nmargin requirements, pnl and option greeks.\n\nNote: This is currently available exclusively in the Kraken Futures DEMO environment.","deprecated":null,"version":null,"openapi":"/openapi/futures-rest.yaml post /portfolio-margining/simulate","href":"/api-reference/account-information/calculate-portfolio-margin-pnl-and-greeks","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"simulatePortfolio","tags":["Account Information"],"summary":"Calculate portfolio margin, pnl and greeks","description":"For a given portfolio of balances and positions (futures and options), calculate the\nmargin requirements, pnl and option greeks.\n\nNote: This is currently available exclusively in the Kraken Futures DEMO environment.","security":["3855f61d-3e77-4bd8-b84d-4ac55a3e1485"],"parameters":["6243e6f8-0b7f-48b7-be08-62658812f5f8"],"responses":{"200":"a6266047-b32b-480a-8711-6bd3d9819e0a"},"servers":["5a0d3dcb-9990-4e0a-9d89-5f41416858fc"],"method":"post","type":"path","path":"/portfolio-margining/simulate","baseUrlOptions":["https://demo-futures.kraken.com/derivatives/api/v3"],"title":"Calculate portfolio margin, pnl and greeks","codeSamples":[],"requestExampleLanguages":["bash","python","javascript","go"],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"6243e6f8-0b7f-48b7-be08-62658812f5f8":{"description":"Request body as a JSON string","name":"json","in":"query","required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"positions":{"type":"array","items":{"type":"object","properties":{"instrument":{"type":"string","example":"PF_BTCUSD","isRequired":true,"uniqueKey":"positions.items.[INDEX].instrument","typeLabel":"string"},"size":{"type":"number","format":"double","example":12.03532,"isRequired":true,"uniqueKey":"positions.items.[INDEX].size","typeLabel":"number\u003cdouble>"},"entryPrice":{"type":"number","format":"double","example":12.03532,"isRequired":true,"uniqueKey":"positions.items.[INDEX].entryPrice","typeLabel":"number\u003cdouble>"}},"required":["instrument","size","entryPrice"],"uniqueKey":"positions.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"positions","typeLabel":"object[]"}},"required":["positions"],"isRequired":true,"description":"Request body as a JSON string","uniqueKey":"","typeLabel":"object"}}}}},"responses":{"a6266047-b32b-480a-8711-6bd3d9819e0a":{"description":"Simulated portfolio calculations","content":{"application/json":{"schema":{"oneOf":[{"type":"object","title":"Success Response","required":["serverTime","result","maintenanceMargin","initialMargin","pnl","portfolioMarginBreakdown","greeks"],"properties":{"maintenanceMargin":{"type":"number","format":"double","isRequired":true,"uniqueKey":"oneOf.0.maintenanceMargin","typeLabel":"number\u003cdouble>"},"initialMargin":{"type":"number","format":"double","isRequired":true,"uniqueKey":"oneOf.0.initialMargin","typeLabel":"number\u003cdouble>"},"pnl":{"type":"number","format":"double","isRequired":true,"uniqueKey":"oneOf.0.pnl","typeLabel":"number\u003cdouble>"},"portfolioMarginBreakdown":{"description":"Breakdown of components that make up the portfolio margin calculation.","type":"object","properties":{"totalCrossAssetNettedMarketRisk":{"type":"number","format":"double","isRequired":true,"uniqueKey":"oneOf.0.portfolioMarginBreakdown.totalCrossAssetNettedMarketRisk","typeLabel":"number\u003cdouble>"},"totalMarketRisk":{"type":"number","format":"double","isRequired":true,"uniqueKey":"oneOf.0.portfolioMarginBreakdown.totalMarketRisk","typeLabel":"number\u003cdouble>"},"totalAbsoluteOptionPositionDeltaNotional":{"type":"number","format":"double","isRequired":true,"uniqueKey":"oneOf.0.portfolioMarginBreakdown.totalAbsoluteOptionPositionDeltaNotional","typeLabel":"number\u003cdouble>"},"netPortfolioDelta":{"type":"number","format":"double","isRequired":true,"uniqueKey":"oneOf.0.portfolioMarginBreakdown.netPortfolioDelta","typeLabel":"number\u003cdouble>"},"totalPremium":{"type":"number","format":"double","isRequired":true,"uniqueKey":"oneOf.0.portfolioMarginBreakdown.totalPremium","typeLabel":"number\u003cdouble>"},"isBuyOnly":{"type":"boolean","isRequired":true,"uniqueKey":"oneOf.0.portfolioMarginBreakdown.isBuyOnly","typeLabel":"boolean"},"futuresMaintenanceMargin":{"type":"number","format":"double","isRequired":true,"uniqueKey":"oneOf.0.portfolioMarginBreakdown.futuresMaintenanceMargin","typeLabel":"number\u003cdouble>"},"totalScenarioPnls":{"type":"array","items":{"type":"number","format":"double","uniqueKey":"oneOf.0.portfolioMarginBreakdown.totalScenarioPnls.items.[INDEX]","typeLabel":"number\u003cdouble>"},"uniqueKey":"oneOf.0.portfolioMarginBreakdown.totalScenarioPnls","typeLabel":"number\u003cdouble>[]"}},"required":["totalCrossAssetNettedMarketRisk","totalMarketRisk","totalAbsoluteOptionPositionDeltaNotional","netPortfolioDelta","totalPremium","isBuyOnly","futuresMaintenanceMargin"],"isRequired":true,"uniqueKey":"oneOf.0.portfolioMarginBreakdown","typeLabel":"object"},"greeks":{"type":"object","additionalProperties":{"description":"Option Greeks","type":"object","properties":{"iv":{"type":"number","format":"double","description":"The implied volatility. Displays an IV of -1.0 whenever the IV is impossible to calculate or outside of the bounds allowed.","isRequired":true,"uniqueKey":"oneOf.0.greeks.additionalProperties.iv","typeLabel":"number\u003cdouble>"},"delta":{"type":"number","format":"double","isRequired":true,"uniqueKey":"oneOf.0.greeks.additionalProperties.delta","typeLabel":"number\u003cdouble>"},"gamma":{"oneOf":[{"format":"double","type":"number","isRequired":true,"uniqueKey":"oneOf.0.greeks.additionalProperties.gamma.oneOf.0","typeLabel":"number\u003cdouble>"},{"format":"double","type":"null","isRequired":true,"uniqueKey":"oneOf.0.greeks.additionalProperties.gamma.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.0.greeks.additionalProperties.gamma","typeLabel":"number\u003cdouble> | null"},"vega":{"oneOf":[{"format":"double","type":"number","isRequired":true,"uniqueKey":"oneOf.0.greeks.additionalProperties.vega.oneOf.0","typeLabel":"number\u003cdouble>"},{"format":"double","type":"null","isRequired":true,"uniqueKey":"oneOf.0.greeks.additionalProperties.vega.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.0.greeks.additionalProperties.vega","typeLabel":"number\u003cdouble> | null"},"theta":{"oneOf":[{"format":"double","type":"number","isRequired":true,"uniqueKey":"oneOf.0.greeks.additionalProperties.theta.oneOf.0","typeLabel":"number\u003cdouble>"},{"format":"double","type":"null","isRequired":true,"uniqueKey":"oneOf.0.greeks.additionalProperties.theta.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.0.greeks.additionalProperties.theta","typeLabel":"number\u003cdouble> | null"},"rho":{"oneOf":[{"format":"double","type":"number","isRequired":true,"uniqueKey":"oneOf.0.greeks.additionalProperties.rho.oneOf.0","typeLabel":"number\u003cdouble>"},{"format":"double","type":"null","isRequired":true,"uniqueKey":"oneOf.0.greeks.additionalProperties.rho.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.0.greeks.additionalProperties.rho","typeLabel":"number\u003cdouble> | null"}},"required":["iv","delta","gamma","vega","theta","rho"],"uniqueKey":"oneOf.0.greeks.additionalProperties","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.0.greeks","typeLabel":"object"},"result":{"type":"string","enum":["success"],"example":"success","isRequired":true,"uniqueKey":"oneOf.0.result","typeLabel":"enum\u003cstring>"},"serverTime":{"description":"Server time in Coordinated Universal Time (UTC)","type":"string","format":"date-time","example":"2020-08-27T17:03:33.196Z","isRequired":true,"uniqueKey":"oneOf.0.serverTime","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"oneOf.0","typeLabel":"Success Response · object"},{"type":"object","title":"Errors","required":["serverTime","result","error"],"properties":{"error":{"type":"string","description":"Error description.\n\n - `accountInactive`: The Futures account the request refers to is inactive\n - `apiLimitExceeded`: The API limit for the calling IP address has been exceeded\n - `authenticationError`: The request could not be authenticated\n - `insufficientFunds`: The amount requested for transfer is below the amount of funds available\n - `invalidAccount`: The Futures account the transfer request refers to is invalid\n - `invalidAmount`: The amount the transfer request refers to is invalid\n - `invalidArgument`: One or more arguments provided are invalid\n - `invalidUnit`: The unit the transfer request refers to is invalid\n - `Json Parse Error`: The request failed to pass valid JSON as an argument\n - `marketUnavailable`: The market is currently unavailable\n - `nonceBelowThreshold`: The provided nonce is below the threshold\n - `nonceDuplicate`: The provided nonce is a duplicate as it has been used in a previous request\n - `notFound`: The requested information could not be found\n - `requiredArgumentMissing`: One or more required arguments are missing\n - `Server Error`: There was an error processing the request\n - `Unavailable`: The endpoint being called is unavailable\n - `unknownError`: An unknown error has occurred","enum":["accountInactive","apiLimitExceeded","authenticationError","insufficientFunds","invalidAccount","invalidAmount","invalidArgument","invalidUnit","Json Parse Error","marketUnavailable","nonceBelowThreshold","nonceDuplicate","notFound","requiredArgumentMissing","Server Error","Unavailable","unknownError"],"isRequired":true,"uniqueKey":"oneOf.1.error","typeLabel":"enum\u003cstring>"},"result":{"type":"string","enum":["error"],"example":"error","isRequired":true,"uniqueKey":"oneOf.1.result","typeLabel":"enum\u003cstring>"},"serverTime":{"description":"Server time in Coordinated Universal Time (UTC)","type":"string","format":"date-time","example":"2020-08-27T17:03:33.196Z","isRequired":true,"uniqueKey":"oneOf.1.serverTime","typeLabel":"string\u003cdate-time>"},"errors":{"type":"array","items":{"type":"string","description":"Error description.\n\n - `accountInactive`: The Futures account the request refers to is inactive\n - `apiLimitExceeded`: The API limit for the calling IP address has been exceeded\n - `authenticationError`: The request could not be authenticated\n - `insufficientFunds`: The amount requested for transfer is below the amount of funds available\n - `invalidAccount`: The Futures account the transfer request refers to is invalid\n - `invalidAmount`: The amount the transfer request refers to is invalid\n - `invalidArgument`: One or more arguments provided are invalid\n - `invalidUnit`: The unit the transfer request refers to is invalid\n - `Json Parse Error`: The request failed to pass valid JSON as an argument\n - `marketUnavailable`: The market is currently unavailable\n - `nonceBelowThreshold`: The provided nonce is below the threshold\n - `nonceDuplicate`: The provided nonce is a duplicate as it has been used in a previous request\n - `notFound`: The requested information could not be found\n - `requiredArgumentMissing`: One or more required arguments are missing\n - `Server Error`: There was an error processing the request\n - `Unavailable`: The endpoint being called is unavailable\n - `unknownError`: An unknown error has occurred","enum":["accountInactive","apiLimitExceeded","authenticationError","insufficientFunds","invalidAccount","invalidAmount","invalidArgument","invalidUnit","Json Parse Error","marketUnavailable","nonceBelowThreshold","nonceDuplicate","notFound","requiredArgumentMissing","Server Error","Unavailable","unknownError"],"uniqueKey":"oneOf.1.errors.items.[INDEX]","typeLabel":"enum\u003cstring>"},"uniqueKey":"oneOf.1.errors","typeLabel":"enum\u003cstring>[]"}},"uniqueKey":"oneOf.1","typeLabel":"Errors · object"}],"uniqueKey":"","typeLabel":"Success Response · object | Errors · object"},"examples":{"Example":{"title":"Example","value":{"maintenanceMargin":123,"initialMargin":123,"pnl":123,"portfolioMarginBreakdown":{"totalCrossAssetNettedMarketRisk":123,"totalMarketRisk":123,"totalAbsoluteOptionPositionDeltaNotional":123,"netPortfolioDelta":123,"totalPremium":123,"isBuyOnly":true,"futuresMaintenanceMargin":123,"totalScenarioPnls":[123]},"greeks":{},"result":"success","serverTime":"2020-08-27T17:03:33.196Z"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"3855f61d-3e77-4bd8-b84d-4ac55a3e1485":{"general-api-key-read-only":{"type":"apiKey","description":"General API key with at least **read-only** access","in":"header","name":"APIKey","x-inlineDescription":true,"scopes":[]},"authent":{"type":"apiKey","description":"Authentication string","in":"header","name":"Authent","x-inlineDescription":true,"scopes":[]}}},"servers":{"5a0d3dcb-9990-4e0a-9d89-5f41416858fc":{"url":"https://demo-futures.kraken.com/derivatives/api/v3"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","description":"General API key with at least **read-only** access","in":"header","name":"APIKey","x-inlineDescription":true,"scopes":[]},"schema":{"title":"APIKey","type":"string","description":"General API key with at least **read-only** access","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"general-api-key-read-only","name":"APIKey"},{"scheme":{"type":"apiKey","description":"Authentication string","in":"header","name":"Authent","x-inlineDescription":true,"scopes":[]},"schema":{"title":"Authent","type":"string","description":"Authentication string","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"authent","name":"Authent"}],"title":"general-api-key-read-only \u0026 authent"}]},"originalFileLocation":"openapi/futures-rest.yaml"},"subdomain":"kraken-sandbox","siteName":"Kraken Developers","title":"Calculate portfolio margin, pnl and greeks - Kraken Developers","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-05-20T15:37:51.112Z","originalFileLocation":"api-reference/account-information/calculate-portfolio-margin-pnl-and-greeks.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=\"For a given portfolio of balances and positions (futures and options), calculate the margin requirements, pnl and option greeks. Note: This is currently available exclusively in the Kraken Futures DEMO environment.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Kraken Developers\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/kraken-sandbox/xnPkp7Dzen33dSED/_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/kraken-sandbox/xnPkp7Dzen33dSED/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/kraken-sandbox/xnPkp7Dzen33dSED/_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/kraken-sandbox/xnPkp7Dzen33dSED/_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/kraken-sandbox/xnPkp7Dzen33dSED/_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/kraken-sandbox/xnPkp7Dzen33dSED/_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/kraken-sandbox/xnPkp7Dzen33dSED/_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/kraken-sandbox/xnPkp7Dzen33dSED/_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/kraken-sandbox/xnPkp7Dzen33dSED/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Calculate portfolio margin, pnl and greeks - Kraken Developers\">\u003cmeta data-mint-head property=\"og:description\" content=\"For a given portfolio of balances and positions (futures and options), calculate the margin requirements, pnl and option greeks. Note: This is currently available exclusively in the Kraken Futures DEMO environment.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Kraken Developers\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://kraken-sandbox.mintlify.app/api-reference/account-information/calculate-portfolio-margin-pnl-and-greeks\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://kraken-sandbox.mintlify.site/_mintlify/api/og/v2?division=Account\u0026amp;title=Calculate+portfolio+margin%2C+pnl+and+greeks\u0026amp;description=For+a+given+portfolio+of+balances+and+positions+%28futures+and+options%29%2C+calculate+the%0Amargin+requirements%2C+pnl+and+option+greeks.%0A%0ANote%3A+This+is+currently+availa\u0026amp;theme=ce9ac2c06c3ea14bbf82eae9\u0026amp;signature=8996701ddbaa9ad1eb2e4722719fe5bc71990df96af5b078e85a1c56b30e34ab\">\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=\"Calculate portfolio margin, pnl and greeks - Kraken Developers\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"For a given portfolio of balances and positions (futures and options), calculate the margin requirements, pnl and option greeks. Note: This is currently available exclusively in the Kraken Futures DEMO environment.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://kraken-sandbox.mintlify.site/_mintlify/api/og/v2?division=Account\u0026amp;title=Calculate+portfolio+margin%2C+pnl+and+greeks\u0026amp;description=For+a+given+portfolio+of+balances+and+positions+%28futures+and+options%29%2C+calculate+the%0Amargin+requirements%2C+pnl+and+option+greeks.%0A%0ANote%3A+This+is+currently+availa\u0026amp;theme=ce9ac2c06c3ea14bbf82eae9\u0026amp;signature=8996701ddbaa9ad1eb2e4722719fe5bc71990df96af5b078e85a1c56b30e34ab\">\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/kraken-sandbox/xnPkp7Dzen33dSED/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Kraken Developers\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#101114\">\u003clink data-mint-head rel=\"canonical\" href=\"https://kraken-sandbox.mintlify.app/api-reference/account-information/calculate-portfolio-margin-pnl-and-greeks\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/account-information/calculate-portfolio-margin-pnl-and-greeks.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://kraken-sandbox.mintlify.app/#organization\",\"name\":\"Kraken Developers\",\"url\":\"https://kraken-sandbox.mintlify.app\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/kraken-sandbox/OwFMB_raM-oufD5t/logo/light.svg?fit=max\u0026auto=format\u0026n=OwFMB_raM-oufD5t\u0026q=85\u0026s=63580a7a28c41b4ae9da3224146a3376\"}},{\"@type\":\"WebSite\",\"@id\":\"https://kraken-sandbox.mintlify.app#website\",\"name\":\"Kraken Developers\",\"url\":\"https://kraken-sandbox.mintlify.app\",\"publisher\":{\"@id\":\"https://kraken-sandbox.mintlify.app/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://kraken-sandbox.mintlify.app/api-reference/account-information/calculate-portfolio-margin-pnl-and-greeks#webpage\",\"url\":\"https://kraken-sandbox.mintlify.app/api-reference/account-information/calculate-portfolio-margin-pnl-and-greeks\",\"name\":\"Calculate portfolio margin, pnl and greeks\",\"description\":\"For a given portfolio of balances and positions (futures and options), calculate the margin requirements, pnl and option greeks. Note: This is currently available exclusively in the Kraken Futures DEMO environment.\",\"dateModified\":\"2026-05-20T15:37:51.112Z\",\"isPartOf\":{\"@id\":\"https://kraken-sandbox.mintlify.app#website\"},\"breadcrumb\":{\"@id\":\"https://kraken-sandbox.mintlify.app/api-reference/account-information/calculate-portfolio-margin-pnl-and-greeks#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://kraken-sandbox.mintlify.app/api-reference/account-information/calculate-portfolio-margin-pnl-and-greeks#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Account\",\"item\":\"https://kraken-sandbox.mintlify.app/api-reference/account-information/get-wallets\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Calculate portfolio margin, pnl and greeks\",\"item\":\"https://kraken-sandbox.mintlify.app/api-reference/account-information/calculate-portfolio-margin-pnl-and-greeks\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://kraken-sandbox.mintlify.app/api-reference/account-information/calculate-portfolio-margin-pnl-and-greeks#apireference\",\"headline\":\"Calculate portfolio margin, pnl and greeks\",\"name\":\"Calculate portfolio margin, pnl and greeks\",\"description\":\"For a given portfolio of balances and positions (futures and options), calculate the margin requirements, pnl and option greeks. Note: This is currently available exclusively in the Kraken Futures DEMO environment.\",\"url\":\"https://kraken-sandbox.mintlify.app/api-reference/account-information/calculate-portfolio-margin-pnl-and-greeks\",\"mainEntityOfPage\":{\"@id\":\"https://kraken-sandbox.mintlify.app/api-reference/account-information/calculate-portfolio-margin-pnl-and-greeks#webpage\"},\"dateModified\":\"2026-05-20T15:37:51.112Z\",\"publisher\":{\"@id\":\"https://kraken-sandbox.mintlify.app/#organization\"},\"isPartOf\":{\"@id\":\"https://kraken-sandbox.mintlify.app#website\"}}]}\u003c/script>","siteName":"Kraken Developers","nav":{"global":{},"products":[{"product":"Home","pages":[{"title":"Home","href":""}]},{"product":"Exchange","tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":"/exchange/guides/overview"}]},{"tab":"API Reference","dropdowns":[{"dropdown":"Overview","icon":"compass","groups":[{"group":"Exchange API reference","pages":[{"title":"Exchange API reference","sidebarTitle":"Overview","href":"/exchange/api-reference/overview"}]}]},{"dropdown":"Spot REST","icon":"code","groups":[{"group":"Market Data","pages":[{"title":"Get Server Time","deprecated":null,"version":null,"openapi":"/openapi/spot-rest.yaml get /public/Time","href":"/api-reference/market-data/get-server-time"},{"title":"Get System Status","deprecated":null,"version":null,"openapi":"/openapi/spot-rest.yaml get /public/SystemStatus","href":"/api-reference/market-data/get-system-status"},{"title":"Get Asset Info","deprecated":null,"version":null,"openapi":"/openapi/spot-rest.yaml get /public/Assets","href":"/api-reference/market-data/get-asset-info"},{"title":"Get Tradable Asset Pairs","deprecated":null,"version":null,"openapi":"/openapi/spot-rest.yaml get /public/AssetPairs","href":"/api-reference/market-data/get-tradable-asset-pairs"},{"title":"Get Ticker Information","deprecated":null,"version":null,"openapi":"/openapi/spot-rest.yaml get /public/Ticker","href":"/api-reference/market-data/get-ticker-information"},{"title":"Get OHLC Data","deprecated":null,"version":null,"openapi":"/openapi/spot-rest.yaml get /public/OHLC","href":"/api-reference/market-data/get-ohlc-data"},{"title":"Get Order Book","deprecated":null,"version":null,"openapi":"/openapi/spot-rest.yaml get /public/Depth","href":"/api-reference/market-data/get-order-book"},{"title":"Query L3 Order Book","deprecated":null,"version":null,"openapi":"/openapi/spot-rest.yaml post /private/Level3","href":"/api-reference/market-data/query-l3-order-book"},{"title":"Get Grouped Order Book","deprecated":null,"version":null,"openapi":"/openapi/spot-rest.yaml get /public/GroupedBook","href":"/api-reference/market-data/get-grouped-order-book"},{"title":"Get Recent Trades","deprecated":null,"version":null,"openapi":"/openapi/spot-rest.yaml get /public/Trades","href":"/api-reference/market-data/get-recent-trades"},{"title":"Get Recent Spreads","deprecated":null,"version":null,"openapi":"/openapi/spot-rest.yaml get /public/Spread","href":"/api-reference/market-data/get-recent-spreads"}]},{"group":"Account Data","pages":[{"title":"Get Account Balance","deprecated":null,"version":null,"openapi":"/openapi/spot-rest.yaml post /private/Balance","href":"/api-reference/account-data/get-account-balance"},{"title":"Get Extended Balance","deprecated":null,"version":null,"openapi":"/openapi/spot-rest.yaml post /private/BalanceEx","href":"/api-reference/account-data/get-extended-balance"},{"title":"Get Credit Lines","deprecated":null,"version":null,"openapi":"/openapi/spot-rest.yaml post /private/CreditLines","href":"/api-reference/account-data/get-credit-lines"},{"title":"Get Trade Balance","deprecated":null,"version":null,"openapi":"/openapi/spot-rest.yaml post /private/TradeBalance","href":"/api-reference/account-data/get-trade-balance"},{"title":"Get Open Orders","deprecated":null,"version":null,"openapi":"/openapi/spot-rest.yaml post /private/OpenOrders","href":"/api-reference/account-data/get-open-orders"},{"title":"Get Closed Orders","deprecated":null,"version":null,"openapi":"/openapi/spot-rest.yaml post /private/ClosedOrders","href":"/api-reference/account-data/get-closed-orders"},{"title":"Query Orders Info","deprecated":null,"version":null,"openapi":"/openapi/spot-rest.yaml post /private/QueryOrders","href":"/api-reference/account-data/query-orders-info"},{"title":"Get Order Amends","deprecated":null,"version":null,"openapi":"/openapi/spot-rest.yaml post /private/OrderAmends","href":"/api-reference/account-data/get-order-amends"},{"title":"Get Trades History","deprecated":null,"version":null,"openapi":"/openapi/spot-rest.yaml post /private/TradesHistory","href":"/api-reference/account-data/get-trades-history"},{"title":"Query Trades Info","deprecated":null,"version":null,"openapi":"/openapi/spot-rest.yaml post /private/QueryTrades","href":"/api-reference/account-data/query-trades-info"},{"title":"Get Open Positions","deprecated":null,"version":null,"openapi":"/openapi/spot-rest.yaml post /private/OpenPositions","href":"/api-reference/account-data/get-open-positions"},{"title":"Get Ledgers Info","deprecated":null,"version":null,"openapi":"/openapi/spot-rest.yaml post /private/Ledgers","href":"/api-reference/account-data/get-ledgers-info"},{"title":"Query Ledgers","deprecated":null,"version":null,"openapi":"/openapi/spot-rest.yaml post /private/QueryLedgers","href":"/api-reference/account-data/query-ledgers"},{"title":"Get Trade Volume","deprecated":null,"version":null,"openapi":"/openapi/spot-rest.yaml post /private/TradeVolume","href":"/api-reference/account-data/get-trade-volume"},{"title":"Request Export Report","deprecated":null,"version":null,"openapi":"/openapi/spot-rest.yaml post /private/AddExport","href":"/api-reference/account-data/request-export-report"},{"title":"Get Export Report Status","deprecated":null,"version":null,"openapi":"/openapi/spot-rest.yaml post /private/ExportStatus","href":"/api-reference/account-data/get-export-report-status"},{"title":"Retrieve Data Export","deprecated":null,"version":null,"openapi":"/openapi/spot-rest.yaml post /private/RetrieveExport","href":"/api-reference/account-data/retrieve-data-export"},{"title":"Delete Export Report","deprecated":null,"version":null,"openapi":"/openapi/spot-rest.yaml post /private/RemoveExport","href":"/api-reference/account-data/delete-export-report"}]},{"group":"Trading","pages":[{"title":"Add Order","deprecated":null,"version":null,"openapi":"/openapi/spot-rest.yaml post /private/AddOrder","href":"/api-reference/trading/add-order"},{"title":"Amend Order","deprecated":null,"version":null,"openapi":"/openapi/spot-rest.yaml post /private/AmendOrder","href":"/api-reference/trading/amend-order"},{"title":"Edit Order","deprecated":null,"version":null,"openapi":"/openapi/spot-rest.yaml post /private/EditOrder","href":"/api-reference/trading/edit-order"},{"title":"Cancel Order","deprecated":null,"version":null,"openapi":"/openapi/spot-rest.yaml post /private/CancelOrder","href":"/api-reference/trading/cancel-order"},{"title":"Cancel All Orders","deprecated":null,"version":null,"openapi":"/openapi/spot-rest.yaml post /private/CancelAll","href":"/api-reference/trading/cancel-all-orders"},{"title":"Cancel All Orders After X","deprecated":null,"version":null,"openapi":"/openapi/spot-rest.yaml post /private/CancelAllOrdersAfter","href":"/api-reference/trading/cancel-all-orders-after-x"},{"title":"Add Order Batch","deprecated":null,"version":null,"openapi":"/openapi/spot-rest.yaml post /private/AddOrderBatch","href":"/api-reference/trading/add-order-batch"},{"title":"Cancel Order Batch","deprecated":null,"version":null,"openapi":"/openapi/spot-rest.yaml post /private/CancelOrderBatch","href":"/api-reference/trading/cancel-order-batch"},{"title":"Get Websockets Token","deprecated":null,"version":null,"openapi":"/openapi/spot-rest.yaml post /private/GetWebSocketsToken","href":"/api-reference/trading/get-websockets-token"}]},{"group":"Funding","pages":[{"title":"Get Deposit Methods","deprecated":null,"version":null,"openapi":"/openapi/spot-rest.yaml post /private/DepositMethods","href":"/api-reference/funding/get-deposit-methods"},{"title":"Get Deposit Addresses","deprecated":null,"version":null,"openapi":"/openapi/spot-rest.yaml post /private/DepositAddresses","href":"/api-reference/funding/get-deposit-addresses"},{"title":"Get Status of Recent Deposits","deprecated":null,"version":null,"openapi":"/openapi/spot-rest.yaml post /private/DepositStatus","href":"/api-reference/funding/get-status-of-recent-deposits"},{"title":"Get Withdrawal Methods","deprecated":null,"version":null,"openapi":"/openapi/spot-rest.yaml post /private/WithdrawMethods","href":"/api-reference/funding/get-withdrawal-methods"},{"title":"Get Withdrawal Addresses","deprecated":null,"version":null,"openapi":"/openapi/spot-rest.yaml post /private/WithdrawAddresses","href":"/api-reference/funding/get-withdrawal-addresses"},{"title":"Get Withdrawal Information","deprecated":null,"version":null,"openapi":"/openapi/spot-rest.yaml post /private/WithdrawInfo","href":"/api-reference/funding/get-withdrawal-information"},{"title":"Withdraw Funds","deprecated":null,"version":null,"openapi":"/openapi/spot-rest.yaml post /private/Withdraw","href":"/api-reference/funding/withdraw-funds"},{"title":"Get Status of Recent Withdrawals","deprecated":null,"version":null,"openapi":"/openapi/spot-rest.yaml post /private/WithdrawStatus","href":"/api-reference/funding/get-status-of-recent-withdrawals"},{"title":"Request Withdrawal Cancellation","deprecated":null,"version":null,"openapi":"/openapi/spot-rest.yaml post /private/WithdrawCancel","href":"/api-reference/funding/request-withdrawal-cancellation"},{"title":"Request Wallet Transfer","deprecated":null,"version":null,"openapi":"/openapi/spot-rest.yaml post /private/WalletTransfer","href":"/api-reference/funding/request-wallet-transfer"}]},{"group":"Subaccounts","pages":[{"title":"Create Subaccount","deprecated":null,"version":null,"openapi":"/openapi/spot-rest.yaml post /private/CreateSubaccount","href":"/api-reference/subaccounts/create-subaccount"},{"title":"Account Transfer","deprecated":null,"version":null,"openapi":"/openapi/spot-rest.yaml post /private/AccountTransfer","href":"/api-reference/subaccounts/account-transfer"}]},{"group":"Earn","pages":[{"title":"List Earn Strategies","deprecated":null,"version":null,"openapi":"/openapi/spot-rest.yaml post /private/Earn/Strategies","href":"/api-reference/earn/list-earn-strategies"},{"title":"List Earn Allocations","deprecated":null,"version":null,"openapi":"/openapi/spot-rest.yaml post /private/Earn/Allocations","href":"/api-reference/earn/list-earn-allocations"},{"title":"Allocate Earn Funds","deprecated":null,"version":null,"openapi":"/openapi/spot-rest.yaml post /private/Earn/Allocate","href":"/api-reference/earn/allocate-earn-funds"},{"title":"Deallocate Earn Funds","deprecated":null,"version":null,"openapi":"/openapi/spot-rest.yaml post /private/Earn/Deallocate","href":"/api-reference/earn/deallocate-earn-funds"},{"title":"Get Allocation Status","deprecated":null,"version":null,"openapi":"/openapi/spot-rest.yaml post /private/Earn/AllocateStatus","href":"/api-reference/earn/get-allocation-status"},{"title":"Get Deallocation Status","deprecated":null,"version":null,"openapi":"/openapi/spot-rest.yaml post /private/Earn/DeallocateStatus","href":"/api-reference/earn/get-deallocation-status"}]},{"group":"Transparency","pages":[{"title":"Pre-Trade Data","deprecated":null,"version":null,"openapi":"/openapi/spot-rest.yaml get /public/PreTrade","href":"/api-reference/transparency/pre-trade-data"},{"title":"Post-Trade Data","deprecated":null,"version":null,"openapi":"/openapi/spot-rest.yaml get /public/PostTrade","href":"/api-reference/transparency/post-trade-data"}]}]},{"dropdown":"Spot WebSocket v2","icon":"bolt","groups":[{"group":"Public Channels","pages":[{"title":"Ticker","tag":"WSS","href":"/exchange/api-reference/spot-websocket-v2/ticker"},{"title":"Book (Level 2)","tag":"WSS","href":"/exchange/api-reference/spot-websocket-v2/book"},{"title":"Candles (OHLC)","tag":"WSS","href":"/exchange/api-reference/spot-websocket-v2/ohlc"},{"title":"Trades","tag":"WSS","href":"/exchange/api-reference/spot-websocket-v2/trade"},{"title":"Instruments","tag":"WSS","href":"/exchange/api-reference/spot-websocket-v2/instrument"},{"title":"Orders (Level 3)","tag":"WSS","href":"/exchange/api-reference/spot-websocket-v2/level3"},{"title":"Status","tag":"WSS","href":"/exchange/api-reference/spot-websocket-v2/status"},{"title":"Heartbeat","tag":"WSS","href":"/exchange/api-reference/spot-websocket-v2/heartbeat"}]},{"group":"Trading","pages":[{"title":"Add Order","tag":"WSS","href":"/exchange/api-reference/spot-websocket-v2/add_order"},{"title":"Edit Order","tag":"WSS","href":"/exchange/api-reference/spot-websocket-v2/edit_order"},{"title":"Amend Order","tag":"WSS","href":"/exchange/api-reference/spot-websocket-v2/amend_order"},{"title":"Cancel Order","tag":"WSS","href":"/exchange/api-reference/spot-websocket-v2/cancel_order"},{"title":"Cancel All","tag":"WSS","href":"/exchange/api-reference/spot-websocket-v2/cancel_all"},{"title":"Cancel on Disconnect","tag":"WSS","href":"/exchange/api-reference/spot-websocket-v2/cancel_after"},{"title":"Batch Add","tag":"WSS","href":"/exchange/api-reference/spot-websocket-v2/batch_add"},{"title":"Batch Cancel","tag":"WSS","href":"/exchange/api-reference/spot-websocket-v2/batch_cancel"}]},{"group":"Account","pages":[{"title":"Balances","tag":"WSS","href":"/exchange/api-reference/spot-websocket-v2/balances"},{"title":"Executions","tag":"WSS","href":"/exchange/api-reference/spot-websocket-v2/executions"}]},{"group":"System","pages":[{"title":"Ping","tag":"WSS","href":"/exchange/api-reference/spot-websocket-v2/ping"}]}]},{"dropdown":"Spot WebSocket v1","icon":"bolt","groups":[{"group":"Public Channels","pages":[{"title":"Ticker","tag":"WSS","href":"/exchange/api-reference/spot-websocket-v1/ticker"},{"title":"Candles (OHLC)","tag":"WSS","href":"/exchange/api-reference/spot-websocket-v1/ohlc"},{"title":"Trade","tag":"WSS","href":"/exchange/api-reference/spot-websocket-v1/trade"},{"title":"Spread","tag":"WSS","href":"/exchange/api-reference/spot-websocket-v1/spread"},{"title":"Book","tag":"WSS","href":"/exchange/api-reference/spot-websocket-v1/book"}]},{"group":"Trading","pages":[{"title":"Add Order","tag":"WSS","href":"/exchange/api-reference/spot-websocket-v1/addorder"},{"title":"Edit Order","tag":"WSS","href":"/exchange/api-reference/spot-websocket-v1/editorder"},{"title":"Amend Order","tag":"WSS","href":"/exchange/api-reference/spot-websocket-v1/amendorder"},{"title":"Cancel Order","tag":"WSS","href":"/exchange/api-reference/spot-websocket-v1/cancelorder"},{"title":"Cancel All","tag":"WSS","href":"/exchange/api-reference/spot-websocket-v1/cancelall"},{"title":"Cancel on Disconnect","tag":"WSS","href":"/exchange/api-reference/spot-websocket-v1/cancelallordersafter"}]},{"group":"Account","pages":[{"title":"Own Trades","tag":"WSS","href":"/exchange/api-reference/spot-websocket-v1/owntrades"},{"title":"Open Orders","tag":"WSS","href":"/exchange/api-reference/spot-websocket-v1/openorders"}]},{"group":"System","pages":[{"title":"Ping","tag":"WSS","href":"/exchange/api-reference/spot-websocket-v1/ping"},{"title":"Heartbeat","tag":"WSS","href":"/exchange/api-reference/spot-websocket-v1/heartbeat"},{"title":"System Status","tag":"WSS","href":"/exchange/api-reference/spot-websocket-v1/systemstatus"},{"title":"Subscription Status","tag":"WSS","href":"/exchange/api-reference/spot-websocket-v1/subscriptionstatus"},{"title":"Unsubscribe","tag":"WSS","href":"/exchange/api-reference/spot-websocket-v1/unsubscribe"}]}]},{"dropdown":"Derivatives REST","icon":"code","groups":[{"group":"Market Data","pages":[{"title":"Get tickers","deprecated":null,"version":null,"openapi":"/openapi/futures-rest.yaml get /tickers","href":"/api-reference/market-data/get-tickers"},{"title":"Get ticker by symbol","deprecated":null,"version":null,"openapi":"/openapi/futures-rest.yaml get /tickers/{symbol}","href":"/api-reference/market-data/get-ticker-by-symbol"},{"title":"Get orderbook","deprecated":null,"version":null,"openapi":"/openapi/futures-rest.yaml get /orderbook","href":"/api-reference/market-data/get-orderbook"},{"title":"Get trade history","deprecated":null,"version":null,"openapi":"/openapi/futures-rest.yaml get /history","href":"/api-reference/market-data/get-trade-history"}]},{"group":"Instruments","pages":[{"title":"Get instruments","deprecated":null,"version":null,"openapi":"/openapi/futures-rest.yaml get /instruments","href":"/api-reference/instrument-details/get-instruments"},{"title":"Get instrument status list","deprecated":null,"version":null,"openapi":"/openapi/futures-rest.yaml get /instruments/status","href":"/api-reference/instrument-details/get-instrument-status-list"},{"title":"Get instrument status","deprecated":null,"version":null,"openapi":"/openapi/futures-rest.yaml get /instruments/{symbol}/status","href":"/api-reference/instrument-details/get-instrument-status"}]},{"group":"Order Management","pages":[{"title":"Send order","deprecated":null,"version":null,"openapi":"/openapi/futures-rest.yaml post /sendorder","href":"/api-reference/order-management/send-order"},{"title":"Edit order","deprecated":null,"version":null,"openapi":"/openapi/futures-rest.yaml post /editorder","href":"/api-reference/order-management/edit-order"},{"title":"Cancel order","deprecated":null,"version":null,"openapi":"/openapi/futures-rest.yaml post /cancelorder","href":"/api-reference/order-management/cancel-order"},{"title":"Cancel all orders","deprecated":null,"version":null,"openapi":"/openapi/futures-rest.yaml post /cancelallorders","href":"/api-reference/order-management/cancel-all-orders"},{"title":"Dead man's switch","deprecated":null,"version":null,"openapi":"/openapi/futures-rest.yaml post /cancelallordersafter","href":"/api-reference/order-management/dead-mans-switch"},{"title":"Batch order management","deprecated":null,"version":null,"openapi":"/openapi/futures-rest.yaml post /batchorder","href":"/api-reference/order-management/batch-order-management"},{"title":"Get open orders","deprecated":null,"version":null,"openapi":"/openapi/futures-rest.yaml get /openorders","href":"/api-reference/order-management/get-open-orders"},{"title":"Get Specific Orders' Status","deprecated":null,"version":null,"openapi":"/openapi/futures-rest.yaml post /orders/status","href":"/api-reference/order-management/get-specific-orders-status"}]},{"group":"Account","pages":[{"title":"Get wallets","deprecated":null,"version":null,"openapi":"/openapi/futures-rest.yaml get /accounts","href":"/api-reference/account-information/get-wallets"},{"title":"Get open positions","deprecated":null,"version":null,"openapi":"/openapi/futures-rest.yaml get /openpositions","href":"/api-reference/account-information/get-open-positions"},{"title":"Get position percentile of unwind queue","deprecated":null,"version":null,"openapi":"/openapi/futures-rest.yaml get /unwindqueue","href":"/api-reference/account-information/get-position-percentile-of-unwind-queue"},{"title":"Get portfolio margin parameters","description":"Retrieve current portfolio margin calculation parameters.\n\nAlso includes user specific limits related to options trading.\n\nNote: This is currently available exclusively in the Kraken Futures DEMO environment.","deprecated":null,"version":null,"openapi":"/openapi/futures-rest.yaml get /portfolio-margining/parameters","href":"/api-reference/account-information/get-portfolio-margin-parameters"},{"title":"Calculate portfolio margin, pnl and greeks","deprecated":null,"version":null,"openapi":"/openapi/futures-rest.yaml post /portfolio-margining/simulate","href":"/api-reference/account-information/calculate-portfolio-margin-pnl-and-greeks"}]},{"group":"Multi-Collateral","pages":[{"title":"Get PNL currency preferences","description":"The PNL currency preference is used to determine which currency to pay out when realizing\nPNL gains.","deprecated":null,"version":null,"openapi":"/openapi/futures-rest.yaml get /pnlpreferences","href":"/api-reference/multi-collateral/get-pnl-currency-preferences"},{"title":"Set PNL currency preference","deprecated":null,"version":null,"openapi":"/openapi/futures-rest.yaml put /pnlpreferences","href":"/api-reference/multi-collateral/set-pnl-currency-preference"},{"title":"Get leverage settings","deprecated":null,"version":null,"openapi":"/openapi/futures-rest.yaml get /leveragepreferences","href":"/api-reference/multi-collateral/get-leverage-settings"},{"title":"Set leverage settings","deprecated":null,"version":null,"openapi":"/openapi/futures-rest.yaml put /leveragepreferences","href":"/api-reference/multi-collateral/set-leverage-settings"}]},{"group":"Fee Schedules","pages":[{"title":"Get fee schedules","deprecated":null,"version":null,"openapi":"/openapi/futures-rest.yaml get /feeschedules","href":"/api-reference/fee-schedules/get-fee-schedules"},{"title":"Get fee schedule volumes","deprecated":null,"version":null,"openapi":"/openapi/futures-rest.yaml get /feeschedules/volumes","href":"/api-reference/fee-schedules/get-fee-schedule-volumes"}]},{"group":"Historical Data","pages":[{"title":"Get your fills","deprecated":null,"version":null,"openapi":"/openapi/futures-rest.yaml get /fills","href":"/api-reference/historical-data/get-your-fills"},{"title":"Historical funding rates","deprecated":null,"version":null,"openapi":"/openapi/futures-rest.yaml get /historical-funding-rates","href":"/api-reference/historical-funding-rates/historical-funding-rates"}]},{"group":"Trading Settings","pages":[{"title":"Get self trade strategy","deprecated":null,"version":null,"openapi":"/openapi/futures-rest.yaml get /self-trade-strategy","href":"/api-reference/trading-settings/get-self-trade-strategy"},{"title":"Update self trade strategy","deprecated":null,"version":null,"openapi":"/openapi/futures-rest.yaml put /self-trade-strategy","href":"/api-reference/trading-settings/update-self-trade-strategy"}]},{"group":"Subaccounts","pages":[{"title":"Get subaccounts","deprecated":null,"version":null,"openapi":"/openapi/futures-rest.yaml get /subaccounts","href":"/api-reference/subaccounts/get-subaccounts"},{"title":"Check subaccount trading status","deprecated":null,"version":null,"openapi":"/openapi/futures-rest.yaml get /subaccount/{subaccountUid}/trading-enabled","href":"/api-reference/subaccounts/check-subaccount-trading-status"},{"title":"Update subaccount trading status","deprecated":null,"version":null,"openapi":"/openapi/futures-rest.yaml put /subaccount/{subaccountUid}/trading-enabled","href":"/api-reference/subaccounts/update-subaccount-trading-status"}]},{"group":"Transfers","pages":[{"title":"Initiate wallet transfer","deprecated":null,"version":null,"openapi":"/openapi/futures-rest.yaml post /transfer","href":"/api-reference/transfers/initiate-wallet-transfer"},{"title":"Initiate sub account transfer","deprecated":null,"version":null,"openapi":"/openapi/futures-rest.yaml post /transfer/subaccount","href":"/api-reference/transfers/initiate-sub-account-transfer"},{"title":"Initiate withdrawal to Spot wallet","deprecated":null,"version":null,"openapi":"/openapi/futures-rest.yaml post /withdrawal","href":"/api-reference/transfers/initiate-withdrawal-to-spot-wallet"}]},{"group":"Assignment Program","pages":[{"title":"List assignment programs","deprecated":null,"version":null,"openapi":"/openapi/futures-rest.yaml get /assignmentprogram/current","href":"/api-reference/assignment-program/list-assignment-programs"},{"title":"Add assignment preference","deprecated":null,"version":null,"openapi":"/openapi/futures-rest.yaml post /assignmentprogram/add","href":"/api-reference/assignment-program/add-assignment-preference"},{"title":"Deletes assignment preference","deprecated":null,"version":null,"openapi":"/openapi/futures-rest.yaml post /assignmentprogram/delete","href":"/api-reference/assignment-program/deletes-assignment-preference"},{"title":"List assignment preferences history","deprecated":null,"version":null,"openapi":"/openapi/futures-rest.yaml get /assignmentprogram/history","href":"/api-reference/assignment-program/list-assignment-preferences-history"}]},{"group":"RFQs","pages":[{"title":"List all open RFQs","deprecated":null,"version":null,"openapi":"/openapi/futures-rest.yaml get /rfqs","href":"/api-reference/rfqs/list-all-open-rfqs"},{"title":"Retrieve a single open RFQ","deprecated":null,"version":null,"openapi":"/openapi/futures-rest.yaml get /rfqs/{rfqUid}","href":"/api-reference/rfqs/retrieve-a-single-open-rfq"},{"title":"List open offers on open RFQs","deprecated":null,"version":null,"openapi":"/openapi/futures-rest.yaml get /rfqs/open-offers","href":"/api-reference/rfqs/list-open-offers-on-open-rfqs"},{"title":"Place new offer on an open RFQ","deprecated":null,"version":null,"openapi":"/openapi/futures-rest.yaml post /rfqs/{rfqUid}/place-offer","href":"/api-reference/rfqs/place-new-offer-on-an-open-rfq"},{"title":"Replace open offer on open RFQ","deprecated":null,"version":null,"openapi":"/openapi/futures-rest.yaml put /rfqs/{rfqUid}/replace-offer","href":"/api-reference/rfqs/replace-open-offer-on-open-rfq"},{"title":"Cancel open offer on open RFQ","deprecated":null,"version":null,"openapi":"/openapi/futures-rest.yaml delete /rfqs/{rfqUid}/cancel-offer","href":"/api-reference/rfqs/cancel-open-offer-on-open-rfq"}]},{"group":"General","pages":[{"title":"Get notifications","deprecated":null,"version":null,"openapi":"/openapi/futures-rest.yaml get /notifications","href":"/api-reference/general/get-notifications"}]}]},{"dropdown":"Derivatives WebSocket","icon":"bolt","groups":[{"group":"Public Channels","pages":[{"title":"Ticker","tag":"WSS","href":"/exchange/api-reference/futures-websocket/ticker"},{"title":"Ticker Lite","tag":"WSS","href":"/exchange/api-reference/futures-websocket/ticker_lite"},{"title":"Trade","tag":"WSS","href":"/exchange/api-reference/futures-websocket/trade"},{"title":"Book","tag":"WSS","href":"/exchange/api-reference/futures-websocket/book"},{"title":"Heartbeat","tag":"WSS","href":"/exchange/api-reference/futures-websocket/heartbeat"}]},{"group":"Private Channels","pages":[{"title":"Balances","tag":"WSS","href":"/exchange/api-reference/futures-websocket/balances"},{"title":"Fills","tag":"WSS","href":"/exchange/api-reference/futures-websocket/fills"},{"title":"Open Orders","tag":"WSS","href":"/exchange/api-reference/futures-websocket/open_orders"},{"title":"Open Orders (Verbose)","tag":"WSS","href":"/exchange/api-reference/futures-websocket/open_orders_verbose"},{"title":"Open Positions","tag":"WSS","href":"/exchange/api-reference/futures-websocket/open_position"},{"title":"Account Log","tag":"WSS","href":"/exchange/api-reference/futures-websocket/account_log"},{"title":"Notifications","tag":"WSS","href":"/exchange/api-reference/futures-websocket/notifications"}]},{"group":"Authentication","pages":[{"title":"Challenge","tag":"WSS","href":"/exchange/api-reference/futures-websocket/challenge"}]}]},{"dropdown":"Unified FIX","icon":"terminal","groups":[{"group":"Trading","pages":[{"title":"New Order Single","tag":"FIX","href":"/exchange/api-reference/unified-fix/nos"},{"title":"Order Cancel Request","sidebarTitle":"Cancel Order","tag":"FIX","href":"/exchange/api-reference/unified-fix/ocr"},{"title":"Order Cancel Replace Request","sidebarTitle":"Cancel Replace","tag":"FIX","href":"/exchange/api-reference/unified-fix/ocrr"},{"title":"Order Status Request","sidebarTitle":"Order Status","tag":"FIX","href":"/exchange/api-reference/unified-fix/osr"},{"title":"Order Mass Cancel Request","sidebarTitle":"Mass Cancel","tag":"FIX","href":"/exchange/api-reference/unified-fix/omcr"},{"title":"Execution Report","tag":"FIX","href":"/exchange/api-reference/unified-fix/er"}]},{"group":"Market Data","pages":[{"title":"Instrument List Request","sidebarTitle":"Instrument List Req","tag":"FIX","href":"/exchange/api-reference/unified-fix/slr"},{"title":"Instrument List","tag":"FIX","href":"/exchange/api-reference/unified-fix/sl"},{"title":"Market Data Request","tag":"FIX","href":"/exchange/api-reference/unified-fix/mdr"},{"title":"Market Data Request Reject","sidebarTitle":"MD Request Reject","tag":"FIX","href":"/exchange/api-reference/unified-fix/mdrr"},{"title":"Market Data Snapshot Full Refresh","sidebarTitle":"MD Snapshot Full Refresh","tag":"FIX","href":"/exchange/api-reference/unified-fix/mdsfr"},{"title":"Market Data Incremental Refresh","sidebarTitle":"MD Incremental Refresh","tag":"FIX","href":"/exchange/api-reference/unified-fix/mdir"},{"title":"Trading Session Status Request","sidebarTitle":"Session Status Request","tag":"FIX","href":"/exchange/api-reference/unified-fix/tssr"},{"title":"Trading Session Status","sidebarTitle":"Session Status","tag":"FIX","href":"/exchange/api-reference/unified-fix/tss"}]},{"group":"Session","pages":[{"title":"Header \u0026 Trailer","tag":"FIX","href":"/exchange/api-reference/unified-fix/header-trailer"},{"title":"Logon","tag":"FIX","href":"/exchange/api-reference/unified-fix/logon"},{"title":"Logout","tag":"FIX","href":"/exchange/api-reference/unified-fix/logout"},{"title":"Resend Request","tag":"FIX","href":"/exchange/api-reference/unified-fix/resend-request"},{"title":"Reject - Session Level","sidebarTitle":"Session Reject","tag":"FIX","href":"/exchange/api-reference/unified-fix/reject-session"},{"title":"Reject - Business Level","sidebarTitle":"Business Reject","tag":"FIX","href":"/exchange/api-reference/unified-fix/reject-business"},{"title":"Sequence Reset","tag":"FIX","href":"/exchange/api-reference/unified-fix/sequence-reset"}]}]}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/exchange/changelog"}]}]},{"product":"Institutional","pages":[{"title":"Institutional","href":"/institutional/guides/overview"}]},{"product":"Embed","hidden":true,"pages":[{"title":"Embed","href":"/embed/guides/overview"}]}]},"basePath":"","title":"Calculate portfolio margin, pnl and greeks - Kraken Developers","buildId":"dpl_FWZhTb2vab28gFGFH4ojka6qEznQ","deploymentId":"dpl_FWZhTb2vab28gFGFH4ojka6qEznQ","dynamics":["c2aa737661","b0f84f53ff","a9bb46feb3","2b790eda92"],"chunks":["OpenApiReferenceProvider-CBsVopKK.js","utils-DZAk68jJ.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-D32AYZrP.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-D_A5_cny.js","snippetPresets-xNRfS9th.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","Page-Dr40SSJq.js","ApiExamples-BIB25-tq.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-CydJ4w4j.js","shallow-CYPBeQSG.js","getApiPlaygroundDisplay-A5xJVBOu.js","CodeSnippet-BVRTgi3m.js","CodeSnippets-DjD6BSlt.js","getPastedJson-D4V4JyrR.js","icon-uhcnG22T.js","MethodPill-CM-ZQdGH.js","DuplicateIcon-B_WnOiNf.js","createIcon-CJsb8utt.js","DynamicMarkdown-D-2HDKEp.js","SectionHeading-KP5xmMgQ.js","axios-vUo_bRtp.js","Markdown-D_k0dg6k.js","clsx-DK3K4Z1S.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-DE3EVdvd.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-fN9H9n9g.js"]}