# CreateOrderRequest


## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**ticker** | **string** |  | [default to undefined]
**client_order_id** | **string** |  | [optional] [default to undefined]
**side** | **string** |  | [default to undefined]
**action** | **string** |  | [default to undefined]
**count** | **number** | Order quantity in contracts (whole contracts only). Provide count or count_fp; if both provided they must match. | [optional] [default to undefined]
**count_fp** | **string** | Fixed-point contract count string (2 decimals, e.g., \&quot;10.00\&quot;; referred to as \&quot;fp\&quot; in field names). Requests accept 0-2 decimal places (e.g., \&quot;10\&quot;, \&quot;10.0\&quot;, \&quot;10.00\&quot;); responses always emit 2 decimals. Fractional contract values (e.g., \&quot;2.50\&quot;) are supported; the minimum granularity is 0.01 contracts. | [optional] [default to undefined]
**yes_price** | **number** |  | [optional] [default to undefined]
**no_price** | **number** |  | [optional] [default to undefined]
**yes_price_dollars** | **string** | Fixed-point US dollar string. Most request fields accept 2-4 decimal places (e.g., \&quot;0.56\&quot;, \&quot;0.5600\&quot;); responses emit up to 6. Valid quote intervals for a given market are constrained by that market\&#39;s price level structure. | [optional] [default to undefined]
**no_price_dollars** | **string** | Fixed-point US dollar string. Most request fields accept 2-4 decimal places (e.g., \&quot;0.56\&quot;, \&quot;0.5600\&quot;); responses emit up to 6. Valid quote intervals for a given market are constrained by that market\&#39;s price level structure. | [optional] [default to undefined]
**expiration_ts** | **number** | Optional Unix timestamp in seconds for when the order expires. To place an expiring order, set &#x60;time_in_force&#x60; to &#x60;good_till_canceled&#x60; and provide this &#x60;expiration_ts&#x60;. &#x60;GTT&#x60; is an internal execution type and is not a valid API value for &#x60;time_in_force&#x60;. The &#x60;immediate_or_cancel&#x60; time-in-force value cannot be combined with &#x60;expiration_ts&#x60;.  | [optional] [default to undefined]
**time_in_force** | **string** | Specifies how long the order remains active. Use &#x60;good_till_canceled&#x60; with &#x60;expiration_ts&#x60; for an order that should rest until a specific expiration time; without &#x60;expiration_ts&#x60;, &#x60;good_till_canceled&#x60; is a true good-till-canceled order. &#x60;GTT&#x60; is not a valid API value.  | [optional] [default to undefined]
**buy_max_cost** | **number** | Maximum cost in cents. When specified, the order will automatically have Fill-or-Kill (FoK) behavior. | [optional] [default to undefined]
**post_only** | **boolean** |  | [optional] [default to undefined]
**reduce_only** | **boolean** |  | [optional] [default to undefined]
**sell_position_floor** | **number** | Deprecated: Use reduce_only instead. Only accepts value of 0. | [optional] [default to undefined]
**self_trade_prevention_type** | [**SelfTradePreventionType**](SelfTradePreventionType.md) |  | [optional] [default to undefined]
**order_group_id** | **string** | The order group this order is part of | [optional] [default to undefined]
**cancel_order_on_pause** | **boolean** | If this flag is set to true, the order will be canceled if the order is open and trading on the exchange is paused for any reason. | [optional] [default to undefined]
**subaccount** | **number** | The subaccount number to use for this order. 0 is the primary subaccount. | [optional] [default to 0]
**exchange_index** | **number** | Exchange shard index. Defaults to 0. Use -1 to auto-route by market ticker. | [optional] [default to undefined]

## Example

```typescript
import { CreateOrderRequest } from 'kalshi-typescript';

const instance: CreateOrderRequest = {
    ticker,
    client_order_id,
    side,
    action,
    count,
    count_fp,
    yes_price,
    no_price,
    yes_price_dollars,
    no_price_dollars,
    expiration_ts,
    time_in_force,
    buy_max_cost,
    post_only,
    reduce_only,
    sell_position_floor,
    self_trade_prevention_type,
    order_group_id,
    cancel_order_on_pause,
    subaccount,
    exchange_index,
};
```

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
