Skip to navigation

Create Master Owned Subaccount Request

View as Markdown

Request a subaccount for a master account in your organization.

Available to: Organization administrators

Environments: Live

Rate Limit: 350 requests per hour, 30-second back-off, counts all requests

On Live, some organizations restrict administrators from accessing other members’ accounts unless they hold an approved trading permission for that account.

Submit a subaccount request for the master account named in masterAccountName. The master account’s owner must be a user in your organization, and the master account must have an approved customer application. A successful request returns its requestId with status set to Preapproved.

If your organization has automatic approval turned on for these requests, the request becomes Approved once the account review approves it and its subaccount is created.

Unlike createPartnerSubAccountRequest, this endpoint takes no user details or documents. It identifies the user through the master account.

Master-owned subaccount requests are enabled per organization, so work with the NinjaTrader Support team to turn them on.

Request Fields

FieldRequiredDescription
masterAccountNameYesThe master account’s name, up to 64 characters.
marginTypeYesStored with the request. The subaccount takes the master account’s margin type, not this value.
authorizedIndividualYesStored with the request.
transferAmountNoThe amount to transfer from the master account to the subaccount. Checked against the master account’s cash, less the transfer amounts of its subaccount requests in Pending status. If you omit it, the check uses 0. When the subaccount is created and transferAmount is greater than 0, a pending USD fund transaction for that amount is recorded on each account: outgoing on the master account and incoming on the subaccount.
riskCategoryIdNoThe risk category for the subaccount. Must match a risk category in your organization. If you omit it, the subaccount uses the master account’s risk category.
autoLiqProfileIdNoThe auto-liquidation profile for the subaccount. Must match an auto-liquidation profile in your organization. If you omit it, the subaccount uses your organization’s default auto-liquidation profile, or the master account’s profile if your organization has no default.
externalWalletIdNoUp to 128 characters, stored with the request.

Common Failure Scenarios

  • You aren’t an organization administrator, or master-owned subaccount requests aren’t enabled for your organization. Both return HTTP 200 with "Access denied" in errorText.
  • No account you can read has the name in masterAccountName, or the account is archived, restricted, or closed.
  • The master account’s owner isn’t in your organization, or the master account has no approved customer application.
  • The master account’s cash, less the transfer amounts of its subaccount requests in Pending status, is less than transferAmount.
  • riskCategoryId or autoLiqProfileId doesn’t match a record in your organization.
  • The master account’s owner has reached your organization’s subaccount limit. The request is created and then set to Denied, and the response has no requestId.
  • A required field is missing or a value is out of range. This returns HTTP 400.
  • You call it on Demo. This returns HTTP 501.

This endpoint returns HTTP 200 for both successful and rejected requests, so check the errorText field to confirm the result. Other failures, such as an invalid request or a call on Demo, return their own HTTP status.

Error Messages

MessageResponseTrigger
"Margin Type should be one of: Speculator or Hedger"400marginType is out of range.
"Master Account Name should be specified"400masterAccountName is empty.
"Master Account Name should be no longer than 64"400masterAccountName is longer than 64 characters.
"External Wallet Id should be no longer than 128"400externalWalletId is longer than 128 characters.
"Risk Category Id should be greater than 0"400riskCategoryId is present and isn’t greater than 0.
"Auto Liq Profile Id should be greater than 0"400autoLiqProfileId is present and isn’t greater than 0.
"Access is denied"401The caller’s user type, or the API key’s permissions, don’t include full access to the CustomerApplications resource.
"This endpoint should be called on live.tradovateapi.com"501Called on the Demo environment.
"Access denied"200 (in errorText)The caller isn’t an organization administrator.
"Access denied"200 (in errorText)Master-owned subaccount requests aren’t enabled for the caller’s organization.
"The account '{masterAccountName}' not found"200 (in errorText)No account the caller can read has that name. {masterAccountName} is the request value.
"The account '{masterAccountName}' is not active"200 (in errorText)The account is archived, restricted, or closed. {masterAccountName} is the request value.
"The account '{accountName}' has no owner"200 (in errorText)The master account’s owner can’t be found. {accountName} is the account’s stored name.
"The account '{accountName}' is not owned by this organization"200 (in errorText)The master account’s owner isn’t in the caller’s organization.
"Master account must have an approved customer application"200 (in errorText)The master account has no customer application the caller can read.
"The account '{accountName}' has no valid customer application"200 (in errorText)The master account’s customer application is archived, isn’t approved, or belongs to a different account.
"Account has insufficient funds"200 (in errorText)The master account’s cash, less the transfer amounts of its subaccount requests in Pending status, is less than transferAmount (0 if omitted).
"Auto-liq profile ID={autoLiqProfileId} not found"200 (in errorText)autoLiqProfileId doesn’t match an auto-liquidation profile in the caller’s organization.
"Risk category ID={riskCategoryId} not found"200 (in errorText)riskCategoryId doesn’t match a risk category in the caller’s organization.
"Access denied"200 (in errorText)Creating the subaccount request record is denied.
"POA has reached the maximum number of subaccounts allowed."200 (in errorText)The master account’s owner has reached the organization’s subaccount limit. The request is created, then set to Denied.
"Not found"200 (in errorText)A record needed to process the request can’t be found.
"Request timeout. Error ID: {id}"200 (in errorText)An internal step timed out. The error ID is generated per request.
"Internal Error. Error ID: {id}"200 (in errorText)Any other unexpected failure. The error ID is generated per request.

Related Endpoints

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
marginTypeenumRequired
Hedger, Speculator
Allowed values:
authorizedIndividualbooleanRequired
masterAccountNamestringRequired<=64 characters
externalWalletIdstringOptional<=128 characters
transferAmountdoubleOptional
riskCategoryIdlongOptional
autoLiqProfileIdlongOptional

Response

CreateMasterOwnedSubAccountRequestResponse
errorTextstringOptional<=8192 characters

Non-empty if the request failed

requestIdlongOptional
statusenumOptional
Approved, Denied, InAMLReview, InReview, Pending, Preapproved