Takes one bounded snapshot of the account’s ordinary resting orders and armed trigger orders, then cancels or queues cancellation for every target. In-flight market orders and TWAP, VWAP, or scaled parent orders are not included. Repeating the request with the same idempotency key resumes or replays the original snapshot.
API key beginning with fp_live_ (live keys, served at developers.myfundedperpetuals.com) or fp_test_ (test keys, served at sandbox.myfundedperpetuals.com). A key presented on the other host is rejected with 401 and a message naming the correct host.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"MyFundedPerps Documentation","description":"Product guides, settings reference, and developer API documentation for MyFundedPerps.","colors":{"primary":"#1FA66D","light":"#36CF8F","dark":"#178154"},"logo":{"light":"https://mintcdn.com/my-funded-perps/4fIdVX54Kxh8hflY/logo-light.svg?fit=max\u0026auto=format\u0026n=4fIdVX54Kxh8hflY\u0026q=85\u0026s=cebe735a42f06ca5d2e4b567f53ed8af","dark":"https://mintcdn.com/my-funded-perps/4fIdVX54Kxh8hflY/logo-dark.svg?fit=max\u0026auto=format\u0026n=4fIdVX54Kxh8hflY\u0026q=85\u0026s=ea7bd47667966a4236f2ac14e298a94e","href":"https://myfundedperpetuals.com"},"favicon":"https://mintcdn.com/my-funded-perps/rdzqjiFhppEo_sEz/icon.svg?fit=max\u0026auto=format\u0026n=rdzqjiFhppEo_sEz\u0026q=85\u0026s=363c05a1c553e09ac5d1de9004defc84","appearance":{"default":"system"},"navbar":{"links":[{"href":"https://myfundedperpetuals.com/trade","label":"Trading Platform"}],"primary":{"type":"button","label":"Create API Key","href":"https://myfundedperpetuals.com/settings?section=api-keys"}},"footer":{"socials":{"website":"https://myfundedperpetuals.com"}},"search":{"prompt":"Search rules, guides, and API..."},"seo":{"organization":{"name":"MyFundedPerps","url":"https://myfundedperpetuals.com","sameAs":["https://x.com/MyFundedPerps","https://www.instagram.com/myfundedperps_/","https://github.com/MyFundedPerps"]},"indexing":"navigable"},"integrations":{"telemetry":{"enabled":true}},"contextual":{"options":["copy","view","chatgpt","claude","cursor","vscode"],"display":"header"},"markdown":{"schema":true},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"my-funded-perps","hasAudioNarration":false,"actualSubdomain":"my-funded-perps","customDomains":["docs.myfundedperpetuals.com"],"gitSource":{"type":"github","owner":"myfundedperps","repo":"myfundedperps","deployBranch":"main","contentDirectory":"apps/docs","isPrivate":true,"mountPath":"","label":""},"chroma":{"latestBuiltDeploymentHistoryId":"6addb1ea3f04217bb3716be8","collectionId":"43492e86-d554-4325-a712-f46b76557d58","liveDeploymentHistoryId":"6addb1ea3f04217bb3716be8","schemaVersion":"v3"},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6ade88236f6ff5358664aa6f","clientVersion":"0.0.3966","searchFilterCounts":[{"language":"default","tag":"Developers Guide","count":50},{"language":"default","tag":"Buyers Guide","count":40},{"language":"default","tag":"REST Reference","count":37},{"language":"default","tag":"Guides","count":19},{"language":"default","tag":"Developer API (Beta)","count":13},{"language":"default","tag":"Settings","count":13},{"language":"default","tag":"Accounts","count":9},{"language":"default","tag":"Strategy Orders","count":8},{"language":"default","tag":"Challenge Lifecycle","count":7},{"language":"default","tag":"Orders","count":6}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-v7-file-tree","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","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":"per-site-search-delta","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":"editor-private-page-search","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":"editor-nav-generations","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":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"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}],"isAtlas":false,"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/accounts/cancel-all-working-orders","slug":"/api-reference/accounts/cancel-all-working-orders","pageMetadata":{"title":"Cancel all working orders","description":"Takes one bounded snapshot of the account's ordinary resting orders and armed trigger orders, then cancels or queues cancellation for every target. In-flight market orders and TWAP, VWAP, or scaled parent orders are not included. Repeating the request with the same idempotency key resumes or replays the original snapshot.","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/accounts/{account_id}/cancel-all-orders","href":"/api-reference/accounts/cancel-all-working-orders","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: \"Takes one bounded snapshot of the account’s ordinary resting orders and armed trigger orders, then cancels or queues cancellation for every target. In-flight market orders and TWAP, VWAP, or scaled parent orders are not included. Repeating the request with the same idempotency key resumes or replays the original snapshot.\"\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":"Cancel all working orders","description":"Takes one bounded snapshot of the account's ordinary resting orders and armed trigger orders, then cancels or queues cancellation for every target. In-flight market orders and TWAP, VWAP, or scaled parent orders are not included. Repeating the request with the same idempotency key resumes or replays the original snapshot.","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/accounts/{account_id}/cancel-all-orders","href":"/api-reference/accounts/cancel-all-working-orders","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"cancelAllAccountOrders","summary":"Cancel all working orders","description":"Takes one bounded snapshot of the account's ordinary resting orders and armed trigger orders, then cancels or queues cancellation for every target. In-flight market orders and TWAP, VWAP, or scaled parent orders are not included. Repeating the request with the same idempotency key resumes or replays the original snapshot.","tags":["Accounts","Orders"],"parameters":["7edc962d-4167-4a9b-b367-b85a7f617f1e","d777a991-ba74-4a7c-8739-76816b3d7020"],"responses":{"200":"20916c94-6f82-432e-aabe-310bc481fc3b","201":"8175a336-588a-4587-abc7-f5e50db456f1","202":"70d88e2e-3383-4a78-b39e-a38d7ece21fb","400":"635b6124-1993-476a-b94f-a7fb71f762b0","401":"22697253-4a3a-49fe-9974-0a7e09941680","403":"8d68985e-7c6a-45e0-acd5-828ef6953472","404":"9bba124f-d803-42ea-9ebe-5cf84688808a","409":"cafa819d-1c02-4fd6-ad34-dce8a483115b","429":"e3085541-d93d-496b-bd71-cd28123d310b","503":"cf892fd4-2468-4718-8faf-2ed10732416f"},"method":"post","type":"path","servers":["0bce700c-8f47-4d28-93c4-8c6a54f774e1","2fbded66-8dd6-4643-8b01-0e3f9d2ff197"],"security":["fcd3d2ac-ab78-48dc-85b7-d9c96875d7e0"],"path":"/v1/accounts/{account_id}/cancel-all-orders","baseUrlOptions":["https://developers.myfundedperpetuals.com","https://sandbox.myfundedperpetuals.com"],"title":"Cancel all working orders","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"7edc962d-4167-4a9b-b367-b85a7f617f1e":{"name":"account_id","in":"path","required":true,"schema":{"type":"string","isRequired":true,"uniqueKey":"","typeLabel":"string"}},"d777a991-ba74-4a7c-8739-76816b3d7020":{"name":"Idempotency-Key","in":"header","required":true,"description":"Unique printable key for this intended operation. Reuse it only for an identical retry.","schema":{"type":"string","minLength":1,"maxLength":128,"isRequired":true,"description":"Unique printable key for this intended operation. Reuse it only for an identical retry.","uniqueKey":"","typeLabel":"string"}}},"responses":{"20916c94-6f82-432e-aabe-310bc481fc3b":{"description":"Completed operation replay.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","required":["id","operation","account_id","status","total_count","succeeded_count","failed_count","results","created_at"],"properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"data.id","typeLabel":"string"},"operation":{"type":"string","const":"cancel_all_orders","isRequired":true,"uniqueKey":"data.operation","typeLabel":"string"},"account_id":{"type":"string","isRequired":true,"uniqueKey":"data.account_id","typeLabel":"string"},"status":{"type":"string","enum":["running","completed"],"isRequired":true,"uniqueKey":"data.status","typeLabel":"enum\u003cstring>"},"total_count":{"type":"integer","minimum":0,"maximum":200,"isRequired":true,"uniqueKey":"data.total_count","typeLabel":"integer"},"succeeded_count":{"type":"integer","minimum":0,"maximum":200,"isRequired":true,"uniqueKey":"data.succeeded_count","typeLabel":"integer"},"failed_count":{"type":"integer","minimum":0,"maximum":200,"isRequired":true,"uniqueKey":"data.failed_count","typeLabel":"integer"},"results":{"type":"array","maxItems":200,"items":{"type":"object","required":["order_id","status"],"properties":{"order_id":{"type":"string","isRequired":true,"uniqueKey":"data.results.items.[INDEX].order_id","typeLabel":"string"},"status":{"type":"string","enum":["canceled","queued","failed"],"isRequired":true,"uniqueKey":"data.results.items.[INDEX].status","typeLabel":"enum\u003cstring>"},"queued":{"type":"boolean","uniqueKey":"data.results.items.[INDEX].queued","typeLabel":"boolean"},"failure_code":{"type":"string","uniqueKey":"data.results.items.[INDEX].failure_code","typeLabel":"string"}},"uniqueKey":"data.results.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"data.results","typeLabel":"object[]"},"created_at":{"type":"number","isRequired":true,"uniqueKey":"data.created_at","typeLabel":"number"},"completed_at":{"type":"number","uniqueKey":"data.completed_at","typeLabel":"number"}},"isRequired":true,"uniqueKey":"data","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"data":{"id":"\u003cstring>","operation":"cancel_all_orders","account_id":"\u003cstring>","status":"running","total_count":100,"succeeded_count":100,"failed_count":100,"results":[{"order_id":"\u003cstring>","status":"canceled","queued":true,"failure_code":"\u003cstring>"}],"created_at":123,"completed_at":123}}}},"exampleType":"generated"}},"exampleType":"generated"},"8175a336-588a-4587-abc7-f5e50db456f1":{"description":"Operation completed for the first time.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","required":["id","operation","account_id","status","total_count","succeeded_count","failed_count","results","created_at"],"properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"data.id","typeLabel":"string"},"operation":{"type":"string","const":"cancel_all_orders","isRequired":true,"uniqueKey":"data.operation","typeLabel":"string"},"account_id":{"type":"string","isRequired":true,"uniqueKey":"data.account_id","typeLabel":"string"},"status":{"type":"string","enum":["running","completed"],"isRequired":true,"uniqueKey":"data.status","typeLabel":"enum\u003cstring>"},"total_count":{"type":"integer","minimum":0,"maximum":200,"isRequired":true,"uniqueKey":"data.total_count","typeLabel":"integer"},"succeeded_count":{"type":"integer","minimum":0,"maximum":200,"isRequired":true,"uniqueKey":"data.succeeded_count","typeLabel":"integer"},"failed_count":{"type":"integer","minimum":0,"maximum":200,"isRequired":true,"uniqueKey":"data.failed_count","typeLabel":"integer"},"results":{"type":"array","maxItems":200,"items":{"type":"object","required":["order_id","status"],"properties":{"order_id":{"type":"string","isRequired":true,"uniqueKey":"data.results.items.[INDEX].order_id","typeLabel":"string"},"status":{"type":"string","enum":["canceled","queued","failed"],"isRequired":true,"uniqueKey":"data.results.items.[INDEX].status","typeLabel":"enum\u003cstring>"},"queued":{"type":"boolean","uniqueKey":"data.results.items.[INDEX].queued","typeLabel":"boolean"},"failure_code":{"type":"string","uniqueKey":"data.results.items.[INDEX].failure_code","typeLabel":"string"}},"uniqueKey":"data.results.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"data.results","typeLabel":"object[]"},"created_at":{"type":"number","isRequired":true,"uniqueKey":"data.created_at","typeLabel":"number"},"completed_at":{"type":"number","uniqueKey":"data.completed_at","typeLabel":"number"}},"isRequired":true,"uniqueKey":"data","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"data":{"id":"\u003cstring>","operation":"cancel_all_orders","account_id":"\u003cstring>","status":"running","total_count":100,"succeeded_count":100,"failed_count":100,"results":[{"order_id":"\u003cstring>","status":"canceled","queued":true,"failure_code":"\u003cstring>"}],"created_at":123,"completed_at":123}}}},"exampleType":"generated"}},"exampleType":"generated"},"70d88e2e-3383-4a78-b39e-a38d7ece21fb":{"description":"A bounded slice completed. Retry with the same idempotency key after Retry-After.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer","minimum":1}}},"content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","required":["id","operation","account_id","status","total_count","succeeded_count","failed_count","results","created_at"],"properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"data.id","typeLabel":"string"},"operation":{"type":"string","const":"cancel_all_orders","isRequired":true,"uniqueKey":"data.operation","typeLabel":"string"},"account_id":{"type":"string","isRequired":true,"uniqueKey":"data.account_id","typeLabel":"string"},"status":{"type":"string","enum":["running","completed"],"isRequired":true,"uniqueKey":"data.status","typeLabel":"enum\u003cstring>"},"total_count":{"type":"integer","minimum":0,"maximum":200,"isRequired":true,"uniqueKey":"data.total_count","typeLabel":"integer"},"succeeded_count":{"type":"integer","minimum":0,"maximum":200,"isRequired":true,"uniqueKey":"data.succeeded_count","typeLabel":"integer"},"failed_count":{"type":"integer","minimum":0,"maximum":200,"isRequired":true,"uniqueKey":"data.failed_count","typeLabel":"integer"},"results":{"type":"array","maxItems":200,"items":{"type":"object","required":["order_id","status"],"properties":{"order_id":{"type":"string","isRequired":true,"uniqueKey":"data.results.items.[INDEX].order_id","typeLabel":"string"},"status":{"type":"string","enum":["canceled","queued","failed"],"isRequired":true,"uniqueKey":"data.results.items.[INDEX].status","typeLabel":"enum\u003cstring>"},"queued":{"type":"boolean","uniqueKey":"data.results.items.[INDEX].queued","typeLabel":"boolean"},"failure_code":{"type":"string","uniqueKey":"data.results.items.[INDEX].failure_code","typeLabel":"string"}},"uniqueKey":"data.results.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"data.results","typeLabel":"object[]"},"created_at":{"type":"number","isRequired":true,"uniqueKey":"data.created_at","typeLabel":"number"},"completed_at":{"type":"number","uniqueKey":"data.completed_at","typeLabel":"number"}},"isRequired":true,"uniqueKey":"data","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"data":{"id":"\u003cstring>","operation":"cancel_all_orders","account_id":"\u003cstring>","status":"running","total_count":100,"succeeded_count":100,"failed_count":100,"results":[{"order_id":"\u003cstring>","status":"canceled","queued":true,"failure_code":"\u003cstring>"}],"created_at":123,"completed_at":123}}}},"exampleType":"generated"}},"exampleType":"generated"},"635b6124-1993-476a-b94f-a7fb71f762b0":{"description":"Invalid request. Validation failures list every offending field in `error.details`.","headers":{"X-Request-Id":{"description":"Stable identifier for support and log correlation.","schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","request_id"],"properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"request_id":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"error.request_id","typeLabel":"string\u003cuuid>"},"details":{"type":"array","description":"Present on request-validation failures, with one entry per invalid field so a request can be fixed in one pass.","items":{"type":"object","required":["field","issue"],"properties":{"field":{"type":"string","description":"Wire name of the offending request field, such as `size` or `operations[2].price`. The value `body` refers to the whole payload.","isRequired":true,"uniqueKey":"error.details.items.[INDEX].field","typeLabel":"string"},"issue":{"type":"string","isRequired":true,"uniqueKey":"error.details.items.[INDEX].issue","typeLabel":"string"}},"uniqueKey":"error.details.items.[INDEX]","typeLabel":"object"},"uniqueKey":"error.details","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"\u003cstring>","message":"\u003cstring>","request_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","details":[{"field":"\u003cstring>","issue":"\u003cstring>"}]}}}},"exampleType":"generated"}},"exampleType":"generated"},"22697253-4a3a-49fe-9974-0a7e09941680":{"description":"Missing, invalid, or revoked API key.","headers":{"WWW-Authenticate":{"schema":{"type":"string"}},"X-Request-Id":{"description":"Stable identifier for support and log correlation.","schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","request_id"],"properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"request_id":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"error.request_id","typeLabel":"string\u003cuuid>"},"details":{"type":"array","description":"Present on request-validation failures, with one entry per invalid field so a request can be fixed in one pass.","items":{"type":"object","required":["field","issue"],"properties":{"field":{"type":"string","description":"Wire name of the offending request field, such as `size` or `operations[2].price`. The value `body` refers to the whole payload.","isRequired":true,"uniqueKey":"error.details.items.[INDEX].field","typeLabel":"string"},"issue":{"type":"string","isRequired":true,"uniqueKey":"error.details.items.[INDEX].issue","typeLabel":"string"}},"uniqueKey":"error.details.items.[INDEX]","typeLabel":"object"},"uniqueKey":"error.details","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"\u003cstring>","message":"\u003cstring>","request_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","details":[{"field":"\u003cstring>","issue":"\u003cstring>"}]}}}},"exampleType":"generated"}},"exampleType":"generated"},"8d68985e-7c6a-45e0-acd5-828ef6953472":{"description":"The API key is valid but does not allow this operation.","headers":{"X-Request-Id":{"description":"Stable identifier for support and log correlation.","schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","request_id"],"properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"request_id":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"error.request_id","typeLabel":"string\u003cuuid>"},"details":{"type":"array","description":"Present on request-validation failures, with one entry per invalid field so a request can be fixed in one pass.","items":{"type":"object","required":["field","issue"],"properties":{"field":{"type":"string","description":"Wire name of the offending request field, such as `size` or `operations[2].price`. The value `body` refers to the whole payload.","isRequired":true,"uniqueKey":"error.details.items.[INDEX].field","typeLabel":"string"},"issue":{"type":"string","isRequired":true,"uniqueKey":"error.details.items.[INDEX].issue","typeLabel":"string"}},"uniqueKey":"error.details.items.[INDEX]","typeLabel":"object"},"uniqueKey":"error.details","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"\u003cstring>","message":"\u003cstring>","request_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","details":[{"field":"\u003cstring>","issue":"\u003cstring>"}]}}}},"exampleType":"generated"}},"exampleType":"generated"},"9bba124f-d803-42ea-9ebe-5cf84688808a":{"description":"Resource not found or not owned by the authenticated user.","headers":{"X-Request-Id":{"description":"Stable identifier for support and log correlation.","schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","request_id"],"properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"request_id":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"error.request_id","typeLabel":"string\u003cuuid>"},"details":{"type":"array","description":"Present on request-validation failures, with one entry per invalid field so a request can be fixed in one pass.","items":{"type":"object","required":["field","issue"],"properties":{"field":{"type":"string","description":"Wire name of the offending request field, such as `size` or `operations[2].price`. The value `body` refers to the whole payload.","isRequired":true,"uniqueKey":"error.details.items.[INDEX].field","typeLabel":"string"},"issue":{"type":"string","isRequired":true,"uniqueKey":"error.details.items.[INDEX].issue","typeLabel":"string"}},"uniqueKey":"error.details.items.[INDEX]","typeLabel":"object"},"uniqueKey":"error.details","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"\u003cstring>","message":"\u003cstring>","request_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","details":[{"field":"\u003cstring>","issue":"\u003cstring>"}]}}}},"exampleType":"generated"}},"exampleType":"generated"},"cafa819d-1c02-4fd6-ad34-dce8a483115b":{"description":"The request conflicts with current state, an idempotency record, or a client order ID.","headers":{"X-Request-Id":{"description":"Stable identifier for support and log correlation.","schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","request_id"],"properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"request_id":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"error.request_id","typeLabel":"string\u003cuuid>"},"details":{"type":"array","description":"Present on request-validation failures, with one entry per invalid field so a request can be fixed in one pass.","items":{"type":"object","required":["field","issue"],"properties":{"field":{"type":"string","description":"Wire name of the offending request field, such as `size` or `operations[2].price`. The value `body` refers to the whole payload.","isRequired":true,"uniqueKey":"error.details.items.[INDEX].field","typeLabel":"string"},"issue":{"type":"string","isRequired":true,"uniqueKey":"error.details.items.[INDEX].issue","typeLabel":"string"}},"uniqueKey":"error.details.items.[INDEX]","typeLabel":"object"},"uniqueKey":"error.details","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"\u003cstring>","message":"\u003cstring>","request_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","details":[{"field":"\u003cstring>","issue":"\u003cstring>"}]}}}},"exampleType":"generated"}},"exampleType":"generated"},"e3085541-d93d-496b-bd71-cd28123d310b":{"description":"The per-IP request limit or an account-wide operation budget is exhausted.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer","minimum":1}},"X-Request-Id":{"description":"Stable identifier for support and log correlation.","schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","request_id"],"properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"request_id":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"error.request_id","typeLabel":"string\u003cuuid>"},"details":{"type":"array","description":"Present on request-validation failures, with one entry per invalid field so a request can be fixed in one pass.","items":{"type":"object","required":["field","issue"],"properties":{"field":{"type":"string","description":"Wire name of the offending request field, such as `size` or `operations[2].price`. The value `body` refers to the whole payload.","isRequired":true,"uniqueKey":"error.details.items.[INDEX].field","typeLabel":"string"},"issue":{"type":"string","isRequired":true,"uniqueKey":"error.details.items.[INDEX].issue","typeLabel":"string"}},"uniqueKey":"error.details.items.[INDEX]","typeLabel":"object"},"uniqueKey":"error.details","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"\u003cstring>","message":"\u003cstring>","request_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","details":[{"field":"\u003cstring>","issue":"\u003cstring>"}]}}}},"exampleType":"generated"}},"exampleType":"generated"},"cf892fd4-2468-4718-8faf-2ed10732416f":{"description":"A complete bounded working-order snapshot is temporarily unavailable.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer","minimum":1}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","request_id"],"properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"request_id":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"error.request_id","typeLabel":"string\u003cuuid>"},"details":{"type":"array","description":"Present on request-validation failures, with one entry per invalid field so a request can be fixed in one pass.","items":{"type":"object","required":["field","issue"],"properties":{"field":{"type":"string","description":"Wire name of the offending request field, such as `size` or `operations[2].price`. The value `body` refers to the whole payload.","isRequired":true,"uniqueKey":"error.details.items.[INDEX].field","typeLabel":"string"},"issue":{"type":"string","isRequired":true,"uniqueKey":"error.details.items.[INDEX].issue","typeLabel":"string"}},"uniqueKey":"error.details.items.[INDEX]","typeLabel":"object"},"uniqueKey":"error.details","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"\u003cstring>","message":"\u003cstring>","request_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","details":[{"field":"\u003cstring>","issue":"\u003cstring>"}]}}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"fcd3d2ac-ab78-48dc-85b7-d9c96875d7e0":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"MyFundedPerps API key","description":"API key beginning with `fp_live_` (live keys, served at developers.myfundedperpetuals.com) or `fp_test_` (test keys, served at sandbox.myfundedperpetuals.com). A key presented on the other host is rejected with `401` and a message naming the correct host.","scopes":[],"schemeName":"bearerAuth"}}},"servers":{"0bce700c-8f47-4d28-93c4-8c6a54f774e1":{"url":"https://developers.myfundedperpetuals.com","description":"Live"},"2fbded66-8dd6-4643-8b01-0e3f9d2ff197":{"url":"https://sandbox.myfundedperpetuals.com","description":"Sandbox (test keys and sandbox accounts only)"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","bearerFormat":"MyFundedPerps API key","description":"API key beginning with `fp_live_` (live keys, served at developers.myfundedperpetuals.com) or `fp_test_` (test keys, served at sandbox.myfundedperpetuals.com). A key presented on the other host is rejected with `401` and a message naming the correct host.","scopes":[],"schemeName":"bearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"API key beginning with `fp_live_` (live keys, served at developers.myfundedperpetuals.com) or `fp_test_` (test keys, served at sandbox.myfundedperpetuals.com). A key presented on the other host is rejected with `401` and a message naming the correct host.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"openapi.yaml"},"subdomain":"my-funded-perps","siteName":"MyFundedPerps Documentation","title":"Cancel all working orders - MyFundedPerps Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-24T23:54:12.676Z","originalFileLocation":"api-reference/accounts/cancel-all-working-orders.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=\"Takes one bounded snapshot of the account\u0026#x27;s ordinary resting orders and armed trigger orders, then cancels or queues cancellation for every target. In-flight market orders and TWAP, VWAP, or scaled parent orders are not included. Repeating the request with the same idempotency key resumes or replays the original snapshot.\">\u003cmeta data-mint-head name=\"application-name\" content=\"MyFundedPerps Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/my-funded-perps/REd-2uzEhUdc4sEx/_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/my-funded-perps/REd-2uzEhUdc4sEx/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/my-funded-perps/REd-2uzEhUdc4sEx/_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/my-funded-perps/REd-2uzEhUdc4sEx/_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/my-funded-perps/REd-2uzEhUdc4sEx/_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/my-funded-perps/REd-2uzEhUdc4sEx/_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/my-funded-perps/REd-2uzEhUdc4sEx/_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/my-funded-perps/REd-2uzEhUdc4sEx/_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/my-funded-perps/REd-2uzEhUdc4sEx/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Cancel all working orders - MyFundedPerps Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Takes one bounded snapshot of the account\u0026#x27;s ordinary resting orders and armed trigger orders, then cancels or queues cancellation for every target. In-flight market orders and TWAP, VWAP, or scaled parent orders are not included. Repeating the request with the same idempotency key resumes or replays the original snapshot.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"MyFundedPerps Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.myfundedperpetuals.com/api-reference/accounts/cancel-all-working-orders\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://my-funded-perps.mintlify.app/_mintlify/api/og/v2?division=Accounts\u0026amp;title=Cancel+all+working+orders\u0026amp;description=Takes+one+bounded+snapshot+of+the+account%27s+ordinary+resting+orders+and+armed+trigger+orders%2C+then+cancels+or+queues+cancellation+for+every+target.+In-flight+ma\u0026amp;theme=94835aa0e5a522f6511ee5ac\u0026amp;signature=3061966138c4fc52617e813f3a8c4ce376582a2d87212140e69a8fc84f2b5fcf\">\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=\"Cancel all working orders - MyFundedPerps Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Takes one bounded snapshot of the account\u0026#x27;s ordinary resting orders and armed trigger orders, then cancels or queues cancellation for every target. In-flight market orders and TWAP, VWAP, or scaled parent orders are not included. Repeating the request with the same idempotency key resumes or replays the original snapshot.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://my-funded-perps.mintlify.app/_mintlify/api/og/v2?division=Accounts\u0026amp;title=Cancel+all+working+orders\u0026amp;description=Takes+one+bounded+snapshot+of+the+account%27s+ordinary+resting+orders+and+armed+trigger+orders%2C+then+cancels+or+queues+cancellation+for+every+target.+In-flight+ma\u0026amp;theme=94835aa0e5a522f6511ee5ac\u0026amp;signature=3061966138c4fc52617e813f3a8c4ce376582a2d87212140e69a8fc84f2b5fcf\">\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/my-funded-perps/REd-2uzEhUdc4sEx/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"MyFundedPerps Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#1FA66D\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.myfundedperpetuals.com/api-reference/accounts/cancel-all-working-orders\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/accounts/cancel-all-working-orders.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://myfundedperpetuals.com/#organization\",\"name\":\"MyFundedPerps\",\"url\":\"https://myfundedperpetuals.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/my-funded-perps/4fIdVX54Kxh8hflY/logo-light.svg?fit=max\u0026auto=format\u0026n=4fIdVX54Kxh8hflY\u0026q=85\u0026s=cebe735a42f06ca5d2e4b567f53ed8af\"},\"sameAs\":[\"https://x.com/MyFundedPerps\",\"https://www.instagram.com/myfundedperps_/\",\"https://github.com/MyFundedPerps\"]},{\"@type\":\"WebSite\",\"@id\":\"https://docs.myfundedperpetuals.com#website\",\"name\":\"MyFundedPerps Documentation\",\"url\":\"https://docs.myfundedperpetuals.com\",\"publisher\":{\"@id\":\"https://myfundedperpetuals.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.myfundedperpetuals.com/api-reference/accounts/cancel-all-working-orders#webpage\",\"url\":\"https://docs.myfundedperpetuals.com/api-reference/accounts/cancel-all-working-orders\",\"name\":\"Cancel all working orders\",\"description\":\"Takes one bounded snapshot of the account's ordinary resting orders and armed trigger orders, then cancels or queues cancellation for every target. In-flight market orders and TWAP, VWAP, or scaled parent orders are not included. Repeating the request with the same idempotency key resumes or replays the original snapshot.\",\"dateModified\":\"2026-10-24T23:54:12.676Z\",\"isPartOf\":{\"@id\":\"https://docs.myfundedperpetuals.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.myfundedperpetuals.com/api-reference/accounts/cancel-all-working-orders#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.myfundedperpetuals.com/api-reference/accounts/cancel-all-working-orders#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"REST Reference\",\"item\":\"https://docs.myfundedperpetuals.com/api-reference\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Accounts\",\"item\":\"https://docs.myfundedperpetuals.com/api-reference/accounts/list-visible-copy-trading-groups\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Cancel all working orders\",\"item\":\"https://docs.myfundedperpetuals.com/api-reference/accounts/cancel-all-working-orders\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.myfundedperpetuals.com/api-reference/accounts/cancel-all-working-orders#apireference\",\"headline\":\"Cancel all working orders\",\"name\":\"Cancel all working orders\",\"description\":\"Takes one bounded snapshot of the account's ordinary resting orders and armed trigger orders, then cancels or queues cancellation for every target. In-flight market orders and TWAP, VWAP, or scaled parent orders are not included. Repeating the request with the same idempotency key resumes or replays the original snapshot.\",\"url\":\"https://docs.myfundedperpetuals.com/api-reference/accounts/cancel-all-working-orders\",\"mainEntityOfPage\":{\"@id\":\"https://docs.myfundedperpetuals.com/api-reference/accounts/cancel-all-working-orders#webpage\"},\"dateModified\":\"2026-10-24T23:54:12.676Z\",\"publisher\":{\"@id\":\"https://myfundedperpetuals.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.myfundedperpetuals.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"MyFundedPerps Documentation\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"MyFundedPerps Documentation","nav":{"global":null,"tabs":[{"tab":"Buyers Guide","pages":[{"title":"Buyers Guide","href":""}]},{"tab":"Developers Guide","groups":[{"group":"Developer API (Beta)","pages":[{"title":"Quickstart","href":"/quickstart"},{"title":"API capabilities","href":"/api-capabilities"},{"title":"Command-Line Interface","href":"/cli"},{"title":"MCP Server","href":"/mcp-server"},{"title":"Trading with the API","href":"/trading-with-api"},{"title":"Account trading policy","href":"/trading-policy"},{"title":"Market data streaming","href":"/market-streaming"},{"title":"Account streaming","href":"/account-streaming"},{"title":"Authentication","href":"/authentication"},{"title":"Sandbox and test keys","href":"/sandbox"},{"title":"Idempotency","href":"/idempotency"},{"title":"Pagination","href":"/pagination"},{"title":"Errors and Rate Limits","href":"/errors-and-rate-limits"}]},{"group":"REST Reference","pages":[{"title":"API Reference","href":"/api-reference"},{"group":"Accounts","pages":[{"title":"List visible copy trading groups","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/copy-trading","href":"/api-reference/accounts/list-visible-copy-trading-groups"},{"title":"Save copy trading groups","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/copy-trading","href":"/api-reference/accounts/save-copy-trading-groups"},{"title":"Disable a copy trading group","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/copy-trading/{config_id}/disable","href":"/api-reference/accounts/disable-a-copy-trading-group"},{"title":"Acknowledge a completed copy stop","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/accounts/{account_id}/acknowledge-copy-stop","href":"/api-reference/accounts/acknowledge-a-completed-copy-stop"},{"title":"List challenge accounts","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/accounts","href":"/api-reference/accounts/list-challenge-accounts"},{"title":"Get a challenge account","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/accounts/{account_id}","href":"/api-reference/accounts/get-a-challenge-account"},{"title":"Get effective account trading policy","description":"Returns an advisory snapshot of effective account rules, configured trading limits, user restrictions, payout and copy locks, and trading halts. Read scope is sufficient. Placement and settlement recheck authority; this snapshot does not reserve capacity or guarantee an order will pass.","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/accounts/{account_id}/trading-policy","href":"/api-reference/accounts/get-effective-account-trading-policy"},{"title":"Cancel all working orders","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/accounts/{account_id}/cancel-all-orders","href":"/api-reference/accounts/cancel-all-working-orders"},{"title":"Close all open positions","description":"Takes one bounded snapshot of every open position and submits one reduce-only market close for each target. Closes use the same 2.5% maximum-slippage policy as Close All in the trading terminal. The response reports each submitted or rejected child order. Repeating the request with the same idempotency key resumes or replays the original snapshot, even when positions have since closed.","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/accounts/{account_id}/close-all-positions","href":"/api-reference/accounts/close-all-open-positions"}]},{"group":"General","pages":[{"title":"Get API information","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1","href":"/api-reference/general/get-api-information"},{"title":"List restricted countries","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/restricted-countries","href":"/api-reference/general/list-restricted-countries"}]},{"group":"Authentication","pages":[{"title":"Exchange a CLI authorization code","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/auth/cli/token","href":"/api-reference/authentication/exchange-a-cli-authorization-code"},{"title":"Revoke the presented CLI session","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/auth/cli/revoke","href":"/api-reference/authentication/revoke-the-presented-cli-session"}]},{"group":"Markets","pages":[{"title":"List tradable markets","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/markets","href":"/api-reference/markets/list-tradable-markets"},{"title":"Get a tradable market","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/markets/{market_id}","href":"/api-reference/markets/get-a-tradable-market"},{"title":"Get an execution quote","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/markets/{market_id}/quote","href":"/api-reference/markets/get-an-execution-quote"}]},{"group":"Positions","pages":[{"title":"List open positions","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/positions","href":"/api-reference/positions/list-open-positions"},{"title":"Get a position","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/positions/{position_id}","href":"/api-reference/positions/get-a-position"},{"title":"Close part or all of a position","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/positions/{position_id}/close","href":"/api-reference/positions/close-part-or-all-of-a-position"},{"title":"Atomically update position TP/SL orders","deprecated":null,"version":null,"openapi":"/openapi.yaml put /v1/positions/{position_id}/exit-orders","href":"/api-reference/positions/atomically-update-position-tpsl-orders"},{"title":"Set the position's extra isolated margin","deprecated":null,"version":null,"openapi":"/openapi.yaml put /v1/positions/{position_id}/isolated-margin","href":"/api-reference/positions/set-the-positions-extra-isolated-margin"}]},{"group":"Orders","pages":[{"title":"List recent orders","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/orders","href":"/api-reference/orders/list-recent-orders"},{"title":"Place a standard or advanced order","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/orders","href":"/api-reference/orders/place-a-standard-or-advanced-order"},{"title":"Get an order","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/orders/{order_id}","href":"/api-reference/orders/get-an-order"},{"title":"Cancel a working order","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /v1/orders/{order_id}","href":"/api-reference/orders/cancel-a-working-order"},{"title":"Modify a working order","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /v1/orders/{order_id}","href":"/api-reference/orders/modify-a-working-order"},{"title":"Update TP/SL attached to a resting limit or stop entry","deprecated":null,"version":null,"openapi":"/openapi.yaml put /v1/orders/{order_id}/attached-exits","href":"/api-reference/orders/update-tpsl-attached-to-a-resting-limit-or-stop-entry"}]},{"group":"Fills","pages":[{"title":"List fills in settlement order","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/fills","href":"/api-reference/fills/list-fills-in-settlement-order"}]},{"group":"Strategy Orders","pages":[{"title":"List active or historical TWAP and VWAP orders","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/twap-orders","href":"/api-reference/strategy-orders/list-active-or-historical-twap-and-vwap-orders"},{"title":"Create a TWAP or VWAP order","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/twap-orders","href":"/api-reference/strategy-orders/create-a-twap-or-vwap-order"},{"title":"Get a TWAP or VWAP order","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/twap-orders/{twap_order_id}","href":"/api-reference/strategy-orders/get-a-twap-or-vwap-order"},{"title":"Stop future TWAP or VWAP slices","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /v1/twap-orders/{twap_order_id}","href":"/api-reference/strategy-orders/stop-future-twap-or-vwap-slices"},{"title":"List scaled-order parents","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/scaled-orders","href":"/api-reference/strategy-orders/list-scaled-order-parents"},{"title":"Create a scaled price ladder","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/scaled-orders","href":"/api-reference/strategy-orders/create-a-scaled-price-ladder"},{"title":"Get a scaled order and its rungs","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/scaled-orders/{scaled_order_id}","href":"/api-reference/strategy-orders/get-a-scaled-order-and-its-rungs"},{"title":"Cancel a scaled order and its working rungs","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /v1/scaled-orders/{scaled_order_id}","href":"/api-reference/strategy-orders/cancel-a-scaled-order-and-its-working-rungs"}]}]}]}]},"title":"Cancel all working orders - MyFundedPerps Documentation","buildId":"dpl_cadrRc5H9XQiJQbDFN5mcYRs2PAj","deploymentId":"dpl_cadrRc5H9XQiJQbDFN5mcYRs2PAj","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-DKJwRUt2.js","utils-CWD_VS3u.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-oFjciODD.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-C76WsxC3.js","snippetPresets-DvPMxpX_.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-CuNQfndH.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-BVFpVUoF.js","shallow-t59Jg5Kr.js","getApiPlaygroundDisplay-C_JZ4amX.js","CodeSnippet-CLRDnx_h.js","CodeSnippets-C2myU4kc.js","Page-7TwLLapg.js","getPastedJson-B-JaVXw7.js","icon-BA-iDhH3.js","MethodPill-D4qZABFp.js","DuplicateIcon-THIDKO1O.js","createIcon-CYYJwgFd.js","DynamicMarkdown-UGQuxDKp.js","SectionHeading-jYELb23h.js","axios-vUo_bRtp.js","Markdown-DKsLa3wy.js","clsx-CefdjKz2.js","lib--scc4DXi.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-BaREnp3o.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-sgx_0XzF.js"]}