Order Management System REST API - Transform Controller
POST renaming a Currency
Section titled “POST renaming a Currency”POST /transform/rename/currency
Changes all references within OMS from one Currency Code to another Currency Code.
Affects the following data:
- The currency of an Order.
- The currency of the
AveragePriceon an AssetPosition. - The currency of a CashPosition. If a balance for the new currency exists, the values are added.
- The currency on any queued ClientRequest for
CashTransfer(does not affect in-progress requests).
URL Parameters
Section titled “URL Parameters”| Parameter | Description |
|---|
Query Parameters
Section titled “Query Parameters”| Parameter | Expected | Description |
|---|---|---|
| code | Required | The old Currency Code. |
| newCode | Required | The new Currency Code. |
POST Body
Section titled “POST Body”A single TransformRequest object.
Response
Section titled “Response”| Code | Status | Description |
|---|---|---|
| 204 | Success | The transformation was applied. |
| 403 | Failure | The authenticated identity does not have the Alter permission. |
| 422 | Failure | A failure occurred. Content is a JSON array of one or more error codes describing the problem. |