# OptionOrderLegCreate

The message describing an option order leg.

## Example Usage

```typescript
import {
  OptionOrderLegCreate,
  OptionOrderLegCreateAssetType,
  OptionOrderLegCreateIdentifierType,
  OptionOrderLegCreateSide,
  SideModifier,
} from "@apexfintechsolutions/ascend-sdk/models/components";

let value: OptionOrderLegCreate = {
  assetType: OptionOrderLegCreateAssetType.Option,
  identifier: "SBUX250221C00084000",
  identifierType: OptionOrderLegCreateIdentifierType.Osi,
  ratioQuantity: 1,
  side: OptionOrderLegCreateSide.Sell,
  sideModifier: SideModifier.Open,
};
```

## Fields

| Field                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | Type                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | Required                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | Example                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `assetType`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | [components.OptionOrderLegCreateAssetType](../../models/components/optionorderlegcreateassettype.md)                                                                                                                                                                                                                                                                                                                                                                                                        | :heavy_check_mark:                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | The type of the asset in this option order leg. Orders with only a single leg may only contain an OPTION asset type. Orders with multiple legs must contain at least one OPTION leg, and no more than one EQUITY leg.                                                                                                                                                                                                                                                                                       | OPTION                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| `identifier`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | *string*                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | :heavy_check_mark:                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | The identifier of the asset, in the format specified by `identifier_type`. When `identifier_type` is OSI, this field must be a valid OSI identifier, which is between 16 and 21 characters. (This value must not contain any spaces between the symbol and expiry date.) When `identifier_type` is SYMBOL, this field must contain the ticker value of the security, which is between 1 and 6 characters and must conform the same input constraints called out in the non-options single option order API. | SBUX250221C00084000                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| `identifierType`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | [components.OptionOrderLegCreateIdentifierType](../../models/components/optionorderlegcreateidentifiertype.md)                                                                                                                                                                                                                                                                                                                                                                                              | :heavy_check_mark:                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | The format of the identifier value used to look up the security. When `asset_type` is OPTION, the identifier_type must be OSI.                                                                                                                                                                                                                                                                                                                                                                              | OSI                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| `ratioQuantity`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | *number*                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | :heavy_check_mark:                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | This specifies the quantity of security to be ordered in this leg. For a single-leg order, this value must be 1 (one). For a multi-leg order, this value must be greater than zero, and the total number of shares or contracts ordered at the market will be `order.quantity * leg.ratio_quantity`.                                                                                                                                                                                                        | 1                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| `side`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | [components.OptionOrderLegCreateSide](../../models/components/optionorderlegcreateside.md)                                                                                                                                                                                                                                                                                                                                                                                                                  | :heavy_check_mark:                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | The side of the option order to be sent to the market.                                                                                                                                                                                                                                                                                                                                                                                                                                                      | SELL                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| `sideModifier`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | [components.SideModifier](../../models/components/sidemodifier.md)                                                                                                                                                                                                                                                                                                                                                                                                                                          | :heavy_check_mark:                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | The open/close modification of the side, signaling whether this option order leg intends to OPEN a new position, or to CLOSE an existing one.                                                                                                                                                                                                                                                                                                                                                               | OPEN                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |