/* 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 { OutcomeSide } from './outcome-side'; export interface Fill { /** * Unique identifier for this fill */ 'fill_id': string; /** * Identifier for an exchange shard. */ 'exchange_index': number; /** * Unique identifier for this fill (legacy field name, same as fill_id) */ 'trade_id': string; /** * Unique identifier for the order that resulted in this fill */ 'order_id': string; /** * Unique identifier for the market */ 'ticker': string; /** * Unique identifier for the market (legacy field name, same as ticker) */ 'market_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'?: FillSideEnum; /** * 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'?: FillActionEnum; 'outcome_side': OutcomeSide; 'book_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_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. */ '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; /** * If true, this fill was a taker (removed liquidity from the order book) */ 'is_taker': boolean; /** * Timestamp when this fill was executed */ 'created_time'?: 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. */ 'fee_cost': string; /** * Subaccount number (0 for primary, 1-63 for subaccounts). Present for direct users. */ 'subaccount_number'?: number | null; /** * Unix timestamp when this fill was executed (legacy field name) */ 'ts'?: number; } export const FillSideEnum = { Yes: 'yes', No: 'no' } as const; export type FillSideEnum = typeof FillSideEnum[keyof typeof FillSideEnum]; export const FillActionEnum = { Buy: 'buy', Sell: 'sell' } as const; export type FillActionEnum = typeof FillActionEnum[keyof typeof FillActionEnum];