Sign in and sessions
Exchange a verified partner identity once for a short-lived partner session bearer:- Call
POST /v2/partner/sessionswith noAuthorizationheader. Send{ "idToken", "nonce" }, whereidTokenis the Google ID token from the partner sign-in screen andnonceis that screen’s raw nonce (Google receivesbase64url(SHA-256(raw nonce))without padding). Where partner Cloudflare Access is configured, an empty body with theCf-Access-Jwt-Assertionheader is accepted instead. - On success,
POST /v2/partner/sessionsanswers201with an opaquetokenstarting withedel_ps_,expiresAt,partnerUserId, lowercaseemail, and your activememberships(each withroleandpermissions). Only the SHA-256 hash of the token is stored, and the token is returned only in this response. - Each identity token is single-use. Repeating an exchange with the same identity token answers
401partner_identity_invalid. An uninvited address answers403partner_not_invited. Exchanges are limited to 20 per verified identity every 10 minutes (429withRetry-After). - A session expires 168 hour after its last accepted use, and at most 12 hours after creation. Each accepted request slides the idle deadline forward within that 12-hour limit.
- Send
Authorization: Bearer <token>on partner and organization routes. Each partner user may send up to 120 requests per minute on the organization routes (429withRetry-After). The organization list and market analytics share a second budget of the same size, and sign out has a third. Each budget is counted per API instance.
GET /v2/partner/organizations. This route
accepts a partner session only (edel_ps_...); an organization key answers 403
partner_session_required. Suspended organizations are omitted.
Sign out at any time with DELETE /v2/partner/sessions/current. It revokes the bearer session
immediately and answers 204.
Prospective partners without an active invitation can submit a business access request with
POST /v2/partner/waitlist (unauthenticated, rate-limited per IP).
Organizations, members, roles, and permissions
Read an organization withGET /v2/organizations/:organizationId. Both a partner session
(edel_ps_...) and an organization key (edel_ok_..., up to 120 requests per minute per key, counted per API instance)
may read the organization they belong to.
Make an organization key on the Keys page of the partner dashboard, or with POST /v2/organizations/:organizationId/keys; it needs members_keys write.
List the keys with GET /v2/organizations/:organizationId/keys (the secret is never answered again)
and revoke one with POST /v2/organizations/:organizationId/keys/:keyId/revoke; a revoked key
answers 401 organization_key_revoked on its next request. An organization has at most 20 active keys.
A key reads itself with GET /v2/organization-key: its id, its organization, whether it trades,
and the trading accounts linked to the organization now.
Every member has one role (owner, admin, member) and holds one level (none, read, write) for each of
the five permission groups (sub_accounts, trading_spot, trading_perps, listings_deposits, members_keys, mother_account):
write always includes read on the same group.
- List members: Call
GET /v2/organizations/:organizationId/members. It requiresmembers_keysread, soowner,admin, and amemberwithmembers_keysreadorwritecan list members. Organization keys never holdmembers_keysand are refused. - Set member permissions: Call
PATCH /v2/organizations/:organizationId/members/:memberId/permissionswith a partner session (edel_ps_...) andmembers_keyswrite. Send all five groups inpermissions. Amemberwithmembers_keyswritecannot grant a level above their own. Organization keys answer403organization_role_required. The route can also answer:403organization_owner_protected: anadminor amemberacts on theowner. Only the owner changes the owner’s levels.409organization_member_role_fixed: the target is anowneror anadmin, whose role already holdswriteon all groups.404organization_member_not_found: no member with this ID in this organization.409organization_member_changed: the member changed since you read it. Read it again, then retry.
Named refusals
Authorization refusals on organization routes use closed error codes:
Authentication and feature-flag checks fail with explicit codes too:
- Missing or wrong bearer kind:
401or403partner_session_requiredon session-only routes, or401organization_key_requiredon key-only or unauthenticated calls. - Rejected session bearer:
401partner_session_invalid,partner_session_expired, orpartner_session_revoked. - Rejected organization key:
401organization_key_malformed,organization_key_unknown, ororganization_key_revoked. - Disabled feature:
403feature_disabledwithfeatureFlagnaming the disabled gate.
Invitations
Invitations require a partner session (edel_ps_...) with members_keys write. Organization
keys answer 403 partner_session_required.
- Create: Call
POST /v2/organizations/:organizationId/invitationswithemail,role(adminormember), and, for amemberinvitation, all fivepermissionsgroups (admininvitations omitpermissions). Anowneroradmincan invite anadminor amemberwith any levels; amemberwithmembers_keyswritecan invite only amemberand only within their own levels. Invitations expire after 7 days by default. Existing members answer409organization_member_exists; duplicate open invitations answer409organization_invitation_open_exists. - List: Call
GET /v2/organizations/:organizationId/invitationsto read open invitations, oldest first. Accepted, withdrawn, and expired invitations are omitted. - Withdraw: Call
POST /v2/organizations/:organizationId/invitations/:invitationId/withdrawwith no body to cancel an open invitation. You cannot withdraw an owner invitation (403organization_role_required), and amembercan withdraw only amemberinvitation within their own levels. Unknown or other-organization invitations answer404organization_invitation_not_found; invitations already accepted, withdrawn, or expired answer409organization_invitation_not_open. - Accept at the next sign-in: There is no separate accept route. Each sign-in via
POST /v2/partner/sessionsaccepts the open invitations for the verified email into memberships with the invited role and permissions. A partner user invited to another organization gets that membership at their next sign-in, not at once.
Listing requests and the listing deposit
Listing routes accept either a partner session (edel_ps_...) or an organization key
(edel_ok_...). Reads require listings_deposits read; mutations require listings_deposits write.
- Read listing options: Call
GET /v2/organizations/:organizationId/listing-optionsto read your organization’s verified listing instruments, allowed quote assets, and current venue defaults before submitting a request. To look up verified instruments for a Canton registrar Party ID, callGET /v2/organizations/:organizationId/listing-requests/registrar-instruments. - Create a listing request: Call
POST /v2/organizations/:organizationId/listing-requestswith the spot token and market specification (instrumentAdmin,instrumentId,code,name,decimals,logoUrl,category,quoteAsset, tick/lot/price/quantity limits,listingPriceAtoms,makerReferencePriceAtoms, andnoSecurityClaim: true). You may include an optionaldepositClaim(amount,sentAt,transactionReference) as a statement only; it never counts as a credit. Returns201in statuspending. Limited to 10 requests per hour per organization, counted per API instance (429withRetry-After). - List requests: Call
GET /v2/organizations/:organizationId/listing-requeststo read your organization’s requests, newest first. - Replace a logo: Call
PUT /v2/organizations/:organizationId/listing-requests/:requestId/logowithlogoUrlandreason. Returnsstate: "applied"while pending or before logo copy, orstate: "waiting_operator"once the venue holds the logo. - Read deposit instructions and state: Call
GET /v2/organizations/:organizationId/listing-requests/:requestId/deposit. The response returnsinstructions(custodyParty,instrumentAdmin,instrumentId,decimals,amountNeeded,amountNeededAtoms,amountNeededSource, andreference{ key, value }) plusstate(waiting,partial,offered,confirmed). By default,amountNeededcovers 2 makers at 14 levels per side with the smallest valid order plus a 20% buffer, unless an operator sets a request minimum. Only a Canton transfer tocustodyPartyof the exactamountNeededcounts. The transfer must carry the metadata entry whose key isreference.keyand whose value isreference.value. - Confirm the deposit: After sending the Canton transfer, call
POST /v2/organizations/:organizationId/listing-requests/:requestId/deposit/confirmwith no body. When the venue accepts a matching pending transfer, it answers200withdepositConfirmedAtset. If no matching transfer is ready, it answers409listing_request_deposit_not_confirmed. If a transfer is present while waiting on registrar or operator action, it answers409listing_request_deposit_accept_pending(do not resend the transfer). A decided request answers409listing_request_deposit_closed. Both deposit routes answer503canton_offlinewhen the settlement ledger is unreachable.
Funding
Two reads show what your organization has deposited. Both accept a partner session (edel_ps_...)
or an organization key (edel_ok_...) and require listings_deposits read; without it they answer 403
organization_permission_required naming that group and level. Both sit behind partner_dashboard and partner_listings and
answer 403 feature_disabled while either is off. Today an organization deposits a token only as
the deposit step of one of its listing requests.
- Read the funding summary: Call
GET /v2/organizations/:organizationId/funding. It answers the balance shape:free,used, andtotalmaps keyed by currency code (the token’sinstrumentId), one entry per currency with the same three values,timestampanddatetimeof the read, andinfowithorganizationId,usedSource, and per currency the instrument, the decimals andtotalAtoms,usedAtoms,freeAtoms, andpendingAtoms. Amounts are decimal text in whole token units, never JSON numbers. The whole answer is one read of the database.totalis every deposit the venue accepted.used(usedSourceapproved_listing_requests) is the accepted deposits of your approved listing requests: the market exists and the inventory is committed to its makers.freeis every other accepted deposit (a pending, failed, or refused request).freeistotalminusused, exact in atoms.pendingAtomscounts deposits whose accept is not proven yet; they are in no total.- When the stored deposits cannot form one balance, the route answers
409, never retryable and with no partial balance:organization_funding_decimals_conflict,organization_funding_currency_reserved,organization_funding_currency_ambiguous. An operator resolves it; the deposit history still lists every deposit.
- List the deposits: Call
GET /v2/organizations/:organizationId/deposits. It answers the deposits of your listing requests as transactions of typedeposit, newest first:id,txid(the ledger update that accepted it, ornull),timestamp,datetime,updated,addressFrom(the sender party),addressTo(the venue’s custody party),currency,amount,status, andfeenull, withinfonaming the listing request and the reference the transfer carried (keyedel.finance/listing-request-id).statusispending(stateaccepting),ok(stateaccepted),failed(statefailed).since(epoch milliseconds, inclusive, at most 8640000000000000) andlimit(1 to 100, 50 by default) work as follows: withoutsincethe page is the newest rows; withsinceit is the oldest rows at or aftersince, still newest first.
- Call
GET /v2/organizations/:organizationId/depositswithsince=0. A page withoutsinceis only the latest view. - Send the next call with
sinceset to the newesttimestampof the page you hold, and drop theidvalues you already hold. - Stop when a page brings no new
id. Rows that share one millisecond are ordered byidandsinceis inclusive, so none is skipped as long as fewer thanlimitrows share one millisecond.
Market analytics
CallGET /v2/organizations/:organizationId/market-analytics with a partner session
(edel_ps_...) and listings_deposits read. Organization keys answer 403
partner_session_required.
The response returns organizationId, timestamp, and markets: an array with one row per spot
market created from your organization’s approved listing requests (marketId, symbol matching
GET /v2/markets/{symbol}/stats, quote, and windows 24h, 7d, and all). The 24h and 7d
windows report trades, quoteVolume, and fees as decimal strings in quote. The all window
reports trades, while quoteVolume.all and fees.all are null and listed in unavailable.
Organization keys that trade
A key made withtrade: true (in the body of POST /v2/organizations/:organizationId/keys, or “Trade” on
the Keys page) places and manages orders on the trading accounts linked to its organization, and on
no other account. trade cannot change later: make a new key. Every key, trading or not, reads the
trading state of those accounts. Three flags must be on: api_keys, partner_dashboard and
partner_keys.trade; with one off, every trading route answers 403 feature_disabled with the flag’s name.
- Trade on the v2 routes only: create, create many, cancel, cancel many, cancel all, edit
and edit many, on the
/v2,/v2/spotand/v2/perpspaths./v2/spotneedstrading_spot,/v2/perpsneedstrading_perps, a bare/v2path both; a level too low answers403organization_permission_requiredwith the group. - Read the balance, positions, orders, open orders and trades of a linked account.
- Name the account on every call:
params.accountId(optional on a sub-account-scoped key, where it defaults to the bound sub-account). For an organization-wide key, a missing one answers400invalid_request; an account outside the key’s scope or live links answers403forbidden. - Never: any
/v1route, withdrawals, deposits, transfers, agents, profile, passkeys, KYC and terms (403principal_mismatch). - Before each order command reaches the matching engine, the venue writes one audit row naming the
key; if that row cannot be written the order is refused
503service_degradedand nothing is sent. - Revoking the key or unlinking the account stops the key at its next request. An order already resting stays on the book.
403 forbidden
(principal_mismatch) and the reason in its message:
Organization trading limit
Every key of one organization spends ONE trading budget, shared by all its keys, on the v2 order and read routes and on the markets MCP. The default is 6000 requests per minute; an Edel operator can set another limit for your organization, at most 12000 per minute. A change applies within 5 seconds. A user key keeps its own trader limit.- Over the budget the answer is
429rate_limitedwith theRetry-Afterheader (the seconds until the oldest request of the window leaves it) andinfo.rateLimit:limiter(organization),requestsPerWindowandwindowMs. - The markets MCP checks the key with
GET /v2/organization-keyonce per MCP request, which spends one unit; over the budget the MCP answers the same429andRetry-After. - One exception:
edel_cancel_all_ordersby an organization key costs 2 units, the key check and thePOST /v2/orders/cancel-allthe tool sends with the same key. - An organization key sends one JSON-RPC message per MCP request. A batch array answers
400invalid_requestand spends nothing: send each message as its own request.
Mother account onboarding and Omnibus deposits
Every partner organization designates one corporate Mother Account that holds custody deposits and funds its sub-accounts. Corporate Mother Accounts onboard directly onto the Omnibus custody rail (party_id = null, zero Canton Party allocation cost):
- Provision directly on Omnibus: Call
POST /v2/organizations/:organizationId/mother-account/onboarding/initwith a partner session (edel_ps_...) holdingmother_accountwrite. Provisions the Mother Account directly as active and returns its 10-digit Luhn-checked OmnibusdepositAddresswhen configured (idempotent: returnsalready_provisionedif active). New integrations stop here oncestatusisactiveoralready_provisioned. - Legacy registration paths (not used by new Omnibus integrations): Pre-Omnibus in-flight DFNS registration sessions can still finish via
POST /v2/organizations/:organizationId/mother-account/onboarding/complete, and pre-Omnibus delegated Canton Party sessions can still finalize topology approvals viaPOST /v2/organizations/:organizationId/mother-account/onboarding/party/complete. Neither endpoint is needed aftermother-account/onboarding/initreturnsactiveoralready_provisioned. - Link an existing trading account: Call
GET /v2/organizations/:organizationId/mother-account/link-candidatesto list eligible verified trading accounts owned by your partner email (Omnibus or legacy), thenPOST /v2/organizations/:organizationId/mother-account/linkto designate one as the organization’s Mother Account. - Read Omnibus deposit address and memo: Call
GET /v2/organizations/:organizationId/mother-account/deposit-addresswith a partner session or organization key holdingmother_accountread(organization trading keys can also callGET /v2/accounts/:accountId/deposit-addressdirectly). ReturnscustodyPartyId, the Mother Account’s unique 10-digit Luhn-checked numericmemo, and all supported assets (USDCxand listed Spot tokens) for 0-fee, 1-step direct Canton deposits. Every Canton transfer tocustodyPartyIdmust include the exact 10-digitmemoverbatim; omitting or mistyping the memo can cause unrecoverable delay or permanent loss of funds. - Read Mother Account transfer and Omnibus deposit history: Call
GET /v2/organizations/:organizationId/mother-account/transferswith a partner session holdingmother_accountread(organization trading keys callGET /v2/accounts/:accountId/transfersdirectly). Supportskind,limit, andcursorfilters and includes credited 1-step and 2-step Omnibus deposits alongside withdrawals and internal transfers.
Fee tier and B2B affiliates
- Organization fee tier: Call
GET /v2/organizations/:organizationId/fee-tierwith a partner session (edel_ps_...) or organization key (edel_ok_...) to read the organization’s active VIP fee tier (inherited automatically by active sub-accounts), aggregated 30-day volume across the mother account and sub-accounts, next tier target, and published volume ladder. - Organization B2B affiliates: Call
GET /v2/organizations/:organizationId/affiliateswith a partner session (edel_ps_...) or organization key (edel_ok_...) to read the organization’s B2B affiliate enrollment status, referral code, signup path, approved revenue share in basis points, bound and qualified referral counts, and settled fee-share earnings anchored to the Mother Account.
Sub-accounts
A sub-account is a trading account that your organization owns. It has its own account id under the organization’s mother account (provisioned directly on the zero-CC Omnibus custody rail withparty_id = null, or a legacy linked trading account with a Canton Party). A sub-account has no Canton Party and no signing key of its own:
it is an additional engine account under its mother account, and its balance is kept
separate from the mother account only in the venue ledger.
Only the organization’s mother account can fund a sub-account. Available to partner organizations only. A personal or sub-account trader credential cannot open the
partner transfer routes and answers 403 partner_organization_required. Sub-account routes sit behind
partner_dashboard and partner_sub_accounts, and transfer routes also require partner_sub_account_transfers; when a required flag is off,
the route answers 403 feature_disabled with featureFlag naming it.
Create, list, and delete
Sub-account routes accept either a partner session (edel_ps_...) or an organization key
(edel_ok_...).
- Create: Call
POST /v2/organizations/:organizationId/sub-accountswithsub_accountswriteand body{}(or omit the body). The organization supplies its canonical mother account. ReadmotherAccountIdfromGET /v2/organizations/:organizationIdorGET /v2/partner/organizations. When the ID is null,motherAccountUnavailableReasonnames the condition an operator must resolve. If supplied,parentAccountIdmust equal the canonical ID exactly. Read settled collateral fromGET /v2/organizations/:organizationId/mother-balance. This balance route requires a stored designation. If supplied,motherAccountIdmust match the designation. An unavailable mother returns a named refusal. The route answers201withid(the new sub-account id),parentAccountId,timestamp,datetime, andinfo. A new sub-account starts empty. An optionalIdempotency-Keyheader (1 to 255 characters) makes retries safe: repeating the same key and body answers the original sub-account (201, live or deleted), even after a mother account change. Reusing the key with a different body answers409idempotency_key_conflict. Without the header, eachPOSTcreates a new sub-account. - List: Call
GET /v2/organizations/:organizationId/sub-accountswithsub_accountsreadto list live sub-accounts of the organization, oldest first. - Delete: Call
DELETE /v2/organizations/:organizationId/sub-accounts/:subAccountIdwithsub_accountswrite. The empty rule applies: a sub-account can be deleted only when it holds no open positions, no open orders, no collateral cash or equity, no bad debt, and no non-zero spot asset balance. Any remaining holding answers409sub_account_not_empty. If the engine cannot confirm what the account holds or another transfer or delete holds its lock, the route answers503sub_account_exposure_unavailableand deletes nothing. On success, the route answers200withdeletedAtset ininfo, revokes every active key scoped to that sub-account in the same transaction, and keeps historical rows in the database.
Create a sub-account and its scoped key
- With an owner partner session, create the sub-account and keep the returned
id. - In the same flow, use that session to call
POST /v2/organizations/:organizationId/keys. Pass the newidassubAccountIdand grant the required trading permissions only. Copy the key when it is shown and keep it securely. The key is returned once. - A member with
sub_accountswrite can create the account. Ask the owner to issue the scoped key afterward. The member cannot issue or revoke a scoped key.
Close a sub-account
Use an organization owner partner session. Admins, members and keys receive403 organization_owner_protected.
The partner dashboard, sub-accounts and sub-account transfers flags must all be on.
Call GET /v2/organizations/:organizationId/sub-accounts/:accountId/close for openSpotOrdersCount,
openPerpOrdersCount, armedOrdersCount, openOrdersCount, openPositionsCount, perpPositions,
spotTokens, activeKeysCount, freeBalance, estimatedReturnAmount, collateralAsset,
parentAccountId and state. The armed orders are included in their product totals. Counts include
explicit zeros. Incomplete engine data returns 503 sub_account_exposure_unavailable.
Call POST /v2/organizations/:organizationId/sub-accounts/:accountId/close to close the account.
Send no body. The operation uses the stored mother and does not require an idempotency header.
- Verify the stored mother. A binding conflict returns
409 sub_account_parent_conflictbefore closing starts. - Fence new orders, bulk cancel open spot, perpetual and armed orders, and reconcile racing fills.
- Close each remaining perpetual position with a reduce-only order.
- Wait for fills and holds to settle. Revoke and audit every scoped key, then return all free USDCx to the mother at full precision. A zero balance skips the transfer.
- Delete the account if empty and keep its history. Remaining spot tokens return
409 sub_account_holds_tokenswithinfo.tokens(asset and amount) and actual execution totals ininfo.progress. To finish, sell the tokens using an organization-wide trading key andparams.accountId, then repeat the samePOST.
pending status reports pendingStep and current residuals. Repeat the
same POST after liquidity or settlement changes. Trading remains fenced while close work is unresolved. The operation resumes without repeating settled work.
A completed response has status completed, state deleted and deleted: true. Both results
include cancelledOrdersCount, filledDuringClosureCount, remainingOrdersCount,
remainingPositionsCount, remainingPositions, closedPositionsCount, revokedKeysCount,
returnedAmount, returnedAsset, transferIds and the last credited transferId (null until credited).
filledDuringClosureCount counts existing orders that took a fill during the drain.
Keys and permissions
Organization keys (edel_ok_...) come in two scopes: organization-wide keys and
sub-account-scoped keys. The venue checks live account links on every request with no cache.
- Organization-wide keys: Receive all of the organization’s live linked trading accounts
(mother accounts and live sub-accounts) on each request. Pass
params.accountIdset to the sub-account id on v2 order and read routes: a missingparams.accountIdanswers400invalid_request, and an account id that is not a live link of the organization answers403forbidden(the same answer for an unknown account and another organization’s account). - Sub-account-scoped keys: Pass
subAccountId(a live sub-account’sid) inPOST /v2/organizations/:organizationId/keysto bind a key to that one sub-account:- Owner-only create and revoke: Only an organization
ownerpartner session (edel_ps_...) can create or revoke a sub-account-scoped key. Non-owner members or admins answer403organization_owner_protected; organization keys answer403partner_session_required. A nonexistent, deleted, foreign, or mothersubAccountIdanswers404sub_account_not_found. BothGET /v2/organizations/:organizationId/keysandGET /v2/organization-keyreportsubAccountId, andGET /v2/organization-keylists only that sub-account inaccountIds. - Trading permissions only: Grant at least one trading group (
trading_spotortrading_perps, atreadorwrite) and keepsub_accounts,listings_deposits, andmembers_keysatnone. Any other permission set answers403sub_account_key_scope_refused. - Reads and trades one sub-account only (
params.accountIdoptional): On v2 order and read routes (and markets MCP trading and read tools),params.accountIdis optional and defaults to the boundsubAccountId. Passing any other account id (another sub-account or the mother account), or requesting an order not owned by that sub-account, answers403forbiddennamingaccount_not_linked. - No funding, transfers, or external withdrawals: Because
sub_accountsisnone, calling sub-account management or transfer routes (POST /v2/organizations/:organizationId/transfers,GET /v2/organizations/:organizationId/transfers,POST /v2/organizations/:organizationId/sub-accounts,GET /v2/organizations/:organizationId/sub-accounts, orDELETE /v2/organizations/:organizationId/sub-accounts/:subAccountId) answers403organization_permission_required. CallingPOST /v2/withdrawals, its v1 twin, or MCPedel_withdrawfor the bound sub-account or withoutaccountIdanswers403sub_account_external_transfer_refused, while naming another account such as the mother account answers403forbidden(account_not_linked). - Shared organization rate limit and automatic revoke: Scoped keys count toward the
organization’s 20 active-key limit and spend the same shared organization trading rate
limit (
429rate_limited,info.rateLimit.limiter: "organization") as organization-wide keys. Deleting the sub-account revokes every active key bound to it in the same transaction; the next trading orGET /v2/organization-keyrequest answers401organization_key_revoked.
- Owner-only create and revoke: Only an organization
- Trading requirements: For both organization-wide and scoped keys, placing, editing, or
canceling orders requires
trade: true(set whentrading_spotortrading_perpsiswrite),trading_spotwriteon/v2/spot,trading_perpswriteon/v2/perps, or both on bare/v2, and the flagsapi_keys,partner_dashboard,partner_keys.trade. - Permission group levels: Access to sub-account lifecycle and transfer routes uses the
sub_accountspermission group (held by partner sessions and organization-wide keys, never by sub-account-scoped keys):sub_accountsread: lists live sub-accounts (GET /v2/organizations/:organizationId/sub-accounts) and lists transfers (GET /v2/organizations/:organizationId/transfers).sub_accountswrite(includesread): creates and deletes sub-accounts, and moves money between a mother account and its sub-accounts (POST /v2/organizations/:organizationId/transfers).
Funding and withdrawals
Only the organization’s mother account can fund a sub-account. Available to partner organizations only. Withdrawals to the outside leave from the mother account only.- Fund a sub-account or return funds to the mother: Call
POST /v2/organizations/:organizationId/transfers(transfer) with a partner session (edel_ps_...) or organization key (edel_ok_...),sub_accountswrite, a requiredIdempotency-Keyheader (1 to 255 characters; a missing key answers400idempotency_key_required), and body{ code, amount, fromAccount, toAccount }:codemust be the venue’s collateral asset (for exampleUSDCx). Another asset answers409sub_account_transfer_asset_refused.amountis a positive decimal string (recommended for exact atoms) or finite number within the asset’s decimals.- Only two pairs move:
fromAccountas the mother account totoAccountas one of its own live sub-accounts, andfromAccountas a live sub-account back totoAccountas its own mother account. Each move is one atomic engine operation under the organization’s mother account: both accounts change together or neither changes, and the settlement ledger sees no change. - Only free balance moves. Balance locked in open orders, used as margin, or held by a
pending withdrawal or pending settlement stays. An amount above free balance answers
409transfer_eligibility_insufficientwithinfo.freenaming the amount that can move now. - Replaying the same
Idempotency-Keyand body returns the original result and moves nothing more. Reusing the key with a different body answers409idempotency_key_conflict. - The response (
200) uses the transfer shape (id,timestamp,datetime,currency,amount,fromAccount,toAccount,status,info).statusisok(statecredited),pending(statesubmitted),failed(staterefused). Whenstatusispending(statesubmitted), send the same request with the sameIdempotency-Keyagain to settle it.
- List transfers: Call
GET /v2/organizations/:organizationId/transfers(fetchTransfers) withsub_accountsreadand optionalcode,since(epoch milliseconds, inclusive, at most 8640000000000000),limit(1 to 500, default 100), andaccount(narrows to moves where that account is the sub-account or mother). Moves return newest first;statusfailedmarks a refused move andinfo.refusalReasonnames the refusal. - No external deposit or withdrawal on a sub-account: A sub-account has no external
deposit, deposit address, faucet grant, or external withdrawal. Calling any external transfer
route for a sub-account answers
403sub_account_external_transfer_refused(on/v1deposit and faucet routes,403forbiddenwith that reason in the message) and moves nothing. To withdraw funds outside the venue, first transfer free balance from the sub-account back to its mother account, then withdraw from the mother account’s own free balance. For deposit and faucet routes, V1 returns 403 with code forbidden and names sub_account_external_transfer_refused in safeMessage. V2 returns 403 with code sub_account_external_transfer_refused.
Limits
- Live sub-accounts per organization: The default is 10 per organization. The organization reads return
activeSubAccountCountandactiveSubAccountLimitunder the current policy. The count excludes the mother account and closed sub-accounts. At or above the limit, new creates return409sub_account_limit_reached. A retry with a matching idempotency key can still return its original account. - Venue account bound: Each sub-account opens a venue trader account. When the venue reaches its trader account limit, creation answers
503engine_account_capacity_exceeded(retryable) and creates nothing; retry later. - Organization rate limits: Every key of your organization shares ONE trading rate limit across all linked mother accounts and sub-accounts on v2 order and read routes and the markets MCP (default 6000 requests per minute, operator cap 12000 per minute, updates apply within 5 seconds). On the organization sub-account and transfer routes, each organization key may send up to 120 requests per minute and each partner user up to 120 requests per minute, counted per API instance. Over any budget, the route answers
429rate_limitedwithRetry-After.
Refusals
End-to-end example
Thiscurl flow creates a sub-account, funds it from the mother account, places and cancels a
limit order on the sub-account using params.accountId, returns the funds to the mother
account, and deletes the empty sub-account. Use an organization key with trade: true,
sub_accounts write, and trading_perps write (or trading_spot write for a spot market).