Places an order into the account or subaccount identified by accountId in
the path.
The accountId may be either an account ID or a subaccount ID.
Subaccounts are treated exactly like accounts for order placement,
and account and subaccount IDs are globally unique, so the kind of
ID provided is recognized automatically.
Accounts are one of two types, both of which can have subaccounts:
OMNIBUS: orders may book at the account level.
FBO: nothing can be done at the account level. Every order
must land in a subaccount, either by placing it with a subaccount
ID or by fully allocating it via the allocations field.
The kind of ID determines which fields are allowed in the request
body:
Account ID: the order may be split across subaccounts via the
allocations field. For OMNIBUS accounts allocations is
optional: when omitted, the entire order books directly into the
account. For FBO accounts allocations is required. Spec lot
IDs, if used, are provided per allocation. The order-level
specLotId must not be specified.
Subaccount ID: the order books directly into that subaccount
(valid for both OMNIBUS and FBO accounts). The allocations field
must not be specified. A spec lot ID, if used, is provided via the
order-level specLotId.
Rejections. A request that passes schema validation but breaks a
business rule returns the listed status with a message of the
form <rejectCode>: <detail>, where <rejectCode> is one of the
rejectCode values of the Order schema. A request that fails
schema validation, such as a malformed field, returns 400 with
the validator’s message and no code.
See the rejectCode description of the Order schema for which
rejections, such as INSUFFICIENT_BALANCE and DUPLICATE_ORDER,
are returned synchronously. An Idempotency-Key reused with a
different request body also returns 409.
Client-supplied key that deduplicates retried requests. Reusing a key returns the original result instead of repeating the action.
Api-Signature
string
required
A hex-encoded Ed25519 signature of timestamp_epoch_seconds + uppercase(http_method) + request_path + request_body.
Pattern: ^[0-9A-Fa-f]{128,160}$
Api-Timestamp
integer<int64>
required
Current timestamp, represented as unix epoch seconds
Path Parameters
accountId
string<uuid>
required
Account ID or subaccount ID (a UUID) for this order to book into. See the endpoint description for how this affects the allowed request body fields. An unknown ID is rejected with a 400 and code INVALID_ACCOUNT.
Example:
"3486b413-93d3-4447-afce-2b9c9dc34a32"
Body
application/json
symbol
string
required
Symbol for the order, e.g. BTC-USD.
Pattern: ^[A-Z0-9_]+-[A-Z0-9_]+$
side
enum<string>
required
Order side, either "BUY" or "SELL".
Available options:
BUY,
SELL
currency
string
required
The currency in which order quantity is specified in, e.g. BTC
or USD. Must be one of the two legs of symbol.
For FOK orders, a BUY must specify the quote currency
(e.g. USD for BTC-USD) and a SELL must specify the base
currency (e.g. BTC for BTC-USD). Violations are rejected with
INVALID_CURRENCY_FOR_FOK.
For STOP_LOSS orders, currency must be the base currency
of symbol (e.g. BTC for BTC-USD).
For all other time-in-force values and order types, either
leg may be used.
quantity
string
required
Order quantity in units of currency, as a positive decimal number encoded as a string.
Pattern: ^\d+(\.\d+)?$
orderType
enum<string>
default:MARKET
required
Order type. One of:
MARKET - executes immediately at the best available price,
with a maximum slippage of 5% from the current market price.
Always executed with IOC time in force: whatever can be filled
within the slippage bound is executed immediately and the
remainder is canceled. limitPrice must not be specified.
LIMIT - executes at limitPrice or better. limitPrice is
required.
STOP_LOSS - dormant until the market reaches triggerPrice,
then submitted as a market order. Used to limit losses on an
existing position. triggerPrice is required; limitPrice must
not be specified. Execution price is not guaranteed. Must be a
SELL with quantity in the base currency of symbol; any
other side or currency leg is rejected.
STOP_LIMIT - dormant until the market reaches triggerPrice,
then submitted as a limit order at limitPrice. Both
triggerPrice and limitPrice are required. Unlike
STOP_LOSS, execution price is bounded by limitPrice, but the
order may not fill if the market moves through it.
TAKE_PROFIT_LIMIT - dormant until the market reaches
triggerPrice in the profitable direction, then submitted as a
limit order at limitPrice. Used to lock in gains on an
existing position. Both triggerPrice and limitPrice are
required.
Available options:
MARKET,
LIMIT,
STOP_LOSS,
STOP_LIMIT,
TAKE_PROFIT_LIMIT
timestamp
string<date-time>
required
Timestamp when submitting this order. Date-times are always in UTC RFC 3339 'date-time'.
Example:
"2019-01-02T12:34:56.000Z"
limitPrice
string
Limit price for the order, as a positive decimal number encoded
as a string.
Required for LIMIT, STOP_LIMIT, and TAKE_PROFIT_LIMIT orders.
Must not be specified for MARKET and STOP_LOSS orders.
Pattern: ^\d+(\.\d+)?$
triggerPrice
string
Market price at which a dormant order is triggered and submitted
to the book, as a positive decimal number encoded as a string.
Required for STOP_LOSS, STOP_LIMIT, and TAKE_PROFIT_LIMIT
orders.
Must not be specified for MARKET and LIMIT orders.
For STOP_LOSS, which is always a SELL: triggers when the
market moves against the position, at or below triggerPrice.
For STOP_LIMIT: triggers when the market moves against the
position (at or below triggerPrice for SELL, at or above
for BUY).
For TAKE_PROFIT_LIMIT: triggers when the market moves in
favor of the position (at or above triggerPrice for SELL,
at or below for BUY).
Pattern: ^\d+(\.\d+)?$
timeInForce
enum<string>
How long the order remains active before it is executed or
expires. If not provided, defaults to GTC for all order types
except MARKET, which is always executed as IOC. One of:
FOK (fill or kill) - the order must be fully filled
immediately, otherwise it is canceled with no partial
execution. Note the currency-leg restriction on FOK orders
described under currency.
IOC (immediate or cancel) - any portion that can be filled
immediately is executed, and the remainder is canceled.
GTC (good till canceled) - the order remains active until it
is fully executed or explicitly canceled.
GTD (good till date) - the order remains active until it is
fully executed or expiryTime is reached. expiryTime is required.
MARKET orders are always executed as IOC: for MARKET
orders this field may be omitted or set to IOC; any other value
is rejected.
Available options:
FOK,
IOC,
GTC,
GTD
expiryTime
string<date-time>
Time at which the order expires and is automatically canceled if
not yet fully executed.
Required when timeInForce is GTD.
Must not be specified for any other time in force.
Must be in the future. Date-times are always in UTC RFC 3339
'date-time'.
Example:
"2019-01-02T12:34:56.000Z"
externalId
string
Unique client-assigned external ID, between 1 and 36 characters.
Must be unique among accepted orders: submitting an order with
the externalId of a previously accepted order is rejected
with 409 DUPLICATE_ORDER.
If a previous submission was rejected (e.g. due to a validation
error), its externalId may be reused.
Required string length: 1 - 36
allocations
Order Allocation Request · object[]
Order subaccount allocations: how the order is split across
subaccounts.
Only allowed when the accountId path parameter is an account ID; it
is illegal to provide allocations when accountId is a subaccount ID.
Optional for OMNIBUS accounts: when omitted, the entire
order books at the account level.
Required for FBO accounts, since FBO orders cannot book at
the account level.
If provided, must contain at least one allocation. Note that
to book an entire order into a single subaccount, there are
two equivalent options: place the order with the subaccount ID
in the path (and no allocations), or place it with the account
ID and a single-entry allocations array.
The allocation quantities must sum to the order quantity.
Minimum array length: 1
Show child attributes
specLotId
string
Optional specification lot ID for tax reporting purposes, scoped
to the entire order. When provided, instructs the tax service to
retire the specified lot for this trade.
Only allowed when the accountId path parameter is a subaccount ID.
When accountId is an account ID, use the allocation-level
specLotId instead; the two are mutually exclusive.
Only applicable for SELL orders with timeInForceFOK.
Spec lots cannot be retired on IOC, GTC, or GTD orders,
since the lot can only be assigned when the fill is
all-or-nothing.
MARKET orders execute as IOC and therefore cannot carry one.
Response
Order accepted. Only the order ID and external ID are returned; the client is expected to look up the order's state via the order lookup endpoint.
data
Place Order Result · object
required
Show child attributes
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Anchorage Digital","colors":{"primary":"#5580F6","light":"#5580F6","dark":"#5580F6"},"logo":{"light":"https://mintcdn.com/deployment-4/ikVMLMsizDmk_7Sw/knowledge-base/images/logo-lockup-dark.svg?fit=max\u0026auto=format\u0026n=ikVMLMsizDmk_7Sw\u0026q=85\u0026s=87028c6755f355e278de66991913b91c","dark":"https://mintcdn.com/deployment-4/ikVMLMsizDmk_7Sw/knowledge-base/images/logo-lockup-light.svg?fit=max\u0026auto=format\u0026n=ikVMLMsizDmk_7Sw\u0026q=85\u0026s=1b56e9a2511c5c765bb60eb80f10491d","href":"/"},"favicon":{"light":"https://mintcdn.com/deployment-4/GSah06OFrRxxO1iB/knowledge-base/favicon-symbol.svg?fit=max\u0026auto=format\u0026n=GSah06OFrRxxO1iB\u0026q=85\u0026s=dbc56a4b9970aa0cc3b83e27e2063715","dark":"https://mintcdn.com/deployment-4/GSah06OFrRxxO1iB/knowledge-base/favicon-symbol.svg?fit=max\u0026auto=format\u0026n=GSah06OFrRxxO1iB\u0026q=85\u0026s=dbc56a4b9970aa0cc3b83e27e2063715"},"api":{"playground":{"display":"interactive"},"examples":{"languages":["curl","python","javascript"]}},"appearance":{"default":"system"},"background":{"color":{"light":"#F4F5F5","dark":"#000"}},"navbar":{"links":[{"href":"/knowledge-base/login","label":"Log in"},{"href":"https://www.anchorage.com","label":"Anchorage.com"},{"href":"https://www.anchorage.com/get-in-touch","label":"Contact"}]},"footer":{"socials":{"x":"https://x.com/Anchorage","linkedin":"https://www.linkedin.com/company/anchorage","youtube":"https://www.youtube.com/c/AnchorageDigital"}},"styling":{"eyebrows":"breadcrumbs","latex":true},"errors":{"404":{"redirect":true,"title":"Oops, something went wrong","description":"The content you're looking for is missing. Contact Anchorage Digital for support."}},"contextual":{"options":["claude","mcp","add-mcp","copy","view","assistant","chatgpt","perplexity","grok","aistudio","devin","windsurf","cursor","vscode","devin-mcp"],"display":"header"},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"deployment-4","hasAudioNarration":false,"actualSubdomain":"deployment-4","customDomains":["docs.anchorage.com"],"gitSource":{"_id":"6ad7fa92692c7c940ff17a2f","type":"github","owner":"anchorlabsinc","repo":"knowledge-base","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"knowledge-base","label":""},"feedback":{"agentFeedback":true,"contextualFeedback":{"allowEmail":true},"thumbs":true},"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":"6b00a34d53e410d2fbe5d3fc","clientVersion":"0.0.4270","searchFilterCounts":[{"language":"default","tag":"Anchorage Digital","count":384},{"language":"default","tag":"API reference","count":349},{"language":"default","tag":"v2","count":267},{"language":"default","tag":"Porto","count":249},{"language":"default","tag":"User guides","count":168},{"language":"default","tag":"Developer guides","count":106},{"language":"default","tag":"Trading","count":85},{"language":"default","tag":"Move money","count":84},{"language":"default","tag":"Platform","count":68},{"language":"default","tag":"v4","count":61}],"searchSettings":{"isFiltersEnabled":true}},"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":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"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":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"knowledge-base/custom.css","href":"/_mintlify/custom/deployment-4/3851477207c6fc6b/knowledge-base/custom.css"}]}
{"page":{"pagePath":"knowledge-base/api-reference/v4/orders-\u0026-allocations/place-an-order","slug":"/knowledge-base/api-reference/v4/orders-\u0026-allocations/place-an-order","pageMetadata":{"title":"Place an order","description":"Permissions required: **Execute trades**\n\nPlaces an order into the account or subaccount identified by `accountId` in\nthe path.\n\nThe `accountId` may be either an **account ID** or a **subaccount ID**.\nSubaccounts are treated exactly like accounts for order placement,\nand account and subaccount IDs are globally unique, so the kind of\nID provided is recognized automatically.\n\nAccounts are one of two types, both of which can have subaccounts:\n- **OMNIBUS**: orders may book at the account level.\n- **FBO**: nothing can be done at the account level. Every order\n must land in a subaccount, either by placing it with a subaccount\n ID or by fully allocating it via the `allocations` field.\n\nThe kind of ID determines which fields are allowed in the request\nbody:\n- **Account ID**: the order may be split across subaccounts via the\n `allocations` field. For **OMNIBUS** accounts `allocations` is\n optional: when omitted, the entire order books directly into the\n account. For **FBO** accounts `allocations` is required. Spec lot\n IDs, if used, are provided per allocation. The order-level\n `specLotId` must not be specified.\n- **Subaccount ID**: the order books directly into that subaccount\n (valid for both OMNIBUS and FBO accounts). The `allocations` field\n must not be specified. A spec lot ID, if used, is provided via the\n order-level `specLotId`.\n\nRejections. A request that passes schema validation but breaks a\nbusiness rule returns the listed status with a `message` of the\nform `\u003crejectCode>: \u003cdetail>`, where `\u003crejectCode>` is one of the\n`rejectCode` values of the Order schema. A request that fails\nschema validation, such as a malformed field, returns 400 with\nthe validator's message and no code.\nSee the `rejectCode` description of the Order schema for which\nrejections, such as `INSUFFICIENT_BALANCE` and `DUPLICATE_ORDER`,\nare returned synchronously. An `Idempotency-Key` reused with a\ndifferent request body also returns 409.","deprecated":null,"version":null,"openapi":"/knowledge-base/openapi/v4.yaml post /accounts/{accountId}/orders","href":"/knowledge-base/api-reference/v4/orders-\u0026-allocations/place-an-order","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 code: \"code\",\n li: \"li\",\n p: \"p\",\n strong: \"strong\",\n ul: \"ul\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsxs(_components.p, {\n children: [\"Permissions required: \", _jsx(_components.strong, {\n children: \"Execute trades\"\n })]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"Places an order into the account or subaccount identified by \", _jsx(_components.code, {\n children: \"accountId\"\n }), \" in\\nthe path.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"The \", _jsx(_components.code, {\n children: \"accountId\"\n }), \" may be either an \", _jsx(_components.strong, {\n children: \"account ID\"\n }), \" or a \", _jsx(_components.strong, {\n children: \"subaccount ID\"\n }), \".\\nSubaccounts are treated exactly like accounts for order placement,\\nand account and subaccount IDs are globally unique, so the kind of\\nID provided is recognized automatically.\"]\n }), \"\\n\", _jsx(_components.p, {\n children: \"Accounts are one of two types, both of which can have subaccounts:\"\n }), \"\\n\", _jsxs(_components.ul, {\n children: [\"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.strong, {\n children: \"OMNIBUS\"\n }), \": orders may book at the account level.\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.strong, {\n children: \"FBO\"\n }), \": nothing can be done at the account level. Every order\\nmust land in a subaccount, either by placing it with a subaccount\\nID or by fully allocating it via the \", _jsx(_components.code, {\n children: \"allocations\"\n }), \" field.\"]\n }), \"\\n\"]\n }), \"\\n\", _jsx(_components.p, {\n children: \"The kind of ID determines which fields are allowed in the request\\nbody:\"\n }), \"\\n\", _jsxs(_components.ul, {\n children: [\"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.strong, {\n children: \"Account ID\"\n }), \": the order may be split across subaccounts via the\\n\", _jsx(_components.code, {\n children: \"allocations\"\n }), \" field. For \", _jsx(_components.strong, {\n children: \"OMNIBUS\"\n }), \" accounts \", _jsx(_components.code, {\n children: \"allocations\"\n }), \" is\\noptional: when omitted, the entire order books directly into the\\naccount. For \", _jsx(_components.strong, {\n children: \"FBO\"\n }), \" accounts \", _jsx(_components.code, {\n children: \"allocations\"\n }), \" is required. Spec lot\\nIDs, if used, are provided per allocation. The order-level\\n\", _jsx(_components.code, {\n children: \"specLotId\"\n }), \" must not be specified.\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.strong, {\n children: \"Subaccount ID\"\n }), \": the order books directly into that subaccount\\n(valid for both OMNIBUS and FBO accounts). The \", _jsx(_components.code, {\n children: \"allocations\"\n }), \" field\\nmust not be specified. A spec lot ID, if used, is provided via the\\norder-level \", _jsx(_components.code, {\n children: \"specLotId\"\n }), \".\"]\n }), \"\\n\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"Rejections. A request that passes schema validation but breaks a\\nbusiness rule returns the listed status with a \", _jsx(_components.code, {\n children: \"message\"\n }), \" of the\\nform \", _jsx(_components.code, {\n children: \"\u003crejectCode>: \u003cdetail>\"\n }), \", where \", _jsx(_components.code, {\n children: \"\u003crejectCode>\"\n }), \" is one of the\\n\", _jsx(_components.code, {\n children: \"rejectCode\"\n }), \" values of the Order schema. A request that fails\\nschema validation, such as a malformed field, returns 400 with\\nthe validator’s message and no code.\\nSee the \", _jsx(_components.code, {\n children: \"rejectCode\"\n }), \" description of the Order schema for which\\nrejections, such as \", _jsx(_components.code, {\n children: \"INSUFFICIENT_BALANCE\"\n }), \" and \", _jsx(_components.code, {\n children: \"DUPLICATE_ORDER\"\n }), \",\\nare returned synchronously. An \", _jsx(_components.code, {\n children: \"Idempotency-Key\"\n }), \" reused with a\\ndifferent request body also returns 409.\"]\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":"Place an order","description":"Permissions required: **Execute trades**\n\nPlaces an order into the account or subaccount identified by `accountId` in\nthe path.\n\nThe `accountId` may be either an **account ID** or a **subaccount ID**.\nSubaccounts are treated exactly like accounts for order placement,\nand account and subaccount IDs are globally unique, so the kind of\nID provided is recognized automatically.\n\nAccounts are one of two types, both of which can have subaccounts:\n- **OMNIBUS**: orders may book at the account level.\n- **FBO**: nothing can be done at the account level. Every order\n must land in a subaccount, either by placing it with a subaccount\n ID or by fully allocating it via the `allocations` field.\n\nThe kind of ID determines which fields are allowed in the request\nbody:\n- **Account ID**: the order may be split across subaccounts via the\n `allocations` field. For **OMNIBUS** accounts `allocations` is\n optional: when omitted, the entire order books directly into the\n account. For **FBO** accounts `allocations` is required. Spec lot\n IDs, if used, are provided per allocation. The order-level\n `specLotId` must not be specified.\n- **Subaccount ID**: the order books directly into that subaccount\n (valid for both OMNIBUS and FBO accounts). The `allocations` field\n must not be specified. A spec lot ID, if used, is provided via the\n order-level `specLotId`.\n\nRejections. A request that passes schema validation but breaks a\nbusiness rule returns the listed status with a `message` of the\nform `\u003crejectCode>: \u003cdetail>`, where `\u003crejectCode>` is one of the\n`rejectCode` values of the Order schema. A request that fails\nschema validation, such as a malformed field, returns 400 with\nthe validator's message and no code.\nSee the `rejectCode` description of the Order schema for which\nrejections, such as `INSUFFICIENT_BALANCE` and `DUPLICATE_ORDER`,\nare returned synchronously. An `Idempotency-Key` reused with a\ndifferent request body also returns 409.","deprecated":null,"version":null,"openapi":"/knowledge-base/openapi/v4.yaml post /accounts/{accountId}/orders","href":"/knowledge-base/api-reference/v4/orders-\u0026-allocations/place-an-order","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"summary":"Place an order","description":"Permissions required: **Execute trades**\n\nPlaces an order into the account or subaccount identified by `accountId` in\nthe path.\n\nThe `accountId` may be either an **account ID** or a **subaccount ID**.\nSubaccounts are treated exactly like accounts for order placement,\nand account and subaccount IDs are globally unique, so the kind of\nID provided is recognized automatically.\n\nAccounts are one of two types, both of which can have subaccounts:\n- **OMNIBUS**: orders may book at the account level.\n- **FBO**: nothing can be done at the account level. Every order\n must land in a subaccount, either by placing it with a subaccount\n ID or by fully allocating it via the `allocations` field.\n\nThe kind of ID determines which fields are allowed in the request\nbody:\n- **Account ID**: the order may be split across subaccounts via the\n `allocations` field. For **OMNIBUS** accounts `allocations` is\n optional: when omitted, the entire order books directly into the\n account. For **FBO** accounts `allocations` is required. Spec lot\n IDs, if used, are provided per allocation. The order-level\n `specLotId` must not be specified.\n- **Subaccount ID**: the order books directly into that subaccount\n (valid for both OMNIBUS and FBO accounts). The `allocations` field\n must not be specified. A spec lot ID, if used, is provided via the\n order-level `specLotId`.\n\nRejections. A request that passes schema validation but breaks a\nbusiness rule returns the listed status with a `message` of the\nform `\u003crejectCode>: \u003cdetail>`, where `\u003crejectCode>` is one of the\n`rejectCode` values of the Order schema. A request that fails\nschema validation, such as a malformed field, returns 400 with\nthe validator's message and no code.\nSee the `rejectCode` description of the Order schema for which\nrejections, such as `INSUFFICIENT_BALANCE` and `DUPLICATE_ORDER`,\nare returned synchronously. An `Idempotency-Key` reused with a\ndifferent request body also returns 409.","operationId":"placeOrder","tags":["Orders \u0026 Allocations"],"parameters":["793cd163-699e-4dc7-b59f-a7780da39bee","eebaeff9-1a3b-4b79-9e0a-95889577f73e","b7f64abd-6ba6-4520-ac2a-0443d33434f0","3046dc36-0303-425e-b0ce-433aea7f2a3d"],"requestBody":"dadaa1dc-880e-42af-87a2-07a15a9b087e","responses":{"201":"60245665-7de0-4037-a011-a54c27ce0573","400":"3ba9f80c-17b0-4f10-ae83-e8f7734dd9e4","401":"b37b49f0-368e-4c64-a79a-86d5299c7733","403":"55746fc3-7141-44f3-b0bb-e34f0b241b4d","409":"86e4e567-f808-4623-a246-a2b481471bf2","429":"8b689169-7c96-4670-86b7-f39df2307490","500":"70eafa60-cfc9-4e9c-a3d2-c63efe922d9e"},"method":"post","type":"path","servers":["5987e378-6a0f-4e8d-8aa1-927add821f2f"],"security":["5c20c00e-303d-410a-8164-9447333641bf"],"path":"/accounts/{accountId}/orders","baseUrlOptions":["https://api.anchorage-staging.com/v4"],"title":"Place an order","codeSamples":[],"requestExampleLanguages":["bash","python","javascript"],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"793cd163-699e-4dc7-b59f-a7780da39bee":{"name":"accountId","in":"path","schema":{"type":"string","format":"uuid","example":"3486b413-93d3-4447-afce-2b9c9dc34a32","isRequired":true,"description":"Account ID or subaccount ID (a UUID) for this order to book into. See the endpoint description for how this affects the allowed request body fields. An unknown ID is rejected with a 400 and code `INVALID_ACCOUNT`.","uniqueKey":"","typeLabel":"string\u003cuuid>"},"required":true,"description":"Account ID or subaccount ID (a UUID) for this order to book into. See the endpoint description for how this affects the allowed request body fields. An unknown ID is rejected with a 400 and code `INVALID_ACCOUNT`."},"eebaeff9-1a3b-4b79-9e0a-95889577f73e":{"name":"Idempotency-Key","in":"header","schema":{"type":"string","isRequired":true,"description":"Client-supplied key that deduplicates retried requests. Reusing a key returns the original result instead of repeating the action.","uniqueKey":"","typeLabel":"string"},"required":true,"description":"Client-supplied key that deduplicates retried requests. Reusing a key returns the original result instead of repeating the action."},"b7f64abd-6ba6-4520-ac2a-0443d33434f0":{"name":"Api-Signature","in":"header","required":true,"schema":{"type":"string","pattern":"^[0-9A-Fa-f]{128,160}$","isRequired":true,"description":"A hex-encoded Ed25519 signature of `timestamp_epoch_seconds + uppercase(http_method) + request_path + request_body`.","uniqueKey":"","typeLabel":"string"},"description":"A hex-encoded Ed25519 signature of `timestamp_epoch_seconds + uppercase(http_method) + request_path + request_body`."},"3046dc36-0303-425e-b0ce-433aea7f2a3d":{"name":"Api-Timestamp","in":"header","required":true,"schema":{"type":"integer","format":"int64","isRequired":true,"description":"Current timestamp, represented as unix epoch seconds","uniqueKey":"","typeLabel":"integer\u003cint64>"},"description":"Current timestamp, represented as unix epoch seconds"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"title":"Place Order Request","type":"object","required":["symbol","side","currency","quantity","orderType","timestamp"],"properties":{"symbol":{"type":"string","pattern":"^[A-Z0-9_]+-[A-Z0-9_]+$","description":"Symbol for the order, e.g. BTC-USD.","isRequired":true,"uniqueKey":"symbol","typeLabel":"string"},"side":{"type":"string","description":"Order side, either \"BUY\" or \"SELL\".","enum":["BUY","SELL"],"isRequired":true,"uniqueKey":"side","typeLabel":"enum\u003cstring>"},"currency":{"type":"string","description":"The currency in which order quantity is specified in, e.g. BTC\nor USD. Must be one of the two legs of `symbol`.\n- For `FOK` orders, a `BUY` must specify the quote currency\n\t(e.g. USD for BTC-USD) and a `SELL` must specify the base\n\tcurrency (e.g. BTC for BTC-USD). Violations are rejected with\n\t`INVALID_CURRENCY_FOR_FOK`.\n- For `STOP_LOSS` orders, `currency` must be the base currency\n\tof `symbol` (e.g. BTC for BTC-USD).\n- For all other time-in-force values and order types, either\n\tleg may be used.","isRequired":true,"uniqueKey":"currency","typeLabel":"string"},"quantity":{"type":"string","pattern":"^\\d+(\\.\\d+)?$","description":"Order quantity in units of currency, as a positive decimal number encoded as a string.","isRequired":true,"uniqueKey":"quantity","typeLabel":"string"},"orderType":{"type":"string","default":"MARKET","description":"Order type. One of:\n* `MARKET` - executes immediately at the best available price,\n\twith a maximum slippage of 5% from the current market price.\n\tAlways executed with `IOC` time in force: whatever can be filled\n\twithin the slippage bound is executed immediately and the\n\tremainder is canceled. `limitPrice` must not be specified.\n* `LIMIT` - executes at `limitPrice` or better. `limitPrice` is\n\trequired.\n* `STOP_LOSS` - dormant until the market reaches `triggerPrice`,\n\tthen submitted as a market order. Used to limit losses on an\n\texisting position. `triggerPrice` is required; `limitPrice` must\n\tnot be specified. Execution price is not guaranteed. Must be a\n\t`SELL` with `quantity` in the base currency of `symbol`; any\n\tother `side` or currency leg is rejected.\n* `STOP_LIMIT` - dormant until the market reaches `triggerPrice`,\n\tthen submitted as a limit order at `limitPrice`. Both\n\t`triggerPrice` and `limitPrice` are required. Unlike\n\t`STOP_LOSS`, execution price is bounded by `limitPrice`, but the\n\torder may not fill if the market moves through it.\n* `TAKE_PROFIT_LIMIT` - dormant until the market reaches\n\t`triggerPrice` in the profitable direction, then submitted as a\n\tlimit order at `limitPrice`. Used to lock in gains on an\n\texisting position. Both `triggerPrice` and `limitPrice` are\n\trequired.","enum":["MARKET","LIMIT","STOP_LOSS","STOP_LIMIT","TAKE_PROFIT_LIMIT"],"isRequired":true,"uniqueKey":"orderType","typeLabel":"enum\u003cstring>"},"timestamp":{"description":"Timestamp when submitting this order. Date-times are always in UTC RFC 3339 'date-time'.","type":"string","format":"date-time","example":"2019-01-02T12:34:56.000Z","isRequired":true,"uniqueKey":"timestamp","typeLabel":"string\u003cdate-time>"},"limitPrice":{"type":"string","pattern":"^\\d+(\\.\\d+)?$","description":"Limit price for the order, as a positive decimal number encoded\nas a string.\n- Required for `LIMIT`, `STOP_LIMIT`, and `TAKE_PROFIT_LIMIT` orders.\n- Must not be specified for `MARKET` and `STOP_LOSS` orders.","uniqueKey":"limitPrice","typeLabel":"string"},"triggerPrice":{"type":"string","pattern":"^\\d+(\\.\\d+)?$","description":"Market price at which a dormant order is triggered and submitted\nto the book, as a positive decimal number encoded as a string.\n- Required for `STOP_LOSS`, `STOP_LIMIT`, and `TAKE_PROFIT_LIMIT`\n\torders.\n- Must not be specified for `MARKET` and `LIMIT` orders.\n- For `STOP_LOSS`, which is always a `SELL`: triggers when the\n\tmarket moves against the position, at or below `triggerPrice`.\n- For `STOP_LIMIT`: triggers when the market moves against the\n\tposition (at or below `triggerPrice` for `SELL`, at or above\n\tfor `BUY`).\n- For `TAKE_PROFIT_LIMIT`: triggers when the market moves in\n\tfavor of the position (at or above `triggerPrice` for `SELL`,\n\tat or below for `BUY`).","uniqueKey":"triggerPrice","typeLabel":"string"},"timeInForce":{"type":"string","description":"How long the order remains active before it is executed or\nexpires. If not provided, defaults to `GTC` for all order types\nexcept `MARKET`, which is always executed as `IOC`. One of:\n* `FOK` (fill or kill) - the order must be fully filled\n\timmediately, otherwise it is canceled with no partial\n\texecution. Note the currency-leg restriction on FOK orders\n\tdescribed under `currency`.\n* `IOC` (immediate or cancel) - any portion that can be filled\n\timmediately is executed, and the remainder is canceled.\n* `GTC` (good till canceled) - the order remains active until it\n\tis fully executed or explicitly canceled.\n* `GTD` (good till date) - the order remains active until it is\n\tfully executed or `expiryTime` is reached. `expiryTime` is required.\n\n`MARKET` orders are always executed as `IOC`: for `MARKET`\norders this field may be omitted or set to `IOC`; any other value\nis rejected.","enum":["FOK","IOC","GTC","GTD"],"uniqueKey":"timeInForce","typeLabel":"enum\u003cstring>"},"expiryTime":{"description":"Time at which the order expires and is automatically canceled if\nnot yet fully executed.\n- Required when `timeInForce` is `GTD`.\n- Must not be specified for any other time in force.\n- Must be in the future. Date-times are always in UTC RFC 3339\n\t'date-time'.","type":"string","format":"date-time","example":"2019-01-02T12:34:56.000Z","uniqueKey":"expiryTime","typeLabel":"string\u003cdate-time>"},"externalId":{"type":"string","minLength":1,"maxLength":36,"description":"Unique client-assigned external ID, between 1 and 36 characters.\n- Must be unique among accepted orders: submitting an order with\n\tthe `externalId` of a previously accepted order is rejected\n\twith 409 `DUPLICATE_ORDER`.\n- If a previous submission was rejected (e.g. due to a validation\n\terror), its `externalId` may be reused.","uniqueKey":"externalId","typeLabel":"string"},"allocations":{"type":"array","minItems":1,"description":"Order subaccount allocations: how the order is split across\nsubaccounts.\n- Only allowed when the `accountId` path parameter is an account ID; it\n\tis illegal to provide allocations when `accountId` is a subaccount ID.\n- Optional for `OMNIBUS` accounts: when omitted, the entire\n\torder books at the account level.\n- Required for `FBO` accounts, since FBO orders cannot book at\n\tthe account level.\n- If provided, must contain at least one allocation. Note that\n\tto book an entire order into a single subaccount, there are\n\ttwo equivalent options: place the order with the subaccount ID\n\tin the path (and no allocations), or place it with the account\n\tID and a single-entry `allocations` array.\n- The allocation quantities must sum to the order `quantity`.","items":{"title":"Order Allocation Request","type":"object","description":"A portion of the order allocated to a subaccount. Only allowed when the `accountId` path parameter is an account ID.","required":["subaccountId","quantity"],"properties":{"subaccountId":{"description":"The subaccount identifier (a UUID).","type":"string","format":"uuid","example":"3486b413-93d3-4447-afce-2b9c9dc34a32","isRequired":true,"uniqueKey":"allocations.items.[INDEX].subaccountId","typeLabel":"string\u003cuuid>"},"quantity":{"type":"string","pattern":"^\\d+(\\.\\d+)?$","description":"Quantity to allocate to the subaccount, in the same currency as the order `quantity`, as a positive decimal number encoded as a string.","isRequired":true,"uniqueKey":"allocations.items.[INDEX].quantity","typeLabel":"string"},"specLotId":{"type":"string","description":"Optional specification lot ID for tax reporting purposes, scoped\nto this allocation. When provided, instructs the tax service to\nretire the specified lot for this allocation's portion of the\ntrade.\n- Only applicable for `SELL` orders with `timeInForce` `FOK`.\n\tSpec lots cannot be retired on `IOC`, `GTC`, or `GTD` orders,\n\tsince the lot can only be assigned when the fill is\n\tall-or-nothing.\n\t`MARKET` orders execute as `IOC` and therefore cannot carry one.\n- Mutually exclusive with the order-level `specLotId`.","uniqueKey":"allocations.items.[INDEX].specLotId","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"allocations.items.[INDEX]","typeLabel":"Order Allocation Request · object"},"uniqueKey":"allocations","typeLabel":"Order Allocation Request · object[]"},"specLotId":{"type":"string","description":"Optional specification lot ID for tax reporting purposes, scoped\nto the entire order. When provided, instructs the tax service to\nretire the specified lot for this trade.\n- Only allowed when the `accountId` path parameter is a subaccount ID.\n\tWhen `accountId` is an account ID, use the allocation-level\n\t`specLotId` instead; the two are mutually exclusive.\n- Only applicable for `SELL` orders with `timeInForce` `FOK`.\n\tSpec lots cannot be retired on `IOC`, `GTC`, or `GTD` orders,\n\tsince the lot can only be assigned when the fill is\n\tall-or-nothing.\n\t`MARKET` orders execute as `IOC` and therefore cannot carry one.","uniqueKey":"specLotId","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"","typeLabel":"Place Order Request · object"},"examples":{"marketOrder":{"title":"marketOrder","summary":"Market buy order","value":{"symbol":"BTC-USD","side":"BUY","currency":"USD","quantity":"15000.00","orderType":"MARKET","externalId":"0a3f9c1e-8b7d-4c2a-9e5f-6d1b2a3c4d5e","timestamp":"2026-08-11T14:30:00Z"}},"limitOrder":{"title":"limitOrder","summary":"Limit sell order (accountId is a subaccount ID)","value":{"symbol":"BTC-USD","side":"SELL","currency":"BTC","quantity":"1.5","orderType":"LIMIT","limitPrice":"65000.00","timeInForce":"GTD","expiryTime":"2026-08-18T00:00:00Z","externalId":"7e2d4b6a-1c3f-4a5e-8b9d-0f1e2d3c4b5a","timestamp":"2026-08-11T14:31:00Z"}},"stopLimitOrder":{"title":"stopLimitOrder","summary":"Stop-limit sell order","value":{"symbol":"BTC-USD","side":"SELL","currency":"BTC","quantity":"0.5","orderType":"STOP_LIMIT","limitPrice":"59500.00","triggerPrice":"60000.00","timeInForce":"GTC","externalId":"3c1b5d7f-9e2a-4b6c-8d0e-1f2a3b4c5d6e","timestamp":"2026-08-11T14:32:00Z"}},"allocatedOrder":{"title":"allocatedOrder","summary":"Market sell allocated across subaccounts (accountId is an account ID)","value":{"symbol":"BTC-USD","side":"SELL","currency":"BTC","quantity":"1.0","orderType":"MARKET","timeInForce":"IOC","externalId":"5b8e2f4d-6a1c-4e9b-b3d7-2c4e6f8a0b1c","timestamp":"2026-08-11T14:33:00Z","allocations":[{"subaccountId":"7d1e3f5a-2b4c-4d6e-8f0a-1c2e3a4b5c6d","quantity":"0.6"},{"subaccountId":"2a4c6e8f-1b3d-4f5a-9c7e-2d4f6a8b0c1e","quantity":"0.4"}]}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"60245665-7de0-4037-a011-a54c27ce0573":{"description":"Order accepted. Only the order ID and external ID are returned; the client is expected to look up the order's state via the order lookup endpoint.","headers":{"Location":{"description":"Path of the created order.","schema":{"type":"string","example":"/accounts/9f8e7d6c-5b4a-4c3d-9e2f-1a0b9c8d7e6f/orders/a94c8d75-6c9d-4903-95f3-5b0893e76cb7"}}},"content":{"application/json":{"schema":{"title":"Place Order Response","type":"object","required":["data"],"properties":{"data":{"title":"Place Order Result","type":"object","required":["id"],"properties":{"id":{"description":"Unique order ID (a UUID), assigned when the order is accepted. Use this to look up the order's state via the order lookup endpoint.","type":"string","format":"uuid","example":"3486b413-93d3-4447-afce-2b9c9dc34a32","isRequired":true,"uniqueKey":"data.id","typeLabel":"string\u003cuuid>"},"externalId":{"type":"string","description":"External ID echoed from the request.","uniqueKey":"data.externalId","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data","typeLabel":"Place Order Result · object"}},"uniqueKey":"","typeLabel":"Place Order Response · object"},"examples":{"accepted":{"title":"accepted","summary":"Order accepted","value":{"data":{"id":"a94c8d75-6c9d-4903-95f3-5b0893e76cb7","externalId":"0a3f9c1e-8b7d-4c2a-9e5f-6d1b2a3c4d5e"}}}},"exampleType":"examples"}},"exampleType":"examples"},"3ba9f80c-17b0-4f10-ae83-e8f7734dd9e4":{"description":"Bad Request","content":{"application/json":{"schema":{"title":"ErrorDetails","type":"object","properties":{"message":{"description":"A human-readable message providing more details about the error.","example":"Missing required field 'amount'.","type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"required":["message"],"uniqueKey":"","typeLabel":"ErrorDetails · object"},"examples":{"Example":{"title":"Example","value":{"message":"Missing required field 'amount'."}}},"exampleType":"generated"}},"exampleType":"generated"},"b37b49f0-368e-4c64-a79a-86d5299c7733":{"description":"Unauthenticated","content":{"application/json":{"schema":{"title":"ErrorDetails","type":"object","properties":{"message":{"description":"A human-readable message providing more details about the error.","example":"Missing required field 'amount'.","type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"required":["message"],"uniqueKey":"","typeLabel":"ErrorDetails · object"},"examples":{"Example":{"title":"Example","value":{"message":"Missing required field 'amount'."}}},"exampleType":"generated"}},"exampleType":"generated"},"55746fc3-7141-44f3-b0bb-e34f0b241b4d":{"description":"Forbidden","content":{"application/json":{"schema":{"title":"ErrorDetails","type":"object","properties":{"message":{"description":"A human-readable message providing more details about the error.","example":"Missing required field 'amount'.","type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"required":["message"],"uniqueKey":"","typeLabel":"ErrorDetails · object"},"examples":{"Example":{"title":"Example","value":{"message":"Missing required field 'amount'."}}},"exampleType":"generated"}},"exampleType":"generated"},"86e4e567-f808-4623-a246-a2b481471bf2":{"description":"Conflict","content":{"application/json":{"schema":{"title":"ErrorDetails","type":"object","properties":{"message":{"description":"A human-readable message providing more details about the error.","example":"Missing required field 'amount'.","type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"required":["message"],"uniqueKey":"","typeLabel":"ErrorDetails · object"},"examples":{"Example":{"title":"Example","value":{"message":"Missing required field 'amount'."}}},"exampleType":"generated"}},"exampleType":"generated"},"8b689169-7c96-4670-86b7-f39df2307490":{"description":"Too Many Requests","content":{"application/json":{"schema":{"title":"ErrorDetails","type":"object","properties":{"message":{"description":"A human-readable message providing more details about the error.","example":"Missing required field 'amount'.","type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"required":["message"],"uniqueKey":"","typeLabel":"ErrorDetails · object"},"examples":{"Example":{"title":"Example","value":{"message":"Missing required field 'amount'."}}},"exampleType":"generated"}},"exampleType":"generated"},"70eafa60-cfc9-4e9c-a3d2-c63efe922d9e":{"description":"Internal Server Error","content":{"application/json":{"schema":{"title":"ErrorDetails","type":"object","properties":{"message":{"description":"A human-readable message providing more details about the error.","example":"Missing required field 'amount'.","type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"required":["message"],"uniqueKey":"","typeLabel":"ErrorDetails · object"},"examples":{"Example":{"title":"Example","value":{"message":"Missing required field 'amount'."}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"5c20c00e-303d-410a-8164-9447333641bf":{"Api-Access-Key":{"type":"apiKey","name":"Api-Access-Key","in":"header","description":"An API key associated with a security role","scopes":[],"schemeName":"Api-Access-Key"}}},"servers":{"5987e378-6a0f-4e8d-8aa1-927add821f2f":{"url":"https://api.anchorage-staging.com/v4"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","name":"Api-Access-Key","in":"header","description":"An API key associated with a security role","scopes":[],"schemeName":"Api-Access-Key"},"schema":{"title":"Api-Access-Key","type":"string","description":"An API key associated with a security role","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"Api-Access-Key","name":"Api-Access-Key"}],"title":"Api-Access-Key"}]},"originalFileLocation":"knowledge-base/openapi/v4.yaml"},"subdomain":"deployment-4","siteName":"Anchorage Digital","title":"Place an order - Anchorage Digital","relatedPagesConfig":{"enabled":true,"limit":5,"mode":"automatic"},"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{},"searchTabScopes":[{"product":"Anchorage Digital","tab":"User guides"},{"product":"Anchorage Digital","tab":"Developer guides"},{"product":"Anchorage Digital","tab":"API reference"},{"product":"Anchorage Digital","tab":"Build with AI"},{"product":"Porto","tab":"User guides"},{"product":"Porto","tab":"Developer guides"},{"product":"Porto","tab":"API reference"},{"product":"Porto","tab":"Build with AI"},{"product":"Agentic Banking","tab":"Guides"},{"product":"Agentic Banking","tab":"Changelog"}]},"lastModified":"2026-11-12T19:01:03.122Z","originalFileLocation":"knowledge-base/api-reference/v4/orders-\u0026-allocations/place-an-order.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=\"Permissions required: Execute trades Places an order into the account or subaccount identified by accountId in the path. The accountId may be either an account ID or a subaccount ID. Subaccounts are treated exactly like accounts for order placement, and account and subaccount IDs are globally unique, so the kind of ID provided is recognized automatically. Accounts are one of two types, both of which can have subaccounts: - OMNIBUS: orders may book at the account level. - FBO: nothing can be done at the account level. Every order must land in a subaccount, either by placing it with a subaccount ID or by fully allocating it via the allocations field. The kind of ID determines which fields are allowed in the request body: - Account ID: the order may be split across subaccounts via the allocations field. For OMNIBUS accounts allocations is optional: when omitted, the entire order books directly into the account. For FBO accounts allocations is required. Spec lot IDs, if used, are provided per allocation. The order-level specLotId must not be specified. - Subaccount ID: the order books directly into that subaccount (valid for both OMNIBUS and FBO accounts). The allocations field must not be specified. A spec lot ID, if used, is provided via the order-level specLotId. Rejections. A request that passes schema validation but breaks a business rule returns the listed status with a message of the form : , where is one of the rejectCode values of the Order schema. A request that fails schema validation, such as a malformed field, returns 400 with the validator\u0026#x27;s message and no code. See the rejectCode description of the Order schema for which rejections, such as INSUFFICIENT_BALANCE and DUPLICATE_ORDER, are returned synchronously. An Idempotency-Key reused with a different request body also returns 409.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Anchorage Digital\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/svg+xml\" sizes=\"180x180\" href=\"https://mintcdn.com/deployment-4/GSah06OFrRxxO1iB/knowledge-base/favicon-symbol.svg?fit=max\u0026amp;auto=format\u0026amp;n=GSah06OFrRxxO1iB\u0026amp;q=85\u0026amp;s=dbc56a4b9970aa0cc3b83e27e2063715\">\u003clink data-mint-head rel=\"icon\" type=\"image/svg+xml\" sizes=\"32x32\" href=\"https://mintcdn.com/deployment-4/GSah06OFrRxxO1iB/knowledge-base/favicon-symbol.svg?fit=max\u0026amp;auto=format\u0026amp;n=GSah06OFrRxxO1iB\u0026amp;q=85\u0026amp;s=dbc56a4b9970aa0cc3b83e27e2063715\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/svg+xml\" sizes=\"16x16\" href=\"https://mintcdn.com/deployment-4/GSah06OFrRxxO1iB/knowledge-base/favicon-symbol.svg?fit=max\u0026amp;auto=format\u0026amp;n=GSah06OFrRxxO1iB\u0026amp;q=85\u0026amp;s=dbc56a4b9970aa0cc3b83e27e2063715\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/svg+xml\" href=\"https://mintcdn.com/deployment-4/GSah06OFrRxxO1iB/knowledge-base/favicon-symbol.svg?fit=max\u0026amp;auto=format\u0026amp;n=GSah06OFrRxxO1iB\u0026amp;q=85\u0026amp;s=dbc56a4b9970aa0cc3b83e27e2063715\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/svg+xml\" sizes=\"32x32\" href=\"https://mintcdn.com/deployment-4/GSah06OFrRxxO1iB/knowledge-base/favicon-symbol.svg?fit=max\u0026amp;auto=format\u0026amp;n=GSah06OFrRxxO1iB\u0026amp;q=85\u0026amp;s=dbc56a4b9970aa0cc3b83e27e2063715\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/svg+xml\" sizes=\"16x16\" href=\"https://mintcdn.com/deployment-4/GSah06OFrRxxO1iB/knowledge-base/favicon-symbol.svg?fit=max\u0026amp;auto=format\u0026amp;n=GSah06OFrRxxO1iB\u0026amp;q=85\u0026amp;s=dbc56a4b9970aa0cc3b83e27e2063715\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/svg+xml\" href=\"https://mintcdn.com/deployment-4/GSah06OFrRxxO1iB/knowledge-base/favicon-symbol.svg?fit=max\u0026amp;auto=format\u0026amp;n=GSah06OFrRxxO1iB\u0026amp;q=85\u0026amp;s=dbc56a4b9970aa0cc3b83e27e2063715\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Place an order - Anchorage Digital\">\u003cmeta data-mint-head property=\"og:description\" content=\"Permissions required: Execute trades Places an order into the account or subaccount identified by accountId in the path. The accountId may be either an account ID or a subaccount ID. Subaccounts are treated exactly like accounts for order placement, and account and subaccount IDs are globally unique, so the kind of ID provided is recognized automatically. Accounts are one of two types, both of which can have subaccounts: - OMNIBUS: orders may book at the account level. - FBO: nothing can be done at the account level. Every order must land in a subaccount, either by placing it with a subaccount ID or by fully allocating it via the allocations field. The kind of ID determines which fields are allowed in the request body: - Account ID: the order may be split across subaccounts via the allocations field. For OMNIBUS accounts allocations is optional: when omitted, the entire order books directly into the account. For FBO accounts allocations is required. Spec lot IDs, if used, are provided per allocation. The order-level specLotId must not be specified. - Subaccount ID: the order books directly into that subaccount (valid for both OMNIBUS and FBO accounts). The allocations field must not be specified. A spec lot ID, if used, is provided via the order-level specLotId. Rejections. A request that passes schema validation but breaks a business rule returns the listed status with a message of the form : , where is one of the rejectCode values of the Order schema. A request that fails schema validation, such as a malformed field, returns 400 with the validator\u0026#x27;s message and no code. See the rejectCode description of the Order schema for which rejections, such as INSUFFICIENT_BALANCE and DUPLICATE_ORDER, are returned synchronously. An Idempotency-Key reused with a different request body also returns 409.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Anchorage Digital\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.anchorage.com/knowledge-base/api-reference/v4/orders-\u0026amp;-allocations/place-an-order\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://deployment-4.mintlify.site/_mintlify/api/og/v2?division=Orders+and+allocations\u0026amp;title=Place+an+order\u0026amp;description=Permissions+required%3A+**Execute+trades**%0A%0APlaces+an+order+into+the+account+or+subaccount+identified+by+%60accountId%60+in%0Athe+path.%0A%0AThe+%60accountId%60+may+be+either+a\u0026amp;theme=813001ef3ccb97d387d13daf\u0026amp;signature=a21c50b961c5b70f84ee9d3a554b6fbdefc7d77c311a1ba0d099cdc5c923f4f2\">\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=\"Place an order - Anchorage Digital\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Permissions required: Execute trades Places an order into the account or subaccount identified by accountId in the path. The accountId may be either an account ID or a subaccount ID. Subaccounts are treated exactly like accounts for order placement, and account and subaccount IDs are globally unique, so the kind of ID provided is recognized automatically. Accounts are one of two types, both of which can have subaccounts: - OMNIBUS: orders may book at the account level. - FBO: nothing can be done at the account level. Every order must land in a subaccount, either by placing it with a subaccount ID or by fully allocating it via the allocations field. The kind of ID determines which fields are allowed in the request body: - Account ID: the order may be split across subaccounts via the allocations field. For OMNIBUS accounts allocations is optional: when omitted, the entire order books directly into the account. For FBO accounts allocations is required. Spec lot IDs, if used, are provided per allocation. The order-level specLotId must not be specified. - Subaccount ID: the order books directly into that subaccount (valid for both OMNIBUS and FBO accounts). The allocations field must not be specified. A spec lot ID, if used, is provided via the order-level specLotId. Rejections. A request that passes schema validation but breaks a business rule returns the listed status with a message of the form : , where is one of the rejectCode values of the Order schema. A request that fails schema validation, such as a malformed field, returns 400 with the validator\u0026#x27;s message and no code. See the rejectCode description of the Order schema for which rejections, such as INSUFFICIENT_BALANCE and DUPLICATE_ORDER, are returned synchronously. An Idempotency-Key reused with a different request body also returns 409.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://deployment-4.mintlify.site/_mintlify/api/og/v2?division=Orders+and+allocations\u0026amp;title=Place+an+order\u0026amp;description=Permissions+required%3A+**Execute+trades**%0A%0APlaces+an+order+into+the+account+or+subaccount+identified+by+%60accountId%60+in%0Athe+path.%0A%0AThe+%60accountId%60+may+be+either+a\u0026amp;theme=813001ef3ccb97d387d13daf\u0026amp;signature=a21c50b961c5b70f84ee9d3a554b6fbdefc7d77c311a1ba0d099cdc5c923f4f2\">\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=\"https://mintlify.s3.us-west-1.amazonaws.com/deployment-4/_generated/favicon/browserconfig.xml?v=3\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Anchorage Digital\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#5580F6\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.anchorage.com/knowledge-base/api-reference/v4/orders-\u0026amp;-allocations/place-an-order\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/knowledge-base/api-reference/v4/orders-%26-allocations/place-an-order.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.anchorage.com/#organization\",\"name\":\"Anchorage Digital\",\"url\":\"https://docs.anchorage.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/deployment-4/ikVMLMsizDmk_7Sw/knowledge-base/images/logo-lockup-dark.svg?fit=max\u0026auto=format\u0026n=ikVMLMsizDmk_7Sw\u0026q=85\u0026s=87028c6755f355e278de66991913b91c\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.anchorage.com#website\",\"name\":\"Anchorage Digital\",\"url\":\"https://docs.anchorage.com\",\"publisher\":{\"@id\":\"https://docs.anchorage.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.anchorage.com/knowledge-base/api-reference/v4/orders-\u0026-allocations/place-an-order#webpage\",\"url\":\"https://docs.anchorage.com/knowledge-base/api-reference/v4/orders-\u0026-allocations/place-an-order\",\"name\":\"Place an order\",\"description\":\"Permissions required: Execute trades Places an order into the account or subaccount identified by accountId in the path. The accountId may be either an account ID or a subaccount ID. Subaccounts are treated exactly like accounts for order placement, and account and subaccount IDs are globally unique, so the kind of ID provided is recognized automatically. Accounts are one of two types, both of which can have subaccounts: - OMNIBUS: orders may book at the account level. - FBO: nothing can be done at the account level. Every order must land in a subaccount, either by placing it with a subaccount ID or by fully allocating it via the allocations field. The kind of ID determines which fields are allowed in the request body: - Account ID: the order may be split across subaccounts via the allocations field. For OMNIBUS accounts allocations is optional: when omitted, the entire order books directly into the account. For FBO accounts allocations is required. Spec lot IDs, if used, are provided per allocation. The order-level specLotId must not be specified. - Subaccount ID: the order books directly into that subaccount (valid for both OMNIBUS and FBO accounts). The allocations field must not be specified. A spec lot ID, if used, is provided via the order-level specLotId. Rejections. A request that passes schema validation but breaks a business rule returns the listed status with a message of the form : , where is one of the rejectCode values of the Order schema. A request that fails schema validation, such as a malformed field, returns 400 with the validator's message and no code. See the rejectCode description of the Order schema for which rejections, such as INSUFFICIENT_BALANCE and DUPLICATE_ORDER, are returned synchronously. An Idempotency-Key reused with a different request body also returns 409.\",\"dateModified\":\"2026-11-12T19:01:03.122Z\",\"isPartOf\":{\"@id\":\"https://docs.anchorage.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.anchorage.com/knowledge-base/api-reference/v4/orders-\u0026-allocations/place-an-order#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.anchorage.com/knowledge-base/api-reference/v4/orders-\u0026-allocations/place-an-order#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Anchorage Digital\",\"item\":\"https://docs.anchorage.com\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Place an order\",\"item\":\"https://docs.anchorage.com/knowledge-base/api-reference/v4/orders-\u0026-allocations/place-an-order\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.anchorage.com/knowledge-base/api-reference/v4/orders-\u0026-allocations/place-an-order#apireference\",\"headline\":\"Place an order\",\"name\":\"Place an order\",\"description\":\"Permissions required: Execute trades Places an order into the account or subaccount identified by accountId in the path. The accountId may be either an account ID or a subaccount ID. Subaccounts are treated exactly like accounts for order placement, and account and subaccount IDs are globally unique, so the kind of ID provided is recognized automatically. Accounts are one of two types, both of which can have subaccounts: - OMNIBUS: orders may book at the account level. - FBO: nothing can be done at the account level. Every order must land in a subaccount, either by placing it with a subaccount ID or by fully allocating it via the allocations field. The kind of ID determines which fields are allowed in the request body: - Account ID: the order may be split across subaccounts via the allocations field. For OMNIBUS accounts allocations is optional: when omitted, the entire order books directly into the account. For FBO accounts allocations is required. Spec lot IDs, if used, are provided per allocation. The order-level specLotId must not be specified. - Subaccount ID: the order books directly into that subaccount (valid for both OMNIBUS and FBO accounts). The allocations field must not be specified. A spec lot ID, if used, is provided via the order-level specLotId. Rejections. A request that passes schema validation but breaks a business rule returns the listed status with a message of the form : , where is one of the rejectCode values of the Order schema. A request that fails schema validation, such as a malformed field, returns 400 with the validator's message and no code. See the rejectCode description of the Order schema for which rejections, such as INSUFFICIENT_BALANCE and DUPLICATE_ORDER, are returned synchronously. An Idempotency-Key reused with a different request body also returns 409.\",\"url\":\"https://docs.anchorage.com/knowledge-base/api-reference/v4/orders-\u0026-allocations/place-an-order\",\"mainEntityOfPage\":{\"@id\":\"https://docs.anchorage.com/knowledge-base/api-reference/v4/orders-\u0026-allocations/place-an-order#webpage\"},\"dateModified\":\"2026-11-12T19:01:03.122Z\",\"publisher\":{\"@id\":\"https://docs.anchorage.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.anchorage.com#website\"}}]}\u003c/script>","agentPointerHref":"/knowledge-base/api-reference/v4/orders-%26-allocations/place-an-order.md","siteName":"Anchorage Digital","nav":{"global":null,"products":[{"product":"Home","icon":"house","pages":[{"title":"Home","href":"/knowledge-base"}]},{"product":"Anchorage Digital","icon":"https://mintlify.s3.us-west-1.amazonaws.com/deployment-4/knowledge-base/images/icons/anchorage.svg","tabs":[{"tab":"User guides","pages":[{"title":"User guides","href":"/knowledge-base/platform/users/overview"}]},{"tab":"Developer guides","pages":[{"title":"Developer guides","href":"/knowledge-base/platform/developers/setting-up"}]},{"tab":"API reference","menu":[{"item":"v2","pages":[{"title":"v2","href":"/knowledge-base/api-reference/introduction"}]},{"item":"v3","hidden":true,"pages":[{"title":"v3","href":"/knowledge-base/api-reference/v3/introduction"}]},{"item":"v4","groups":[{"group":"Overview","public":true,"icon":"book-open","pages":[{"title":"API reference","href":"/knowledge-base/api-reference/v4/introduction"},{"title":"API deprecation policy","href":"/knowledge-base/api-reference/v4/api-deprecation-policy"}]},{"group":"Accounts","public":true,"icon":"building","pages":[{"title":"List accounts","deprecated":null,"version":null,"openapi":"/knowledge-base/openapi/v4.yaml get /accounts","href":"/knowledge-base/api-reference/v4/accounts/list-accounts"},{"title":"Create accounts","deprecated":null,"version":null,"openapi":"/knowledge-base/openapi/v4.yaml post /accounts","href":"/knowledge-base/api-reference/v4/accounts/create-accounts"},{"title":"Get an account","deprecated":null,"version":null,"openapi":"/knowledge-base/openapi/v4.yaml get /accounts/{accountId}","href":"/knowledge-base/api-reference/v4/accounts/get-an-account"},{"title":"Freeze accounts","deprecated":null,"version":null,"openapi":"/knowledge-base/openapi/v4.yaml post /accounts/freeze","href":"/knowledge-base/api-reference/v4/accounts/freeze-accounts"},{"title":"Unfreeze accounts","deprecated":null,"version":null,"openapi":"/knowledge-base/openapi/v4.yaml post /accounts/unfreeze","href":"/knowledge-base/api-reference/v4/accounts/unfreeze-accounts"},{"title":"Close accounts","deprecated":null,"version":null,"openapi":"/knowledge-base/openapi/v4.yaml post /accounts/close","href":"/knowledge-base/api-reference/v4/accounts/close-accounts"}]},{"group":"Asset types","public":true,"icon":"coins","pages":[{"title":"List Asset Types","deprecated":null,"version":null,"openapi":"/knowledge-base/openapi/v4.yaml get /asset-types","href":"/knowledge-base/api-reference/v4/asset-types/list-asset-types"}]},{"group":"Balances","public":true,"icon":"scale-balanced","pages":[{"title":"List balances","deprecated":null,"version":null,"openapi":"/knowledge-base/openapi/v4.yaml get /accounts/{accountId}/balances","href":"/knowledge-base/api-reference/v4/balances/list-balances"}]},{"group":"Transactions","public":true,"icon":"list-check","pages":[{"title":"List all transactions","deprecated":null,"version":null,"openapi":"/knowledge-base/openapi/v4.yaml get /accounts/{accountId}/transactions","href":"/knowledge-base/api-reference/v4/transactions/list-all-transactions"}]},{"group":"Deposit instructions","public":true,"icon":"arrow-down-to-bracket","pages":[{"title":"Get deposit instructions for an account","deprecated":null,"version":null,"openapi":"/knowledge-base/openapi/v4.yaml get /accounts/{accountId}/deposit-instructions/{assetType}","href":"/knowledge-base/api-reference/v4/deposit-instructions/get-deposit-instructions-for-an-account"}]},{"group":"Deposit attributions","public":true,"icon":"fingerprint","pages":[{"title":"List deposit attributions","deprecated":null,"version":null,"openapi":"/knowledge-base/openapi/v4.yaml get /deposit-attributions/attributions","href":"/knowledge-base/api-reference/v4/deposit-attributions/list-deposit-attributions"},{"title":"Attribute a deposit","deprecated":null,"version":null,"openapi":"/knowledge-base/openapi/v4.yaml patch /deposit-attributions/{depositTransactionId}","href":"/knowledge-base/api-reference/v4/deposit-attributions/attribute-a-deposit"},{"title":"Attribute a deposit as spam","deprecated":null,"version":null,"openapi":"/knowledge-base/openapi/v4.yaml post /deposit-attributions/{depositTransactionId}/spam","href":"/knowledge-base/api-reference/v4/deposit-attributions/attribute-a-deposit-as-spam"}]},{"group":"Trusted destinations","public":true,"icon":"badge-check","pages":[{"title":"List destinations","deprecated":null,"version":null,"openapi":"/knowledge-base/openapi/v4.yaml get /accounts/{accountId}/destinations","href":"/knowledge-base/api-reference/v4/trusted-destinations/list-destinations"},{"title":"Create a destination","deprecated":null,"version":null,"openapi":"/knowledge-base/openapi/v4.yaml post /accounts/{accountId}/destinations","href":"/knowledge-base/api-reference/v4/trusted-destinations/create-a-destination"},{"title":"Get destination","description":"Permissions required: **Read vault activity**\n\nGet a destination. This is also how creation progress is checked: the destination is readable as soon as it is requested, reporting `PENDING` until creation completes.","deprecated":null,"version":null,"openapi":"/knowledge-base/openapi/v4.yaml get /accounts/{accountId}/destinations/{destinationId}","href":"/knowledge-base/api-reference/v4/trusted-destinations/get-destination"}]},{"group":"Orders and allocations","public":true,"icon":"chart-line","pages":[{"title":"Place an order","deprecated":null,"version":null,"openapi":"/knowledge-base/openapi/v4.yaml post /accounts/{accountId}/orders","href":"/knowledge-base/api-reference/v4/orders-\u0026-allocations/place-an-order"},{"title":"List orders","description":"Permissions required: **Read trade activity**\n\nLists orders for the account or subaccount identified by `accountId`, most\nrecently submitted first.\n\nWhen `accountId` is an account ID, orders are returned in the\naccount-level view; use the account allocations endpoint\n(`GET /accounts/{accountId}/allocations`) for the subaccount-scoped\nequivalent of this listing.\n\nWhen `accountId` is a subaccount ID, the list includes orders placed\ndirectly into the subaccount as well as account-level orders\nallocated into it via `allocations`. Each order is returned in the\nsubaccount-scoped view: quantities, fills, and fees are scoped to\nthe subaccount's portion of the order, and `subaccountId` and\n`allocationId` are present. See the Order schema for the two views\nof an order.","deprecated":null,"version":null,"openapi":"/knowledge-base/openapi/v4.yaml get /accounts/{accountId}/orders","href":"/knowledge-base/api-reference/v4/orders-\u0026-allocations/list-orders"},{"title":"Get an order","deprecated":null,"version":null,"openapi":"/knowledge-base/openapi/v4.yaml get /accounts/{accountId}/orders/{orderId}","href":"/knowledge-base/api-reference/v4/orders-\u0026-allocations/get-an-order"},{"title":"Cancel an order","deprecated":null,"version":null,"openapi":"/knowledge-base/openapi/v4.yaml post /accounts/{accountId}/orders/{orderId}/cancel","href":"/knowledge-base/api-reference/v4/orders-\u0026-allocations/cancel-an-order"},{"title":"List allocations","deprecated":null,"version":null,"openapi":"/knowledge-base/openapi/v4.yaml get /accounts/{accountId}/allocations","href":"/knowledge-base/api-reference/v4/orders-\u0026-allocations/list-allocations"}]},{"group":"Withdrawals","public":true,"icon":"money-bill-transfer","pages":[{"title":"Create withdrawals","deprecated":null,"version":null,"openapi":"/knowledge-base/openapi/v4.yaml post /accounts/{accountId}/withdrawals","href":"/knowledge-base/api-reference/v4/withdrawals/create-withdrawals"},{"title":"List withdrawals","deprecated":null,"version":null,"openapi":"/knowledge-base/openapi/v4.yaml get /accounts/{accountId}/withdrawals","href":"/knowledge-base/api-reference/v4/withdrawals/list-withdrawals"},{"title":"Get a withdrawal","deprecated":null,"version":null,"openapi":"/knowledge-base/openapi/v4.yaml get /accounts/{accountId}/withdrawals/{withdrawalId}","href":"/knowledge-base/api-reference/v4/withdrawals/get-a-withdrawal"},{"title":"Cancel a withdrawal","deprecated":null,"version":null,"openapi":"/knowledge-base/openapi/v4.yaml post /accounts/{accountId}/withdrawals/{withdrawalId}/cancel","href":"/knowledge-base/api-reference/v4/withdrawals/cancel-a-withdrawal"}]},{"group":"Approval keys","public":true,"icon":"key","pages":[{"title":"Register an approval key","deprecated":null,"version":null,"openapi":"/knowledge-base/openapi/v4.yaml post /approvers/keys","href":"/knowledge-base/api-reference/v4/approval-groups/register-an-approval-key"},{"title":"List approval keys","deprecated":null,"version":null,"openapi":"/knowledge-base/openapi/v4.yaml get /approvers/keys","href":"/knowledge-base/api-reference/v4/approval-groups/list-approval-keys"},{"title":"Get an approval key","deprecated":null,"version":null,"openapi":"/knowledge-base/openapi/v4.yaml get /approvers/keys/{keyId}","href":"/knowledge-base/api-reference/v4/approval-groups/get-an-approval-key"},{"title":"Archive an approval key","deprecated":null,"version":null,"openapi":"/knowledge-base/openapi/v4.yaml delete /approvers/keys/{keyId}","href":"/knowledge-base/api-reference/v4/approval-groups/archive-an-approval-key"}]},{"group":"Policies","public":true,"icon":"shield-check","pages":[{"title":"Define a policy","deprecated":null,"version":null,"openapi":"/knowledge-base/openapi/v4.yaml post /policies","href":"/knowledge-base/api-reference/v4/policies/define-a-policy"},{"title":"Resolve applicable policies","deprecated":null,"version":null,"openapi":"/knowledge-base/openapi/v4.yaml get /policies","href":"/knowledge-base/api-reference/v4/policies/resolve-applicable-policies"},{"title":"Get a policy","deprecated":null,"version":null,"openapi":"/knowledge-base/openapi/v4.yaml get /policies/{policyId}","href":"/knowledge-base/api-reference/v4/policies/get-a-policy"},{"title":"Archive a policy","deprecated":null,"version":null,"openapi":"/knowledge-base/openapi/v4.yaml delete /policies/{policyId}","href":"/knowledge-base/api-reference/v4/policies/archive-a-policy"}]},{"group":"Approval groups","public":true,"icon":"users","tag":"UNDER CONSTRUCTION","pages":[{"title":"Create an approval group","deprecated":null,"version":null,"openapi":"/knowledge-base/openapi/v4.yaml post /approvers/approval-groups","href":"/knowledge-base/api-reference/v4/approval-groups/create-an-approval-group"},{"title":"List approval groups","deprecated":null,"version":null,"openapi":"/knowledge-base/openapi/v4.yaml get /approvers/approval-groups","href":"/knowledge-base/api-reference/v4/approval-groups/list-approval-groups"},{"title":"Get an approval group","deprecated":null,"version":null,"openapi":"/knowledge-base/openapi/v4.yaml get /approvers/approval-groups/{approvalGroupId}","href":"/knowledge-base/api-reference/v4/approval-groups/get-an-approval-group"},{"title":"Archive an approval group","deprecated":null,"version":null,"openapi":"/knowledge-base/openapi/v4.yaml delete /approvers/approval-groups/{approvalGroupId}","href":"/knowledge-base/api-reference/v4/approval-groups/archive-an-approval-group"}]},{"group":"Endorsements","public":true,"icon":"signature","tag":"UNDER CONSTRUCTION","pages":[{"title":"List actions awaiting endorsement","deprecated":null,"version":null,"openapi":"/knowledge-base/openapi/v4.yaml get /endorsements/actions","href":"/knowledge-base/api-reference/v4/endorsements/list-actions-awaiting-endorsement"},{"title":"Get an action","deprecated":null,"version":null,"openapi":"/knowledge-base/openapi/v4.yaml get /endorsements/actions/{actionId}","href":"/knowledge-base/api-reference/v4/endorsements/get-an-action"},{"title":"Endorse an action","deprecated":null,"version":null,"openapi":"/knowledge-base/openapi/v4.yaml post /endorsements/actions/{actionId}/endorse","href":"/knowledge-base/api-reference/v4/endorsements/endorse-an-action"},{"title":"Reject an action","deprecated":null,"version":null,"openapi":"/knowledge-base/openapi/v4.yaml post /endorsements/actions/{actionId}/reject","href":"/knowledge-base/api-reference/v4/endorsements/reject-an-action"}]},{"group":"Compliance profiles","public":true,"icon":"file-shield","tag":"UNDER CONSTRUCTION","pages":[{"title":"List compliance profiles","deprecated":null,"version":null,"openapi":"/knowledge-base/openapi/v4.yaml get /compliance-profiles","href":"/knowledge-base/api-reference/v4/compliance-profiles/list-compliance-profiles"},{"title":"Create compliance profiles","deprecated":null,"version":null,"openapi":"/knowledge-base/openapi/v4.yaml post /compliance-profiles","href":"/knowledge-base/api-reference/v4/compliance-profiles/create-compliance-profiles"},{"title":"Get a compliance profile","deprecated":null,"version":null,"openapi":"/knowledge-base/openapi/v4.yaml get /compliance-profiles/{profileId}","href":"/knowledge-base/api-reference/v4/compliance-profiles/get-a-compliance-profile"},{"title":"Update a compliance profile","deprecated":null,"version":null,"openapi":"/knowledge-base/openapi/v4.yaml patch /compliance-profiles/{profileId}","href":"/knowledge-base/api-reference/v4/compliance-profiles/update-a-compliance-profile"}]},{"group":"Customers","public":true,"icon":"user-plus","tag":"UNDER CONSTRUCTION","pages":[{"title":"List customers","deprecated":null,"version":null,"openapi":"/knowledge-base/openapi/v4.yaml get /customers","href":"/knowledge-base/api-reference/v4/customers/list-customers"},{"title":"Create customers","deprecated":null,"version":null,"openapi":"/knowledge-base/openapi/v4.yaml post /customers","href":"/knowledge-base/api-reference/v4/customers/create-customers"},{"title":"Get customer","deprecated":null,"version":null,"openapi":"/knowledge-base/openapi/v4.yaml get /customers/{customerId}","href":"/knowledge-base/api-reference/v4/customers/get-customer"},{"title":"Update customer","deprecated":null,"version":null,"openapi":"/knowledge-base/openapi/v4.yaml patch /customers/{customerId}","href":"/knowledge-base/api-reference/v4/customers/update-customer"},{"title":"List customer documents","deprecated":null,"version":null,"openapi":"/knowledge-base/openapi/v4.yaml get /customers/{customerId}/documents","href":"/knowledge-base/api-reference/v4/customers/list-customer-documents"}]},{"group":"Account maintenance","public":true,"icon":"file-invoice-dollar","tag":"UNDER CONSTRUCTION","pages":[{"title":"Update an account","deprecated":null,"version":null,"openapi":"/knowledge-base/openapi/v4.yaml patch /accounts/{accountId}","href":"/knowledge-base/api-reference/v4/accounts/update-an-account"},{"title":"Get account beneficiaries","deprecated":null,"version":null,"openapi":"/knowledge-base/openapi/v4.yaml get /accounts/{accountId}/beneficiaries","href":"/knowledge-base/api-reference/v4/accounts/get-account-beneficiaries"},{"title":"Update account beneficiaries","deprecated":null,"version":null,"openapi":"/knowledge-base/openapi/v4.yaml patch /accounts/{accountId}/beneficiaries","href":"/knowledge-base/api-reference/v4/accounts/update-account-beneficiaries"},{"title":"Get account fee configurations","deprecated":null,"version":null,"openapi":"/knowledge-base/openapi/v4.yaml get /accounts/{accountId}/fee-configs","href":"/knowledge-base/api-reference/v4/accounts/get-account-fee-configurations"},{"title":"Update account fee configurations","deprecated":null,"version":null,"openapi":"/knowledge-base/openapi/v4.yaml patch /accounts/{accountId}/fee-configs","href":"/knowledge-base/api-reference/v4/accounts/update-account-fee-configurations"},{"title":"Update interest enrollment","deprecated":null,"version":null,"openapi":"/knowledge-base/openapi/v4.yaml patch /accounts/{accountId}/interest-enrollment","href":"/knowledge-base/api-reference/v4/accounts/update-interest-enrollment"}]},{"group":"Funding allocations","public":true,"icon":"arrows-split-up-and-left","tag":"UNDER CONSTRUCTION","pages":[{"title":"Fetches a set of filtered transactions allocations","deprecated":null,"version":null,"openapi":"/knowledge-base/openapi/v4.yaml get /accounts/{accountId}/transactions/allocations","href":"/knowledge-base/api-reference/v4/transactions/fetches-a-set-of-filtered-transactions-allocations"},{"title":"Create new allocations","deprecated":null,"version":null,"openapi":"/knowledge-base/openapi/v4.yaml post /accounts/{accountId}/transactions/allocations","href":"/knowledge-base/api-reference/v4/transactions/create-new-allocations"}]},{"group":"Destination removal","public":true,"icon":"trash","tag":"UNDER CONSTRUCTION","pages":[{"title":"Delete destination","deprecated":null,"version":null,"openapi":"/knowledge-base/openapi/v4.yaml delete /accounts/{accountId}/destinations/{destinationId}","href":"/knowledge-base/api-reference/v4/trusted-destinations/delete-destination"}]}]}]},{"tab":"Build with AI","pages":[{"title":"Build with AI","href":"/knowledge-base/build-with-ai/overview"}]}]},{"product":"Porto","icon":"https://mintlify.s3.us-west-1.amazonaws.com/deployment-4/knowledge-base/images/icons/porto.svg","color":{"light":"#ac96ff","dark":"#ac96ff"},"pages":[{"title":"Porto","href":"/knowledge-base/porto/overview"}]},{"product":"Anchorage Digital Wealth (For Advisors)","icon":"building-columns","color":{"light":"#C9A227","dark":"#C9A227"},"hidden":true,"pages":[{"title":"Anchorage Digital Wealth (For Advisors)","href":"/knowledge-base/adw/overview"}]},{"product":"Trading","icon":"chart-line","hidden":true,"pages":[{"title":"Trading","href":"/knowledge-base/a1-trading/developer-guide/overview"}]},{"product":"Agentic Banking","icon":"robot","pages":[{"title":"Agentic Banking","href":"/agentic-banking/overview"}]}]},"basePath":"","title":"Place an order - Anchorage Digital","deploymentId":"dpl_DyXGnKeCjZyA3sUdfMJ7FjkdBefg","buildId":"dpl_DyXGnKeCjZyA3sUdfMJ7FjkdBefg","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CiUHMMOm.js","snippetPresets-BgfXU7Bw.js","utils-DWvOwgy_.js","style-to-object-BY3JEAdk.js","utils-BN7RXSMJ.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-CFw8bq89.js","conditional-requirements-CFM0id0Q.js","cloneDeep-CAwdfOU2.js","_Uint8Array-BJr8e-ZL.js","isObject-FP1Yky1u.js","ApiExamples-XX0UgMZK.js","usePlaygroundInputsStore-DXDFSa1V.js","shallow-CdX5aREi.js","isEqual-CoOaxexF.js","CodeSnippets-Cg2wpzWm.js","CodeSnippet-D_HwgQO_.js","getApiPlaygroundDisplay-CmCoerhe.js","Page-CVJ-f_k1.js","DynamicMarkdown-CQM9Bhbv.js","SectionHeading-DpbrP8nQ.js","icon-BPCgijHy.js","MethodPill-GQ8DuY0c.js","getPastedJson-Cb5mT31m.js","Check2Icon-a7bUI6e8.js","axios-CsQoIw0U.js","Markdown-CX2QY19L.js","AssistantPageLink-CY3bFglh.js","dist-Dl6_zDnT.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}