/** * Kalshi Trade API Manual Endpoints * Manually defined OpenAPI spec for endpoints being migrated to spec-first approach * * The version of the OpenAPI document: 3.36.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import type { BookSide } from './book-side'; import type { SelfTradePreventionType } from './self-trade-prevention-type'; export interface CreateOrderV2Request { 'ticker': string; 'client_order_id'?: string; 'side': BookSide; /** * Fixed-point contract count string (2 decimals, e.g., \"10.00\"; referred to as \"fp\" in field names). Requests accept 0-2 decimal places (e.g., \"10\", \"10.0\", \"10.00\"); responses always emit 2 decimals. Fractional contract values (e.g., \"2.50\") are supported; the minimum granularity is 0.01 contracts. */ 'count': string; /** * Fixed-point US dollar string. Most request fields accept 2-4 decimal places (e.g., \"0.56\", \"0.5600\"); responses emit up to 6. Valid quote intervals for a given market are constrained by that market\'s price level structure. */ 'price': string; /** * Optional Unix timestamp in seconds for when the order expires. To place an expiring order, set `time_in_force` to `good_till_canceled` and provide this `expiration_time`. `GTT` is an internal execution type and is not a valid API value for `time_in_force`. The `immediate_or_cancel` time-in-force value cannot be combined with `expiration_time`. */ 'expiration_time'?: number; /** * Specifies how long the order remains active. Use `good_till_canceled` with `expiration_time` for an order that should rest until a specific expiration time; without `expiration_time`, `good_till_canceled` is a true good-till-canceled order. `GTT` is not a valid API value. */ 'time_in_force': CreateOrderV2RequestTimeInForceEnum; 'post_only'?: boolean; 'self_trade_prevention_type': SelfTradePreventionType; /** * 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. */ 'cancel_order_on_pause'?: boolean; /** * Specifies whether the order place count should be capped by the member\'s current position. Orders with reduce_only set to true will be rejected unless time_in_force is immediate_or_cancel. */ 'reduce_only'?: boolean; /** * The subaccount number to use for this order. 0 is the primary subaccount. Subaccount-restricted API keys must omit this field or pass their locked subaccount. */ 'subaccount'?: number; /** * The order group this order is part of */ 'order_group_id'?: string; /** * Exchange shard index. If omitted, auto-routes when ticker is provided; otherwise defaults to 0. Use -1 to require auto-routing by ticker. */ 'exchange_index'?: number; } export declare const CreateOrderV2RequestTimeInForceEnum: { readonly FillOrKill: "fill_or_kill"; readonly GoodTillCanceled: "good_till_canceled"; readonly ImmediateOrCancel: "immediate_or_cancel"; }; export type CreateOrderV2RequestTimeInForceEnum = typeof CreateOrderV2RequestTimeInForceEnum[keyof typeof CreateOrderV2RequestTimeInForceEnum];