/* 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'; export interface Trade { /** * Unique identifier for this trade */ 'trade_id': string; /** * Unique identifier for the market */ 'ticker': 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. */ '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; /** * Deprecated. Use `taker_outcome_side` (or `taker_book_side`) instead. See [Order direction](/getting_started/order_direction). This field will not be removed before May 14, 2026. * @deprecated */ 'taker_side'?: TradeTakerSideEnum; /** * The outcome side the taker is positioned for. buy-yes and sell-no produce \'yes\'; buy-no and sell-yes produce \'no\'. `taker_outcome_side` describes directional exposure only; it does not change the trade\'s price. A trade at price `p` with `taker_outcome_side=no` is matched against the maker at the same price `p` with the opposite direction — both parties trade at the same price. `taker_outcome_side` and `taker_book_side` will become the canonical way to determine trade direction. The legacy `taker_side` field will be deprecated in a future release — please migrate to these new fields. */ 'taker_outcome_side': TradeTakerOutcomeSideEnum; 'taker_book_side': BookSide; /** * Timestamp when this trade was executed */ 'created_time': string; /** * True if this trade was matched off-book as a block trade (e.g. via RFQ / negotiated block proposal); false for trades that filled on the standard order book. */ 'is_block_trade': boolean; } export const TradeTakerSideEnum = { TradeTakerSideYes: 'yes', TradeTakerSideNo: 'no' } as const; export type TradeTakerSideEnum = typeof TradeTakerSideEnum[keyof typeof TradeTakerSideEnum]; export const TradeTakerOutcomeSideEnum = { TradeTakerOutcomeSideYes: 'yes', TradeTakerOutcomeSideNo: 'no' } as const; export type TradeTakerOutcomeSideEnum = typeof TradeTakerOutcomeSideEnum[keyof typeof TradeTakerOutcomeSideEnum];