subaccounts

Create Subaccount

Changed on

Create a new trading subaccount. Any active org member can create one; account_type is pinned to non_custodial server-side. A non-admin creator gets an explicit admin grant on the new subaccount (org admins hold derived access on every subaccount and never get grant rows).

Runs on the unscoped session: the creator holds no user:manage grant on the subaccount until this transaction writes it, so the scoped-session RLS WITH CHECK on subaccount_grants can never admit the bootstrap row.

post/v1/subaccounts

Request

  • Base URL
    https://api.rivermarkets.com (the document declares no server; this is the origin it was published from)
  • URL
    https://api.rivermarkets.com/v1/subaccounts
  • Auth
    none declared

Request body

namestring required
descriptionstring nullable

Response

Successful Response

subaccount_idstring uuid required
org_idstring uuid required
namestring required
descriptionstring nullable
account_type'custodial' | 'non_custodial' required

Type of trading subaccount.

is_activeboolean required
inserted_atstring required
permissionsstring[] required
rolestring required

Changes

    • warning

      removed the request property

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status