/* tslint:disable */ /* eslint-disable */ /** * 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. */ // May contain unused imports in some cases // @ts-ignore import type { BookSide } from './book-side'; // May contain unused imports in some cases // @ts-ignore import type { OrderStatus } from './order-status'; // May contain unused imports in some cases // @ts-ignore import type { SelfTradePreventionType } from './self-trade-prevention-type'; export interface Order { 'order_id': string; /** * Unique identifier for users */ 'user_id': string; 'client_order_id': string; 'ticker': string; /** * Deprecated. Use `outcome_side` (or `book_side`) instead. See [Order direction](/getting_started/order_direction). This field will not be removed before May 14, 2026. * @deprecated */ 'side'?: OrderSideEnum; /** * Deprecated. Use `outcome_side` (or `book_side`) instead. See [Order direction](/getting_started/order_direction). This field will not be removed before May 14, 2026. * @deprecated */ 'action'?: OrderActionEnum; /** * The outcome side this order is positioned for. buy-yes and sell-no produce \'yes\'; buy-no and sell-yes produce \'no\'. `outcome_side` describes directional exposure only; it does not change the order\'s price. An order at price `p` with `outcome_side=no` is matched by an order at the same price `p` with `outcome_side=yes` — both parties trade at the same price, just on opposite directions. `outcome_side` and `book_side` will become the canonical way to determine order direction. The legacy `action`, `side`, and `is_yes` fields will be deprecated in a future release — please migrate to these new fields. */ 'outcome_side': OrderOutcomeSideEnum; 'book_side': BookSide; 'type': OrderTypeEnum; 'status': OrderStatus; /** * 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. */ 'yes_price_dollars': 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. */ 'no_price_dollars': string; /** * 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. */ 'fill_count_fp': string; /** * 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. */ 'remaining_count_fp': string; /** * 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. */ 'initial_count_fp': 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. */ 'taker_fill_cost_dollars': 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. */ 'maker_fill_cost_dollars': 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. */ 'taker_fees_dollars': 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. */ 'maker_fees_dollars': string; 'expiration_time'?: string | null; 'created_time'?: string | null; /** * The last update to an order (modify, cancel, fill) */ 'last_update_time'?: string | null; 'self_trade_prevention_type'?: SelfTradePreventionType; /** * The order group this order is part of */ 'order_group_id'?: string | null; /** * 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; /** * Subaccount number (0 for primary, 1-63 for subaccounts). */ 'subaccount_number'?: number | null; /** * Identifier for an exchange shard. */ 'exchange_index'?: number; } export const OrderSideEnum = { Yes: 'yes', No: 'no' } as const; export type OrderSideEnum = typeof OrderSideEnum[keyof typeof OrderSideEnum]; export const OrderActionEnum = { Buy: 'buy', Sell: 'sell' } as const; export type OrderActionEnum = typeof OrderActionEnum[keyof typeof OrderActionEnum]; export const OrderOutcomeSideEnum = { Yes: 'yes', No: 'no' } as const; export type OrderOutcomeSideEnum = typeof OrderOutcomeSideEnum[keyof typeof OrderOutcomeSideEnum]; export const OrderTypeEnum = { Limit: 'limit', Market: 'market' } as const; export type OrderTypeEnum = typeof OrderTypeEnum[keyof typeof OrderTypeEnum];