# OptionInstruction

Represents a single options trading instruction including do not exercise, exercise by exception, and early exercise instructions

## Example Usage

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

let value: OptionInstruction = {};
```

## Fields

| Field                                                                                                    | Type                                                                                                     | Required                                                                                                 | Description                                                                                              | Example                                                                                                  |
| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- |
| `accountId`                                                                                              | *string*                                                                                                 | :heavy_minus_sign:                                                                                       | Account identifier                                                                                       | 01JTNGZM8PWRR6MHBCC6TEG9HE                                                                               |
| `createTime`                                                                                             | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date)            | :heavy_minus_sign:                                                                                       | The time the instruction was created                                                                     | 2024-01-15T14:30:00Z                                                                                     |
| `identifier`                                                                                             | *string*                                                                                                 | :heavy_minus_sign:                                                                                       | The asset identifier                                                                                     | AAPL250620P00090000                                                                                      |
| `identifierType`                                                                                         | [components.OptionInstructionIdentifierType](../../models/components/optioninstructionidentifiertype.md) | :heavy_minus_sign:                                                                                       | Type to identify the option asset associated with the instruction                                        | OSI                                                                                                      |
| `instructionId`                                                                                          | *string*                                                                                                 | :heavy_minus_sign:                                                                                       | Instruction identifier which is unique and provided by the server                                        | abc12345                                                                                                 |
| `name`                                                                                                   | *string*                                                                                                 | :heavy_minus_sign:                                                                                       | The name of the instruction (e.g., "accounts/{account}/assets/{asset}/instructions/{instruction_id}").   | accounts/ACC123456/assets/12345/instructions/abc12345                                                    |
| `quantity`                                                                                               | [components.OptionInstructionQuantity](../../models/components/optioninstructionquantity.md)             | :heavy_minus_sign:                                                                                       | Quantity for the instruction                                                                             | {<br/>"value": "100"<br/>}                                                                               |
| `state`                                                                                                  | [components.OptionInstructionState](../../models/components/optioninstructionstate.md)                   | :heavy_minus_sign:                                                                                       | Current state of the instruction                                                                         | ACCEPTED                                                                                                 |
| `stateDescription`                                                                                       | *string*                                                                                                 | :heavy_minus_sign:                                                                                       | State description relating to the state                                                                  | Instruction is pending processing                                                                        |
| `type`                                                                                                   | [components.OptionInstructionType](../../models/components/optioninstructiontype.md)                     | :heavy_minus_sign:                                                                                       | Type of instruction                                                                                      | DO_NOT_EXERCISE                                                                                          |
| `updateTime`                                                                                             | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date)            | :heavy_minus_sign:                                                                                       | The time the instruction was updated                                                                     | 2024-01-15T15:45:00Z                                                                                     |