kalshi-typescript
Version:
OpenAPI client for kalshi-typescript
84 lines (83 loc) • 3.2 kB
TypeScript
/**
* Kalshi Trade API Manual Endpoints
* Manually defined OpenAPI spec for endpoints being migrated to spec-first approach
*
* The version of the OpenAPI document: 3.11.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 Fill {
/**
* Unique identifier for this fill
*/
'fill_id': string;
/**
* 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;
/**
* Specifies if this is a \'yes\' or \'no\' fill
*/
'side': FillSideEnum;
/**
* Specifies if this is a buy or sell order
*/
'action': FillActionEnum;
/**
* 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.
*/
'count_fp': string;
/**
* US dollar amount as a fixed-point decimal string with up to 6 decimal places of precision. This is the maximum supported precision; valid quote intervals for a given market are constrained by that market\'s price level structure.
*/
'yes_price_dollars': string;
/**
* US dollar amount as a fixed-point decimal string with up to 6 decimal places of precision. This is the maximum supported precision; 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;
/**
* US dollar amount as a fixed-point decimal string with up to 6 decimal places of precision. This is the maximum supported precision; 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-32 for subaccounts). Present for direct users.
*/
'subaccount_number'?: number | null;
/**
* Unix timestamp when this fill was executed (legacy field name)
*/
'ts'?: number;
}
export declare const FillSideEnum: {
readonly Yes: "yes";
readonly No: "no";
};
export type FillSideEnum = typeof FillSideEnum[keyof typeof FillSideEnum];
export declare const FillActionEnum: {
readonly Buy: "buy";
readonly Sell: "sell";
};
export type FillActionEnum = typeof FillActionEnum[keyof typeof FillActionEnum];