# ActivityTrade

Used to record the the execution of a buy or sell transaction resulting in the transfer of securities and corresponding payment and details related to the trade

## Example Usage

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

let value: ActivityTrade = {};
```

## Fields

| Field                                                                                                                                                                                                                | Type                                                                                                                                                                                                                 | Required                                                                                                                                                                                                             | Description                                                                                                                                                                                                          | Example                                                                                                                                                                                                              |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `additionalInstructions`                                                                                                                                                                                             | *string*[]                                                                                                                                                                                                           | :heavy_minus_sign:                                                                                                                                                                                                   | Free form text field containing additional information for a trade                                                                                                                                                   | [<br/>"As-Of Trade Example",<br/>"to Cancel"<br/>]                                                                                                                                                                   |
| `alternateOrderId`                                                                                                                                                                                                   | *string*                                                                                                                                                                                                             | :heavy_minus_sign:                                                                                                                                                                                                   | Max Length 100 characters. Alternate order id from the street used for FRAC trades                                                                                                                                   | 8d7f6375                                                                                                                                                                                                             |
| `bookingApiTradeAllocationId`                                                                                                                                                                                        | *string*                                                                                                                                                                                                             | :heavy_minus_sign:                                                                                                                                                                                                   | uuid assigned by the Booking API if a trade belongs to an allocation                                                                                                                                                 | 01HZ5Z4E00AM2DCPK21PYM07PM                                                                                                                                                                                           |
| `bookingApiTradeId`                                                                                                                                                                                                  | *string*                                                                                                                                                                                                             | :heavy_minus_sign:                                                                                                                                                                                                   | uuid assigned by the Booking API to all trades                                                                                                                                                                       | 01HYKYBD00JBQAZ8477RD1M8T7                                                                                                                                                                                           |
| `broker`                                                                                                                                                                                                             | *string*                                                                                                                                                                                                             | :heavy_minus_sign:                                                                                                                                                                                                   | Executing broker of the trade                                                                                                                                                                                        | JNST                                                                                                                                                                                                                 |
| `brokerCapacity`                                                                                                                                                                                                     | [components.ActivityTradeBrokerCapacity](../../models/components/activitytradebrokercapacity.md)                                                                                                                     | :heavy_minus_sign:                                                                                                                                                                                                   | Used to calculate broadridge blotter code                                                                                                                                                                            | AGENCY                                                                                                                                                                                                               |
| `clientMemos`                                                                                                                                                                                                        | *string*[]                                                                                                                                                                                                           | :heavy_minus_sign:                                                                                                                                                                                                   | Free form text submitted by the client for internal purposes                                                                                                                                                         | [<br/>"Detail from client",<br/>"More details from client"<br/>]                                                                                                                                                     |
| `clientOrderId`                                                                                                                                                                                                      | *string*                                                                                                                                                                                                             | :heavy_minus_sign:                                                                                                                                                                                                   | 32 characters. The client order ID from the order submitted                                                                                                                                                          | 0db56450                                                                                                                                                                                                             |
| `exchange`                                                                                                                                                                                                           | *string*                                                                                                                                                                                                             | :heavy_minus_sign:                                                                                                                                                                                                   | MIC code for the exchange                                                                                                                                                                                            | OTC                                                                                                                                                                                                                  |
| `executionId`                                                                                                                                                                                                        | *string*                                                                                                                                                                                                             | :heavy_minus_sign:                                                                                                                                                                                                   | Execution id from the street                                                                                                                                                                                         | 01HZ5Z4E003KJ7B7FK3GGX2V74                                                                                                                                                                                           |
| `executionOnly`                                                                                                                                                                                                      | *boolean*                                                                                                                                                                                                            | :heavy_minus_sign:                                                                                                                                                                                                   | Indicates whether Apex is the clearing broker for this trade. When false, indicates Apex is the clearing broker                                                                                                      | false                                                                                                                                                                                                                |
| `externalId`                                                                                                                                                                                                         | *string*                                                                                                                                                                                                             | :heavy_minus_sign:                                                                                                                                                                                                   | Max Length 100 characters. External system id provided by a client                                                                                                                                                   | 01HAWHW7PSNS99H9SSCY3J3MXZ_FROM_STREET-SELL-393767f7-0db5645                                                                                                                                                         |
| `fundConfirmationNumber`                                                                                                                                                                                             | *string*                                                                                                                                                                                                             | :heavy_minus_sign:                                                                                                                                                                                                   | The confirmation number associated with a mutual fund trade                                                                                                                                                          | 010038862                                                                                                                                                                                                            |
| `gatewayClientOrderId`                                                                                                                                                                                               | *string*                                                                                                                                                                                                             | :heavy_minus_sign:                                                                                                                                                                                                   | Max length 100 characters. Order id generated by trading-gateway (Trade-Ex) to uniquely identify all orders in their system. Used as the client_order_id on new order singles sent downstream of the trading-gateway | 7039acda                                                                                                                                                                                                             |
| `internalError`                                                                                                                                                                                                      | *boolean*                                                                                                                                                                                                            | :heavy_minus_sign:                                                                                                                                                                                                   | If set to true, indicates the trade should be omitted from client billing                                                                                                                                            | false                                                                                                                                                                                                                |
| `isWriteoff`                                                                                                                                                                                                         | *boolean*                                                                                                                                                                                                            | :heavy_minus_sign:                                                                                                                                                                                                   | Set on penny-for-the-lot trades                                                                                                                                                                                      | false                                                                                                                                                                                                                |
| `lots`                                                                                                                                                                                                               | [components.Lot](../../models/components/lot.md)[]                                                                                                                                                                   | :heavy_minus_sign:                                                                                                                                                                                                   | Repeated record containing information about the tax lots, if specified                                                                                                                                              |                                                                                                                                                                                                                      |
| `orderId`                                                                                                                                                                                                            | *string*                                                                                                                                                                                                             | :heavy_minus_sign:                                                                                                                                                                                                   | Max Length 100 characters. Internally generated order id that is returned to client on exec reports                                                                                                                  | 8d7f6375                                                                                                                                                                                                             |
| `prevailingMarketPrice`                                                                                                                                                                                              | [components.ActivityTradePrevailingMarketPrice](../../models/components/activitytradeprevailingmarketprice.md)                                                                                                       | :heavy_minus_sign:                                                                                                                                                                                                   | The price for the instrument that is prevailing in the market.                                                                                                                                                       | {<br/>"value": "0.25"<br/>}                                                                                                                                                                                          |
| `priceAdjustmentRecord`                                                                                                                                                                                              | [components.ActivityTradePriceAdjustmentRecord](../../models/components/activitytradepriceadjustmentrecord.md)                                                                                                       | :heavy_minus_sign:                                                                                                                                                                                                   | Information about any price adjustments applied to the security                                                                                                                                                      |                                                                                                                                                                                                                      |
| `route`                                                                                                                                                                                                              | *string*                                                                                                                                                                                                             | :heavy_minus_sign:                                                                                                                                                                                                   | Used to calculate broadridge blotter code                                                                                                                                                                            | MNGD                                                                                                                                                                                                                 |
| `specialInstructions`                                                                                                                                                                                                | *string*[]                                                                                                                                                                                                           | :heavy_minus_sign:                                                                                                                                                                                                   | The special instructions for a trade                                                                                                                                                                                 | [<br/>"WITH_DIVIDEND",<br/>"OPTION_ASSIGNMENT"<br/>]                                                                                                                                                                 |
| `symbolDescription`                                                                                                                                                                                                  | *string*                                                                                                                                                                                                             | :heavy_minus_sign:                                                                                                                                                                                                   | Name of the issuer of a security and additional descriptive information about the particular issue                                                                                                                   | AMC ENTMT HLDGS INC CL A COM                                                                                                                                                                                         |
| `whenIssued`                                                                                                                                                                                                         | *boolean*                                                                                                                                                                                                            | :heavy_minus_sign:                                                                                                                                                                                                   | Indicates the trade was executed in a security that is not currently listed. When-issued securities are bought and sold before they are officially issued, allowing investors to speculate on their future value     | false                                                                                                                                                                                                                |
| `yieldRecords`                                                                                                                                                                                                       | [components.YieldRecord](../../models/components/yieldrecord.md)[]                                                                                                                                                   | :heavy_minus_sign:                                                                                                                                                                                                   | The yields associated with a fixed income trade. only valid if the SecurityType is FIXED_INCOME.                                                                                                                     |                                                                                                                                                                                                                      |