UNPKG

kalshi-typescript

Version:

Official TypeScript SDK for the Kalshi API

66 lines (65 loc) 2.23 kB
/** * Kalshi Trade API Manual Endpoints * Manually defined OpenAPI spec for endpoints being migrated to spec-first approach * * The version of the OpenAPI document: 3.6.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ export interface MarketPosition { /** * Unique identifier for the market */ 'ticker': string; /** * Total spent on this market in cents */ 'total_traded': number; /** * US dollar amount as a fixed-point decimal string with exactly 4 decimal places */ 'total_traded_dollars': string; /** * Number of contracts bought in this market. Negative means NO contracts and positive means YES contracts */ 'position': number; /** * 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. Currently only whole contract values are permitted, but the format supports future fractional precision. Integer contract count fields are legacy and will be deprecated; when both integer and fp fields are provided, they must match. */ 'position_fp': string; /** * Cost of the aggregate market position in cents */ 'market_exposure': number; /** * US dollar amount as a fixed-point decimal string with exactly 4 decimal places */ 'market_exposure_dollars': string; /** * Locked in profit and loss, in cents */ 'realized_pnl': number; /** * US dollar amount as a fixed-point decimal string with exactly 4 decimal places */ 'realized_pnl_dollars': string; /** * [DEPRECATED] Aggregate size of resting orders in contract units */ 'resting_orders_count': number; /** * Fees paid on fill orders, in cents */ 'fees_paid': number; /** * US dollar amount as a fixed-point decimal string with exactly 4 decimal places */ 'fees_paid_dollars': string; /** * Last time the position is updated */ 'last_updated_ts'?: string; }