Create AccountPOST
Create a new trading account for a client profile. The account defines the client trading environment, including group and currency settings. Required: profileId, groupId, currency, and maxLeverage (must be greater than zero). The currency and spreadBetting (isSb) flags are IMMUTABLE after creation.
Authorization
Authorization<token>Bearer access token issued by the admin login flow.
In: header
Request Body
application/jsonRequiredThe account to be created.
idCan be provided to override the auto generated ID, but it is not recommended as it may lead to data inconsistenciesgroupIdstringRequired on create. Account group ID (from List Groups).
profileIdstringRequired on create. The client profile ID that owns this account.
currencystringRequired on create. Account currency; IMMUTABLE after creation (from List Currencies).
positionModePosition mode, NETING or HEDGING"POSITIONING_MODE_UNSPECIFIED"Value in: "POSITIONING_MODE_UNSPECIFIED" | "POSITIONING_MODE_NETTING" | "POSITIONING_MODE_HEDGING"statusTrade status, ENABLED, DISABLED or CLOSE_ONLY"TRADE_STATUS_UNSPECIFIED"Value in: "TRADE_STATUS_UNSPECIFIED" | "TRADE_STATUS_FULL" | "TRADE_STATUS_CLOSE_ONLY" | "TRADE_STATUS_DISABLED" | "TRADE_STATUS_LONG_ONLY"nopNet open positions limit in account currency"double"balancenumberAccount balance. Read-only; set funds via deposit/withdraw, not on create.
"double"maxLeveragestringRequired on create, must be greater than zero. Maximum leverage allowed for this account.
"uint64"versionAccount version for optimistic locking"uint64"isSbSpread Betting flag - IMMUTABLE after account creation, can only be set during creationisDemoDemo account flag - indicates if this is a demo account (false = live account)marginCalcTypeOverridePer-account override for margin calculation typeMarginCalculationType defines how opposing positions on the same symbol are combined.
- MARGIN_CALC_TYPE_UNSPECIFIED: unspecified — behaves as SUM
- MARGIN_CALC_TYPE_SUM: long_margin + short_margin (most conservative)
- MARGIN_CALC_TYPE_MAX: max(long_margin, short_margin) — partial hedging relief
- MARGIN_CALC_TYPE_NET: margin on abs(long_qty - short_qty) — full hedging offset
"MARGIN_CALC_TYPE_UNSPECIFIED"Value in: "MARGIN_CALC_TYPE_UNSPECIFIED" | "MARGIN_CALC_TYPE_SUM" | "MARGIN_CALC_TYPE_MAX" | "MARGIN_CALC_TYPE_NET"dailyStatementWhether daily statement emails are enabled for this accountcreditnumberAccount credit ledger. Read-only; set via credit-in / credit-out endpoints.
"double"A successful response.