Skip to content

Order Management System REST API - Account Controller

The account/byid/<owner>/<account> URL manipulates Trading Account metadata for individual accounts.

GET /account/byid/<owner>/<account>

Retrieves the metadata for a Trading Account.

ParameterDescription
ownerA URL-encoded Owner Code.
accountA URL-encoded Account ID unique to the Owner.
ParameterExpectedDescription
asAtOptionalAn ISO8601 date and time. The results returned will be those at the given timestamp. If omitted, returns the latest results.
CodeStatusDescription
200SuccessThe Trading Account was found.
Content is a single AccountDetails object.
404FailureOwner or Trading Account metadata does not exist, or the authenticated identity does not have permission to see this account.

PATCH /transform/rename/account

Changes all references within OMS from one Owner/Account to a different Owner/Account.

ParameterDescription
ownerA URL-encoded Owner Code.
accountA URL-encoded Account ID unique to the Owner.
ParameterExpectedDescription
newOwnerOptionalThe new Owner Code. If omitted, defaults to the original Owner Code.
newAccountOptionalThe new Account ID. If omitted, defaults to the original Account Code.

A single TransformRequest object.

CodeStatusDescription
204SuccessThe transformation was applied.
403FailureThe authenticated identity does not have the Alter permission.
404FailureOwner or Trading Account metadata does not exist, or the authenticated identity does not have permission to see this account.
422FailureA failure occurred.
Content is a JSON array of one or more error codes describing the problem.

DELETE /account/byid/<owner>/<account>

Removes the metadata for a Trading Account.

Requires the Alter feature permission.

ParameterDescription
ownerA URL-encoded Owner Code.
accountA URL-encoded Account ID unique to the Owner.
CodeStatusDescription
204SuccessThe Trading Account was removed.
403FailureThe authenticated identity does not have the Alter permission.
404FailureOwner or Trading Account metadata does not exist, or the authenticated identity does not have permission to see this account.
422FailureA failure occurred.
Content is a JSON array of one or more error codes describing the problem.