A partner (such as a market maker or token issuer) signs in to act for an organization, never as a trader. Every authorization check runs on the server against the organization bound to your session or organization key.

Sign in and sessions

Exchange a verified partner identity once for a short-lived partner session bearer:
  1. Call POST /v2/partner/sessions with no Authorization header. Send { "idToken", "nonce" }, where idToken is the Google ID token from the partner sign-in screen and nonce is that screen’s raw nonce (Google receives base64url(SHA-256(raw nonce)) without padding). Where partner Cloudflare Access is configured, an empty body with the Cf-Access-Jwt-Assertion header is accepted instead.
  2. On success, POST /v2/partner/sessions answers 201 with an opaque token starting with edel_ps_, expiresAt, partnerUserId, lowercase email, and your active memberships (each with role and permissions). Only the SHA-256 hash of the token is stored, and the token is returned only in this response.
  3. Each identity token is single-use. Repeating an exchange with the same identity token answers 401 partner_identity_invalid. An uninvited address answers 403 partner_not_invited. Exchanges are limited to 20 per verified identity every 10 minutes (429 with Retry-After).
  4. 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.
  5. Send Authorization: Bearer <token> on partner and organization routes. Each partner user may send up to 120 requests per minute on the organization routes (429 with Retry-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.
List your active organization memberships with 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 with GET /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 requires members_keys read, so owner, admin, and a member with members_keys read or write can list members. Organization keys never hold members_keys and are refused.
  • Set member permissions: Call PATCH /v2/organizations/:organizationId/members/:memberId/permissions with a partner session (edel_ps_...) and members_keys write. Send all five groups in permissions. A member with members_keys write cannot grant a level above their own. Organization keys answer 403 organization_role_required. The route can also answer:
    • 403 organization_owner_protected: an admin or a member acts on the owner. Only the owner changes the owner’s levels.
    • 409 organization_member_role_fixed: the target is an owner or an admin, whose role already holds write on all groups.
    • 404 organization_member_not_found: no member with this ID in this organization.
    • 409 organization_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: 401 or 403 partner_session_required on session-only routes, or 401 organization_key_required on key-only or unauthenticated calls.
  • Rejected session bearer: 401 partner_session_invalid, partner_session_expired, or partner_session_revoked.
  • Rejected organization key: 401 organization_key_malformed, organization_key_unknown, or organization_key_revoked.
  • Disabled feature: 403 feature_disabled with featureFlag naming the disabled gate.

Invitations

Invitations require a partner session (edel_ps_...) with members_keys write. Organization keys answer 403 partner_session_required.
  1. Create: Call POST /v2/organizations/:organizationId/invitations with email, role (admin or member), and, for a member invitation, all five permissions groups (admin invitations omit permissions). An owner or admin can invite an admin or a member with any levels; a member with members_keys write can invite only a member and only within their own levels. Invitations expire after 7 days by default. Existing members answer 409 organization_member_exists; duplicate open invitations answer 409 organization_invitation_open_exists.
  2. List: Call GET /v2/organizations/:organizationId/invitations to read open invitations, oldest first. Accepted, withdrawn, and expired invitations are omitted.
  3. Withdraw: Call POST /v2/organizations/:organizationId/invitations/:invitationId/withdraw with no body to cancel an open invitation. You cannot withdraw an owner invitation (403 organization_role_required), and a member can withdraw only a member invitation within their own levels. Unknown or other-organization invitations answer 404 organization_invitation_not_found; invitations already accepted, withdrawn, or expired answer 409 organization_invitation_not_open.
  4. Accept at the next sign-in: There is no separate accept route. Each sign-in via POST /v2/partner/sessions accepts 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.
  1. Read listing options: Call GET /v2/organizations/:organizationId/listing-options to 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, call GET /v2/organizations/:organizationId/listing-requests/registrar-instruments.
  2. Create a listing request: Call POST /v2/organizations/:organizationId/listing-requests with the spot token and market specification (instrumentAdmin, instrumentId, code, name, decimals, logoUrl, category, quoteAsset, tick/lot/price/quantity limits, listingPriceAtoms, makerReferencePriceAtoms, and noSecurityClaim: true). You may include an optional depositClaim (amount, sentAt, transactionReference) as a statement only; it never counts as a credit. Returns 201 in status pending. Limited to 10 requests per hour per organization, counted per API instance (429 with Retry-After).
  3. List requests: Call GET /v2/organizations/:organizationId/listing-requests to read your organization’s requests, newest first.
  4. Replace a logo: Call PUT /v2/organizations/:organizationId/listing-requests/:requestId/logo with logoUrl and reason. Returns state: "applied" while pending or before logo copy, or state: "waiting_operator" once the venue holds the logo.
  5. Read deposit instructions and state: Call GET /v2/organizations/:organizationId/listing-requests/:requestId/deposit. The response returns instructions (custodyParty, instrumentAdmin, instrumentId, decimals, amountNeeded, amountNeededAtoms, amountNeededSource, and reference { key, value }) plus state (waiting, partial, offered, confirmed). By default, amountNeeded covers 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 to custodyParty of the exact amountNeeded counts. The transfer must carry the metadata entry whose key is reference.key and whose value is reference.value.
  6. Confirm the deposit: After sending the Canton transfer, call POST /v2/organizations/:organizationId/listing-requests/:requestId/deposit/confirm with no body. When the venue accepts a matching pending transfer, it answers 200 with depositConfirmedAt set. If no matching transfer is ready, it answers 409 listing_request_deposit_not_confirmed. If a transfer is present while waiting on registrar or operator action, it answers 409 listing_request_deposit_accept_pending (do not resend the transfer). A decided request answers 409 listing_request_deposit_closed. Both deposit routes answer 503 canton_offline when 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, and total maps keyed by currency code (the token’s instrumentId), one entry per currency with the same three values, timestamp and datetime of the read, and info with organizationId, usedSource, and per currency the instrument, the decimals and totalAtoms, usedAtoms, freeAtoms, and pendingAtoms. Amounts are decimal text in whole token units, never JSON numbers. The whole answer is one read of the database.
    • total is every deposit the venue accepted.
    • used (usedSource approved_listing_requests) is the accepted deposits of your approved listing requests: the market exists and the inventory is committed to its makers.
    • free is every other accepted deposit (a pending, failed, or refused request). free is total minus used, exact in atoms.
    • pendingAtoms counts 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 type deposit, newest first: id, txid (the ledger update that accepted it, or null), timestamp, datetime, updated, addressFrom (the sender party), addressTo (the venue’s custody party), currency, amount, status, and fee null, with info naming the listing request and the reference the transfer carried (key edel.finance/listing-request-id). status is pending (state accepting), ok (state accepted), failed (state failed). since (epoch milliseconds, inclusive, at most 8640000000000000) and limit (1 to 100, 50 by default) work as follows: without since the page is the newest rows; with since it is the oldest rows at or after since, still newest first.
free is not a withdrawable balance: no refund or reuse rule exists yet for the accepted deposit of a refused or failed request. It stays in custody until the venue rules on it.
To walk the whole deposit history:
  1. Call GET /v2/organizations/:organizationId/deposits with since=0. A page without since is only the latest view.
  2. Send the next call with since set to the newest timestamp of the page you hold, and drop the id values you already hold.
  3. Stop when a page brings no new id. Rows that share one millisecond are ordered by id and since is inclusive, so none is skipped as long as fewer than limit rows share one millisecond.

Market analytics

Call GET /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 with trade: 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/spot and /v2/perps paths. /v2/spot needs trading_spot, /v2/perps needs trading_perps, a bare /v2 path both; a level too low answers 403 organization_permission_required with 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 answers 400 invalid_request; an account outside the key’s scope or live links answers 403 forbidden.
  • Never: any /v1 route, withdrawals, deposits, transfers, agents, profile, passkeys, KYC and terms (403 principal_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 503 service_degraded and 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.
On the 43 v2 routes a user key may call on its own account, an organization key on a linked account answers the same on 36. The 7 others differ by decision, each with 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 429 rate_limited with the Retry-After header (the seconds until the oldest request of the window leaves it) and info.rateLimit: limiter (organization), requestsPerWindow and windowMs.
  • The markets MCP checks the key with GET /v2/organization-key once per MCP request, which spends one unit; over the budget the MCP answers the same 429 and Retry-After.
  • One exception: edel_cancel_all_orders by an organization key costs 2 units, the key check and the POST /v2/orders/cancel-all the tool sends with the same key.
  • An organization key sends one JSON-RPC message per MCP request. A batch array answers 400 invalid_request and 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/init with a partner session (edel_ps_...) holding mother_account write. Provisions the Mother Account directly as active and returns its 10-digit Luhn-checked Omnibus depositAddress when configured (idempotent: returns already_provisioned if active). New integrations stop here once status is active or already_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 via POST /v2/organizations/:organizationId/mother-account/onboarding/party/complete. Neither endpoint is needed after mother-account/onboarding/init returns active or already_provisioned.
  • Link an existing trading account: Call GET /v2/organizations/:organizationId/mother-account/link-candidates to list eligible verified trading accounts owned by your partner email (Omnibus or legacy), then POST /v2/organizations/:organizationId/mother-account/link to designate one as the organization’s Mother Account.
  • Read Omnibus deposit address and memo: Call GET /v2/organizations/:organizationId/mother-account/deposit-address with a partner session or organization key holding mother_account read (organization trading keys can also call GET /v2/accounts/:accountId/deposit-address directly). Returns custodyPartyId, the Mother Account’s unique 10-digit Luhn-checked numeric memo, and all supported assets (USDCx and listed Spot tokens) for 0-fee, 1-step direct Canton deposits. Every Canton transfer to custodyPartyId must include the exact 10-digit memo verbatim; 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/transfers with a partner session holding mother_account read (organization trading keys call GET /v2/accounts/:accountId/transfers directly). Supports kind, limit, and cursor filters 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-tier with 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/affiliates with 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 with party_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_...).
  1. Create: Call POST /v2/organizations/:organizationId/sub-accounts with sub_accounts write and body {} (or omit the body). The organization supplies its canonical mother account. Read motherAccountId from GET /v2/organizations/:organizationId or GET /v2/partner/organizations. When the ID is null, motherAccountUnavailableReason names the condition an operator must resolve. If supplied, parentAccountId must equal the canonical ID exactly. Read settled collateral from GET /v2/organizations/:organizationId/mother-balance. This balance route requires a stored designation. If supplied, motherAccountId must match the designation. An unavailable mother returns a named refusal. The route answers 201 with id (the new sub-account id), parentAccountId, timestamp, datetime, and info. A new sub-account starts empty. An optional Idempotency-Key header (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 answers 409 idempotency_key_conflict. Without the header, each POST creates a new sub-account.
  2. List: Call GET /v2/organizations/:organizationId/sub-accounts with sub_accounts read to list live sub-accounts of the organization, oldest first.
  3. Delete: Call DELETE /v2/organizations/:organizationId/sub-accounts/:subAccountId with sub_accounts write. 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 answers 409 sub_account_not_empty. If the engine cannot confirm what the account holds or another transfer or delete holds its lock, the route answers 503 sub_account_exposure_unavailable and deletes nothing. On success, the route answers 200 with deletedAt set in info, 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

  1. With an owner partner session, create the sub-account and keep the returned id.
  2. In the same flow, use that session to call POST /v2/organizations/:organizationId/keys. Pass the new id as subAccountId and grant the required trading permissions only. Copy the key when it is shown and keep it securely. The key is returned once.
  3. A member with sub_accounts write 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 receive 403 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.
  1. Verify the stored mother. A binding conflict returns 409 sub_account_parent_conflict before closing starts.
  2. Fence new orders, bulk cancel open spot, perpetual and armed orders, and reconcile racing fills.
  3. Close each remaining perpetual position with a reduce-only order.
  4. 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.
  5. Delete the account if empty and keep its history. Remaining spot tokens return 409 sub_account_holds_tokens with info.tokens (asset and amount) and actual execution totals in info.progress. To finish, sell the tokens using an organization-wide trading key and params.accountId, then repeat the same POST.
A 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.accountId set to the sub-account id on v2 order and read routes: a missing params.accountId answers 400 invalid_request, and an account id that is not a live link of the organization answers 403 forbidden (the same answer for an unknown account and another organization’s account).
  • Sub-account-scoped keys: Pass subAccountId (a live sub-account’s id) in POST /v2/organizations/:organizationId/keys to bind a key to that one sub-account:
    • Owner-only create and revoke: Only an organization owner partner session (edel_ps_...) can create or revoke a sub-account-scoped key. Non-owner members or admins answer 403 organization_owner_protected; organization keys answer 403 partner_session_required. A nonexistent, deleted, foreign, or mother subAccountId answers 404 sub_account_not_found. Both GET /v2/organizations/:organizationId/keys and GET /v2/organization-key report subAccountId, and GET /v2/organization-key lists only that sub-account in accountIds.
    • Trading permissions only: Grant at least one trading group (trading_spot or trading_perps, at read or write) and keep sub_accounts, listings_deposits, and members_keys at none. Any other permission set answers 403 sub_account_key_scope_refused.
    • Reads and trades one sub-account only (params.accountId optional): On v2 order and read routes (and markets MCP trading and read tools), params.accountId is optional and defaults to the bound subAccountId. Passing any other account id (another sub-account or the mother account), or requesting an order not owned by that sub-account, answers 403 forbidden naming account_not_linked.
    • No funding, transfers, or external withdrawals: Because sub_accounts is none, 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, or DELETE /v2/organizations/:organizationId/sub-accounts/:subAccountId) answers 403 organization_permission_required. Calling POST /v2/withdrawals, its v1 twin, or MCP edel_withdraw for the bound sub-account or without accountId answers 403 sub_account_external_transfer_refused, while naming another account such as the mother account answers 403 forbidden (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 (429 rate_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 or GET /v2/organization-key request answers 401 organization_key_revoked.
  • Trading requirements: For both organization-wide and scoped keys, placing, editing, or canceling orders requires trade: true (set when trading_spot or trading_perps is write), trading_spot write on /v2/spot, trading_perps write on /v2/perps, or both on bare /v2, and the flags api_keys, partner_dashboard, partner_keys.trade.
  • Permission group levels: Access to sub-account lifecycle and transfer routes uses the sub_accounts permission group (held by partner sessions and organization-wide keys, never by sub-account-scoped keys):
    • sub_accounts read: lists live sub-accounts (GET /v2/organizations/:organizationId/sub-accounts) and lists transfers (GET /v2/organizations/:organizationId/transfers).
    • sub_accounts write (includes read): 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_accounts write, a required Idempotency-Key header (1 to 255 characters; a missing key answers 400 idempotency_key_required), and body { code, amount, fromAccount, toAccount }:
    • code must be the venue’s collateral asset (for example USDCx). Another asset answers 409 sub_account_transfer_asset_refused.
    • amount is a positive decimal string (recommended for exact atoms) or finite number within the asset’s decimals.
    • Only two pairs move: fromAccount as the mother account to toAccount as one of its own live sub-accounts, and fromAccount as a live sub-account back to toAccount as 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 409 transfer_eligibility_insufficient with info.free naming the amount that can move now.
    • Replaying the same Idempotency-Key and body returns the original result and moves nothing more. Reusing the key with a different body answers 409 idempotency_key_conflict.
    • The response (200) uses the transfer shape (id, timestamp, datetime, currency, amount, fromAccount, toAccount, status, info). status is ok (state credited), pending (state submitted), failed (state refused). When status is pending (state submitted), send the same request with the same Idempotency-Key again to settle it.
  • List transfers: Call GET /v2/organizations/:organizationId/transfers ( fetchTransfers) with sub_accounts read and optional code, since (epoch milliseconds, inclusive, at most 8640000000000000), limit (1 to 500, default 100), and account (narrows to moves where that account is the sub-account or mother). Moves return newest first; status failed marks a refused move and info.refusalReason names 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 403 sub_account_external_transfer_refused (on /v1 deposit and faucet routes, 403 forbidden with 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 activeSubAccountCount and activeSubAccountLimit under the current policy. The count excludes the mother account and closed sub-accounts. At or above the limit, new creates return 409 sub_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 503 engine_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 429 rate_limited with Retry-After.

Refusals

End-to-end example

This curl 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).
The same funding, trading, and history steps map directly to v2 calls (sub-account creation and deletion use the organization REST routes above):

Shared reference

Use the REST API reference for full request and response schemas.