# OriginalTradeAllocation

The original trade allocation that was rebooked.

## Example Usage

```typescript
import { OriginalTradeAllocation } from "@apexfintechsolutions/ascend-sdk/models/components";

let value: OriginalTradeAllocation = {};
```

## Fields

| Field                                                                                                                                                                                                             | Type                                                                                                                                                                                                              | Required                                                                                                                                                                                                          | Description                                                                                                                                                                                                       | Example                                                                                                                                                                                                           |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `accruedInterestAmount`                                                                                                                                                                                           | [components.RebookTradeAllocationResponseOriginalTradeAllocationAccruedInterestAmount](../../models/components/rebooktradeallocationresponseoriginaltradeallocationaccruedinterestamount.md)                      | :heavy_minus_sign:                                                                                                                                                                                                | The amount of interest that has been accrued in the issuing currency for a single instrument.                                                                                                                     | {<br/>"value": "5.00"<br/>}                                                                                                                                                                                       |
| `additionalInstructions`                                                                                                                                                                                          | *string*                                                                                                                                                                                                          | :heavy_minus_sign:                                                                                                                                                                                                | Free form instructions that can be used to provide additional instructions (that are not captured by existing special instructions) and will be put on the trade confirm.                                         | ACATS instruction                                                                                                                                                                                                 |
| `assetType`                                                                                                                                                                                                       | [components.RebookTradeAllocationResponseOriginalTradeAllocationAssetType](../../models/components/rebooktradeallocationresponseoriginaltradeallocationassettype.md)                                              | :heavy_minus_sign:                                                                                                                                                                                                | Type of the asset being traded.                                                                                                                                                                                   | EQUITY                                                                                                                                                                                                            |
| `bondYield`                                                                                                                                                                                                       | [components.BondYield](../../models/components/bondyield.md)[]                                                                                                                                                    | :heavy_minus_sign:                                                                                                                                                                                                | The yield associated with an individual fill of a fixed income trade. Required for FIXED_INCOME trades. Not allowed for trades of other instrument types.                                                         |                                                                                                                                                                                                                   |
| `brokerCapacity`                                                                                                                                                                                                  | [components.RebookTradeAllocationResponseOriginalTradeAllocationBrokerCapacity](../../models/components/rebooktradeallocationresponseoriginaltradeallocationbrokercapacity.md)                                    | :heavy_minus_sign:                                                                                                                                                                                                | Broker capacity for the trade.                                                                                                                                                                                    | AGENCY                                                                                                                                                                                                            |
| `clientOrderId`                                                                                                                                                                                                   | *string*                                                                                                                                                                                                          | :heavy_minus_sign:                                                                                                                                                                                                | The unique identifier that is associated with an order. This is useful for associating the trade allocation with the original trade. This will be assigned a unique UUID if not provided.                         | 00be5285-0623-4560-8c58-f05af2c56ba0                                                                                                                                                                              |
| `commissionAmount`                                                                                                                                                                                                | [components.RebookTradeAllocationResponseOriginalTradeAllocationCommissionAmount](../../models/components/rebooktradeallocationresponseoriginaltradeallocationcommissionamount.md)                                | :heavy_minus_sign:                                                                                                                                                                                                | Commission amount of the trade allocation that will only be applied to the to_account_id.                                                                                                                         | {<br/>"value": "5.00"<br/>}                                                                                                                                                                                       |
| `executionTime`                                                                                                                                                                                                   | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date)                                                                                                                     | :heavy_minus_sign:                                                                                                                                                                                                | Timestamp of when the trade allocation took place. If settlement_date is not provided, this field will be converted into Eastern Time and used to calculate settlement_date.                                      | 2024-07-17 12:00:00 +0000 UTC                                                                                                                                                                                     |
| `fees`                                                                                                                                                                                                            | [components.BookingFee](../../models/components/bookingfee.md)[]                                                                                                                                                  | :heavy_minus_sign:                                                                                                                                                                                                | Client calculated fees that will only be applied to the to_account_id. Regulatory fees will be calculated automatically if they are not explicitly overwritten or suppressed.                                     |                                                                                                                                                                                                                   |
| `fromAccountId`                                                                                                                                                                                                   | *string*                                                                                                                                                                                                          | :heavy_minus_sign:                                                                                                                                                                                                | The ULID formatted account_id that the positions will be moved from.                                                                                                                                              | 01HASWB2DTMRT3DAM45P56J2H3                                                                                                                                                                                        |
| `fromActivityId`                                                                                                                                                                                                  | *string*                                                                                                                                                                                                          | :heavy_minus_sign:                                                                                                                                                                                                | The current activity_id of the trade allocation that positions will be moved from in the Ledger.                                                                                                                  | 0Y06JAP3A2I                                                                                                                                                                                                       |
| `grossAmount`                                                                                                                                                                                                     | [components.RebookTradeAllocationResponseOriginalTradeAllocationGrossAmount](../../models/components/rebooktradeallocationresponseoriginaltradeallocationgrossamount.md)                                          | :heavy_minus_sign:                                                                                                                                                                                                | Gross amount is calculated by the Booking service by multiplying price and quantity and fixing it to 2 fractional precision. Optionally specifiable. If present, will override the gross_amount calculated above. | {<br/>"value": "5.25"<br/>}                                                                                                                                                                                       |
| `identifier`                                                                                                                                                                                                      | *string*                                                                                                                                                                                                          | :heavy_minus_sign:                                                                                                                                                                                                | Identifier (of the type specified in `identifier_type`). Responses will supply the originally requested identifier.                                                                                               | AAPL                                                                                                                                                                                                              |
| `identifierType`                                                                                                                                                                                                  | [components.RebookTradeAllocationResponseOriginalTradeAllocationIdentifierType](../../models/components/rebooktradeallocationresponseoriginaltradeallocationidentifiertype.md)                                    | :heavy_minus_sign:                                                                                                                                                                                                | Identifier type for the asset being traded.                                                                                                                                                                       | SYMBOL                                                                                                                                                                                                            |
| `issuingRegionCode`                                                                                                                                                                                               | *string*                                                                                                                                                                                                          | :heavy_minus_sign:                                                                                                                                                                                                | Unicode CLDR region code. Issuing Region Code is required for some `identifier_type`s, especially CUSIP.                                                                                                          | US                                                                                                                                                                                                                |
| `lotMatchingInstructions`                                                                                                                                                                                         | [components.BookingLot](../../models/components/bookinglot.md)[]                                                                                                                                                  | :heavy_minus_sign:                                                                                                                                                                                                | One or many lot matching instructions for the trade allocation.                                                                                                                                                   |                                                                                                                                                                                                                   |
| `memo`                                                                                                                                                                                                            | *string*                                                                                                                                                                                                          | :heavy_minus_sign:                                                                                                                                                                                                | Caller provided but can be used for booking-service to note original trade details when booking into the error account or using the error asset.                                                                  | Allocation failed due to insufficient funds                                                                                                                                                                       |
| `name`                                                                                                                                                                                                            | *string*                                                                                                                                                                                                          | :heavy_minus_sign:                                                                                                                                                                                                | The resource name of the trade allocation.                                                                                                                                                                        | accounts/02HASWB2DTMRT3DAM45P56J2T2/tradeAllocations/01J0XX2KDN3M9QKFKRE2HYSCQM                                                                                                                                   |
| `prevailingMarketPrice`                                                                                                                                                                                           | [components.RebookTradeAllocationResponseOriginalTradeAllocationPrevailingMarketPrice](../../models/components/rebooktradeallocationresponseoriginaltradeallocationprevailingmarketprice.md)                      | :heavy_minus_sign:                                                                                                                                                                                                | The price for the instrument that is prevailing in the market. Required for FIXED_INCOME trade allocations when the broker_capacity is PRINCIPAL.                                                                 | {<br/>"value": "100.00"<br/>}                                                                                                                                                                                     |
| `price`                                                                                                                                                                                                           | [components.RebookTradeAllocationResponseOriginalTradeAllocationPrice](../../models/components/rebooktradeallocationresponseoriginaltradeallocationprice.md)                                                      | :heavy_minus_sign:                                                                                                                                                                                                | Price with requirement of 8 or less integral number and 8 or less fractional precision.                                                                                                                           | {<br/>"value": "56.15"<br/>}                                                                                                                                                                                      |
| `priceAdjustment`                                                                                                                                                                                                 | [components.RebookTradeAllocationResponseOriginalTradeAllocationPriceAdjustment](../../models/components/rebooktradeallocationresponseoriginaltradeallocationpriceadjustment.md)                                  | :heavy_minus_sign:                                                                                                                                                                                                | Price adjustment that will be applied to the net price of the security.                                                                                                                                           |                                                                                                                                                                                                                   |
| `quantity`                                                                                                                                                                                                        | [components.RebookTradeAllocationResponseOriginalTradeAllocationQuantity](../../models/components/rebooktradeallocationresponseoriginaltradeallocationquantity.md)                                                | :heavy_minus_sign:                                                                                                                                                                                                | Quantity with requirement of 12 or less integral number and 5 or less fractional precision.                                                                                                                       | {<br/>"value": "1000"<br/>}                                                                                                                                                                                       |
| `settlementDate`                                                                                                                                                                                                  | [components.RebookTradeAllocationResponseOriginalTradeAllocationSettlementDate](../../models/components/rebooktradeallocationresponseoriginaltradeallocationsettlementdate.md)                                    | :heavy_minus_sign:                                                                                                                                                                                                | Defaults to T+1 for equities if this is not provided. Calculated using the execution_time field in Eastern Time.                                                                                                  | 2024-07-17 12:00:00 +0000 UTC                                                                                                                                                                                     |
| `sideModifier`                                                                                                                                                                                                    | [components.RebookTradeAllocationResponseOriginalTradeAllocationSideModifier](../../models/components/rebooktradeallocationresponseoriginaltradeallocationsidemodifier.md)                                        | :heavy_minus_sign:                                                                                                                                                                                                | Side modifier for the trade allocation.                                                                                                                                                                           | SHORT                                                                                                                                                                                                             |
| `sourceApplication`                                                                                                                                                                                               | *string*                                                                                                                                                                                                          | :heavy_minus_sign:                                                                                                                                                                                                | The source of the submission.                                                                                                                                                                                     | Trading-App                                                                                                                                                                                                       |
| `specialInstructions`                                                                                                                                                                                             | [components.RebookTradeAllocationResponseOriginalTradeAllocationSpecialInstructions](../../models/components/rebooktradeallocationresponseoriginaltradeallocationspecialinstructions.md)[]                        | :heavy_minus_sign:                                                                                                                                                                                                | An enumerated list of values used to indicate certain attributes about a trade allocation (E.g. BROKER_LIQUIDATION) and/or trigger downstream processing rules (e.g. SUPPRESS_TRACE_REPORTING)                    | [<br/>"SUPPRESS_SEC_FEE",<br/>"WITH_DIVIDEND"<br/>]                                                                                                                                                               |
| `state`                                                                                                                                                                                                           | [components.RebookTradeAllocationResponseOriginalTradeAllocationState](../../models/components/rebooktradeallocationresponseoriginaltradeallocationstate.md)                                                      | :heavy_minus_sign:                                                                                                                                                                                                | The state that the trade allocation is in.                                                                                                                                                                        | BOOKED                                                                                                                                                                                                            |
| `toAccountId`                                                                                                                                                                                                     | *string*                                                                                                                                                                                                          | :heavy_minus_sign:                                                                                                                                                                                                | The ULID formatted account_id that the positions will be moved to.                                                                                                                                                | 02HASWB2DTMRT3DAM45P56J2T2                                                                                                                                                                                        |
| `toActivityId`                                                                                                                                                                                                    | *string*                                                                                                                                                                                                          | :heavy_minus_sign:                                                                                                                                                                                                | The current activity_id of the trade allocation that positions will be moved to in the Ledger.                                                                                                                    | 0H06HAP3A3Y                                                                                                                                                                                                       |
| `toSide`                                                                                                                                                                                                          | [components.RebookTradeAllocationResponseOriginalTradeAllocationToSide](../../models/components/rebooktradeallocationresponseoriginaltradeallocationtoside.md)                                                    | :heavy_minus_sign:                                                                                                                                                                                                | Denotes the side of the position going into the to_account_id. A to_side of SELL indicates the position will be allocated with a BUY out of the from_account, and a SELL into the to_account.                     | BUY                                                                                                                                                                                                               |
| `tradeAllocationId`                                                                                                                                                                                               | *string*                                                                                                                                                                                                          | :heavy_minus_sign:                                                                                                                                                                                                | A ULID to uniquely identify the trade allocation globally.                                                                                                                                                        | 01J0XX2KDN3M9QKFKRE2HYSCQM                                                                                                                                                                                        |
| `whenIssued`                                                                                                                                                                                                      | [components.RebookTradeAllocationResponseOriginalTradeAllocationWhenIssued](../../models/components/rebooktradeallocationresponseoriginaltradeallocationwhenissued.md)                                            | :heavy_minus_sign:                                                                                                                                                                                                | Denotes that this trade allocation was either when_issued or when_distributed.                                                                                                                                    | WHEN_ISSUED                                                                                                                                                                                                       |