# NewTrade

The new trade that is booked.

## Example Usage

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

let value: NewTrade = {};
```

## Fields

| Field                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | Type                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | Required                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | Example                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `accountId`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | *string*                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | :heavy_minus_sign:                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | A globally unique identifier referencing a single account.                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | 02HASWB2DTMRT3DAM45P56J2T2                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| `activityId`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | *string*                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | :heavy_minus_sign:                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | The current activity_id of this trade in the Ledger.                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | 0H06HAP3A3Y                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| `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                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| `alternateOrderId`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | *string*                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | :heavy_minus_sign:                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | Fractional support for market-makers' internal order ids.                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | 00ce5285-0624-4260-8c58-g05af2c56ba5                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| `assetType`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | [components.RebookTradeResponseAssetType](../../models/components/rebooktraderesponseassettype.md)                                                                                                                                                                                                                                                                                                                                                                                                                           | :heavy_minus_sign:                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | Type of the asset being traded.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | EQUITY                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| `brokerCapacity`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | [components.RebookTradeResponseBrokerCapacity](../../models/components/rebooktraderesponsebrokercapacity.md)                                                                                                                                                                                                                                                                                                                                                                                                                 | :heavy_minus_sign:                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | Broker capacity for the trade.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               | AGENCY                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| `clientOrderId`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | *string*                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | :heavy_minus_sign:                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | The unique identifier that is associated with an order. Must be unique by date per trade per client.                                                                                                                                                                                                                                                                                                                                                                                                                         | 00be5285-0623-4560-8c58-f05af2c56ba0                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| `executingBroker`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | *string*                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | :heavy_minus_sign:                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | Executing broker of the trade.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               | NITE                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| `executions`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | [components.Execution](../../models/components/execution.md)[]                                                                                                                                                                                                                                                                                                                                                                                                                                                               | :heavy_minus_sign:                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | The executions (sometimes referred to as partial-fills) that comprise the trade.                                                                                                                                                                                                                                                                                                                                                                                                                                             |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| `fees`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | [components.BookingFee](../../models/components/bookingfee.md)[]                                                                                                                                                                                                                                                                                                                                                                                                                                                             | :heavy_minus_sign:                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | Any client calculated fees associated with the trade. Only allowed if trade.open = false. Regulatory fees will be calculated automatically if they are not explicitly overwritten or suppressed.                                                                                                                                                                                                                                                                                                                             |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| `identifier`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | *string*                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | :heavy_minus_sign:                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | Identifier (of the type specified in `identifier_type`). Responses will supply the originally requested identifier.                                                                                                                                                                                                                                                                                                                                                                                                          | AAPL                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| `identifierType`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | [components.RebookTradeResponseIdentifierType](../../models/components/rebooktraderesponseidentifiertype.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                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| `localMarketTradeDate`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | [components.RebookTradeResponseLocalMarketTradeDate](../../models/components/rebooktraderesponselocalmarkettradedate.md)                                                                                                                                                                                                                                                                                                                                                                                                     | :heavy_minus_sign:                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | Date field to support extended trading hours.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | 2024-07-18 00:00:00 +0000 UTC                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| `lotMatchingInstructions`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | [components.BookingLot](../../models/components/bookinglot.md)[]                                                                                                                                                                                                                                                                                                                                                                                                                                                             | :heavy_minus_sign:                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | One or many lot matching instructions for the trade.                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| `micCode`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | *string*                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | :heavy_minus_sign:                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | Market Identifier Code                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | XNAS                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| `name`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | *string*                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | :heavy_minus_sign:                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | The resource name of the trade.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | accounts/02HASWB2DTMRT3DAM45P56J2T2/trades/01J0XX2KDN3M9QKFKRE2HYSCQM                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| `open`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | *boolean*                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | :heavy_minus_sign:                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | State of this trade's completeness in filling. True: trade is not done filling and can append more executions onto the trade False: trade is done filling and cannot append more executions onto the trade By default, trades are closed when they are created. An open trade can later be closed by calling the CompleteTrade endpoint. Additional executions can be appended to an open trade by calling the CreateExecution endpoint. Trades that are left open will be automatically closed nightly before Ledger's EOD. | false                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| `orderId`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | *string*                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | :heavy_minus_sign:                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | Street-level order id, unique by day per broker.                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | 00be6285-0623-4260-8c58-g05af2c56ba2                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| `routeType`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | [components.RebookTradeResponseRouteType](../../models/components/rebooktraderesponseroutetype.md)                                                                                                                                                                                                                                                                                                                                                                                                                           | :heavy_minus_sign:                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | Route type for the trade.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | MNGD                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| `settlementDate`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | [components.RebookTradeResponseSettlementDate](../../models/components/rebooktraderesponsesettlementdate.md)                                                                                                                                                                                                                                                                                                                                                                                                                 | :heavy_minus_sign:                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | Defaults to T+1 for equities if this is not provided. Calculated by the execution's execution_time field in Eastern Time.                                                                                                                                                                                                                                                                                                                                                                                                    | 2024-07-19 00:00:00 +0000 UTC                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| `side`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | [components.RebookTradeResponseSide](../../models/components/rebooktraderesponseside.md)                                                                                                                                                                                                                                                                                                                                                                                                                                     | :heavy_minus_sign:                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | Denotes if the trade is a SELL or a BUY.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | BUY                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| `sideModifier`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               | [components.RebookTradeResponseSideModifier](../../models/components/rebooktraderesponsesidemodifier.md)                                                                                                                                                                                                                                                                                                                                                                                                                     | :heavy_minus_sign:                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | Side modifier for the trade.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | OPEN                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| `sourceApplication`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | *string*                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | :heavy_minus_sign:                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | The source of the submission.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | Trading-App                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| `specialInstructions`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | [components.RebookTradeResponseSpecialInstructions](../../models/components/rebooktraderesponsespecialinstructions.md)[]                                                                                                                                                                                                                                                                                                                                                                                                     | :heavy_minus_sign:                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | An enumerated list of values used to indicate certain attributes about a trade (E.g. DISCRETION_EXERCISED, BROKER_LIQUIDATION) and/or trigger downstream processing rules (e.g. SUPPRESS_TRACE_REPORTING)                                                                                                                                                                                                                                                                                                                    | [<br/>"SUPPRESS_SEC_FEE",<br/>"WITH_DIVIDEND"<br/>]                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| `tradeId`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | *string*                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | :heavy_minus_sign:                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | A ULID to uniquely identify the trade globally.                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | 01J0XX2KDN3M9QKFKRE2HYSCQM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| `venue`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | [components.RebookTradeResponseVenue](../../models/components/rebooktraderesponsevenue.md)                                                                                                                                                                                                                                                                                                                                                                                                                                   | :heavy_minus_sign:                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | Exchange venue                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               | NASDAQ                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| `whenIssued`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | [components.RebookTradeResponseWhenIssued](../../models/components/rebooktraderesponsewhenissued.md)                                                                                                                                                                                                                                                                                                                                                                                                                         | :heavy_minus_sign:                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | Denotes that this trade was either when_issued or when_distributed.                                                                                                                                                                                                                                                                                                                                                                                                                                                          | WHEN_ISSUED                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |